Issues with wxWidgets exe wizard code - new 5.1 install
Posted: Fri May 24, 2013 8:05 pm
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
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