Issues with wxWidgets exe wizard code - new 5.1 install

CodeLite installation/troubleshooting forum
tjohnson
CodeLite Curious
Posts: 2
Joined: Fri May 24, 2013 7:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Issues with wxWidgets exe wizard code - new 5.1 install

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post by eranif »

I m sorry, i can't see the original error ...
Please paste here the complete build log

Eran
Make sure you have read the HOW TO POST thread
tjohnson
CodeLite Curious
Posts: 2
Joined: Fri May 24, 2013 7:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

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

Post 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).
Jérémie
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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
Make sure you have read the HOW TO POST thread
Post Reply