Problems building a project in Windows XP

CodeLite installation/troubleshooting forum
beto
CodeLite Curious
Posts: 3
Joined: Tue Jun 01, 2010 2:03 am
Genuine User: Yes
IDE Question: C++
Contact:

Problems building a project in Windows XP

Post by beto »

Hello, i can't build any project after a CodeLite fresh install, not even the "Hello World" example that comes with a "Simple executable (gcc)" project.
I have tried with the Linux version and I haven't had any problem doing the same things.

I'm using the version codelite-2.5.2.4031-mingw4.4.1-wx2.8.10.exe on Windows XP

When i try to build a project i recieve this message:

----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe" -j 2 -f "WS_wsp.mk""
----------Building project:[ hello - Debug ]----------
mingw32-make.exe[1]: Entering directory `C:/Program files/CodeLite/WS'
<built-in>:0: fatal error: opening dependency file ./Debug/main.o.d:
No such file or directory
compilation terminated.
mingw32-make.exe[1]: *** [Debug/main.o.d] Error 1
mingw32-make.exe[1]: Leaving directory `C:/Program files/CodeLite/WS'
mingw32-make.exe: *** [All] Error 2
----------Build Ended----------
0 errors, 0 warnings

Any idea? Thanks for your help.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problems building a project in Windows XP

Post by eranif »

Did you modify any of the environment variables from within codelite (from settings -> environment variables)?
Do you have write permissions to the C:\Program Files\CodeLite\WS?
Can you manually go the C:\Program Files\CodeLite\WS directory and make sure that there is a directory named Debug under it? If the directory does not exist, it may suggests that you got permission error

Eran
Make sure you have read the HOW TO POST thread
beto
CodeLite Curious
Posts: 3
Joined: Tue Jun 01, 2010 2:03 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problems building a project in Windows XP

Post by beto »

Hi Eran, thanks for your answer.
Aking your questions:
I haven't modified any of the environment variables, this is what i have when i go to settings -> environment variables

CodeLiteDir=C:\Program files\CodeLite
WXWIN=C:\wxWidgets-2.8.10
PATH=$(WXWIN)\lib\gcc_dll;$(PATH)
WXCFG=gcc_dll\mswu
UNIT_TEST_PP_SRC_DIR=C:\UnitTest++-1.3

I didn't have write permissions to the C:\Program Files\CodeLite\WS , but i changed and now i have it.
In the C:\Program Files\CodeLite\WS directory I had created the directory Debug, but it hadn't write permissions, but i changed that.

I still can't build any project. Any other idea?
Thanks for your help.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problems building a project in Windows XP

Post by eranif »

beto wrote:In the C:\Program Files\CodeLite\WS directory I had created the directory Debug
You should not. codelite should create it for you. If it cant, it means that there still a problem.

Try to create a new project under another directory and try to build it, does it work?
Eran
Make sure you have read the HOW TO POST thread
beto
CodeLite Curious
Posts: 3
Joined: Tue Jun 01, 2010 2:03 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problems building a project in Windows XP

Post by beto »

Hi Eran, thanks a lot for your help, finally was what you said, a permission problem. I'll be using Codelite for teach C++ programing, the computers' admin didn't tell me about a software that they have for freeze the windows instalations, only tell me after i asked several times about permisions to create directories and the default configuration of the workstations. Thank you very much for your help to find the origin of the problem.
Post Reply