difficulty in compilation sample program
Posted: Mon Jan 16, 2012 6:00 pm
Hi,
I have just installed codelite 3.5.5377, in windows 7. I had already installed MinGW. Upon installation of CL, according to instructions in documentation page, i set the environment variables, as follows:
I had to include the CL path to the PATH variable so that makedir.exe could be found.
I also inserted the PATH ENVIRONMENT VARIABLE in the Build settings->Compilers dialog to:
I then created a sample project using a wxFB frame, but when i try to complie it i get the result:
Although the error message is about not finding "wx/intl.h", i think the real problem is in the call to wx-config, which does not mention the WXWIN or WXCFG variables, so that the include directories are not mentioned to the complier - when I tested wx-config in command line, it asked me to insert those arguments.
Can anyone help to find what I am missing?
Thanks a lot
I have just installed codelite 3.5.5377, in windows 7. I had already installed MinGW. Upon installation of CL, according to instructions in documentation page, i set the environment variables, as follows:
Code: Select all
CodeLiteDir=C:\Program Files (x86)\CodeLite
PATH=%PATH%;e:\Progs\\MinGW\bin;C:\Program Files (x86)\CodeLite
WXWIN=e:\progs\wx
WXCFG=gcc_lib\mswu
I also inserted the PATH ENVIRONMENT VARIABLE in the Build settings->Compilers dialog to:
Code: Select all
PATH=%PATH;e:\\Progs\\MinGW\\bin
Code: Select all
----------Build Started--------
C:\Windows\system32\cmd.exe /c ""mingw32-make.exe" -j 1 -f "codelite_wsp.mk""
----------Building project:[ teste2 - Release ]----------
process_begin: CreateProcess(NULL, wx-config --cxxflags --unicode=yes --debug=no, ...) failed.
process_begin: CreateProcess(NULL, wx-config --cxxflags --unicode=yes --debug=no, ...) failed.
process_begin: CreateProcess(NULL, wx-config --debug=no --libs --unicode=yes, ...) failed.
mingw32-make.exe[1]: Entering directory `E:/Progs/codelite/teste2'
g++ -c "E:/Progs/codelite/teste2/gui.cpp" -O2 -Wall -D__WX__ -o ./Release/gui.o -I.
In file included from E:/Progs/codelite/teste2/gui.cpp:8:0:
E:/Progs/codelite/teste2/gui.h:11:21: fatal error: wx/intl.h: No such file or directory
compilation terminated.
mingw32-make.exe[1]: *** [Release/gui.o] Error 1
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory `E:/Progs/codelite/teste2'
----------Build Ended----------
1 errors, 0 warnings
Can anyone help to find what I am missing?
Thanks a lot