Page 1 of 1

Issues with wxWidgets exe wizard code - new 5.1 install

Posted: Fri May 24, 2013 8:05 pm
by tjohnson
Hello,

I'm trying to get CodeLite 5.1 working with wxWidgets. Running Windows 7.

I installed http://sourceforge.net/projects/codelit ... x2.9.4.exe .
I took all the defaults and the install seemed to run without errors or warnings.
I created a console app. It compiles and says "hello world" when I run it. So far, so good.

Then I then ran the new project wizard from the welcome tab and selected "Executable (wxWidgets enabled)".
When I tried to compile the project I received the following error message:

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f "wxtest1_wsp.mk""
----------Building project:[ wxtest1 - Debug ]----------
mingw32-make[1]: Entering directory `C:/Users/tjohnson/Documents/Projects/wxtest1'
g++ -c "C:/Users/tjohnson/Documents/Projects/wxtest1/main.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:\wxWidgets-2.9.4\lib\gcc_dll\mswud -IC:\wxWidgets-2.9.4\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Debug/main.o -I.

This looked like an include path issue so I added the "C:/wxWidgets-2.9.4/include" directory to the compiler includes and recompiled:

Open Active Project Settings / Common Settings / Compiler:
Include Paths: C:/wxWidgets-2.9.4/include

Output is now:
C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f "wxtest1_wsp.mk"
----------Building project:[ wxtest1 - Debug ]----------
mingw32-make[1]: Entering directory `C:/Users/tjohnson/Documents/Projects/wxtest1'
g++ -c "C:/Users/tjohnson/Documents/Projects/wxtest1/main.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:\wxWidgets-2.9.4\lib\gcc_dll\mswud -IC:\wxWidgets-2.9.4\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Debug/main.o -I. -IC:/wxWidgets-2.9.4/include
In file included from C:/wxWidgets-2.9.4/include/wx/defs.h:28:0,
from C:/wxWidgets-2.9.4/include/wx/wx.h:15,
from C:/Users/tjohnson/Documents/Projects/wxtest1/main.cpp:1:

C:/wxWidgets-2.9.4/include/wx/platform.h:154:22: fatal error: wx/setup.h: No such file or directory

Thanks in advance for your help.

Tom Johnson

Re: Issues with wxWidgets exe wizard code - new 5.1 install

Posted: Fri May 24, 2013 10:51 pm
by eranif
I m sorry, i can't see the original error ...
Please paste here the complete build log

Eran

Re: Issues with wxWidgets exe wizard code - new 5.1 install

Posted: Fri May 24, 2013 11:21 pm
by tjohnson
C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f "wxtest1_wsp.mk""
----------Building project:[ wxtest1 - Debug ]----------
mingw32-make[1]: Entering directory `C:/Users/tjohnson/Documents/Projects/wxtest1'
g++ -c "C:/Users/tjohnson/Documents/Projects/wxtest1/main.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:\wxWidgets-2.9.4\lib\gcc_dll\mswud -IC:\wxWidgets-2.9.4\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Debug/main.o -I.
C:/Users/tjohnson/Documents/Projects/wxtest1/main.cpp:1:19: fatal error: wx/wx.h: No such file or directory
compilation terminated.
mingw32-make[1]: *** [Debug/main.o] Error 1
mingw32-make.exe: *** [All] Error 2
wxtest1.mk:95: recipe for target `Debug/main.o' failed
mingw32-make[1]: Leaving directory `C:/Users/tjohnson/Documents/Projects/wxtest1'
wxtest1_wsp.mk:4: recipe for target `All' failed

Re: Issues with wxWidgets exe wizard code - new 5.1 install

Posted: Sat May 25, 2013 12:11 am
by jfouche
Hi

Do you have wxWidgets installed under the C:\wxWidgets-2.9.4\ directory ? Probably not.
I suggest you to download the codelite bundle that embed wxWidgets (it's the easiest way).

Re: Issues with wxWidgets exe wizard code - new 5.1 install

Posted: Sat May 25, 2013 5:51 pm
by eranif
tjohnson wrote:This looked like an include path issue so I added the "C:/wxWidgets-2.9.4/include" directory to the compiler includes and recompiled:
You should not need to modify any include path by hand. The compilation line seems OK and if you have wx at C:\wxWidgets-2.9.4 then it should get compiled proprely _without_ any changes

If your g++ does not undertstand include paths with backslash - then you are probably using a cygwin g++ or a g++ built for msys.
Make sure you have a MinGW g++ and it is the proper g++ that get invoked

Eran