Page 1 of 1

Build Problem (wxWidget)

Posted: Tue Feb 05, 2019 3:31 am
by vpu
Your codelite version: 12.0.0
Is it a self compiled version of codelite: No
Your OS: Windows 10 Pro
Compiler version: MinGW GCC 64 bit 7.1.0 (g++)

I did a test with a "hello world" program using wxWidget 3.1.2.
The code was generated using wxCrafter.
I can build it and execute it properly.

The *full* 'Build' window output of the hello world project:

Code: Select all

C:\WINDOWS\system32\cmd.exe /C mingw32-make.exe -j 16 -e -f  Makefile
"----------Building project:[ wxHello - Release ]----------"
mingw32-make.exe[1]: Entering directory 'C:/CodeLite/test/wxHello'
g++ -o ./Release/wxHello @"wxHello.txt" -L.    -mthreads -LC:/wxWidgets-3.1.2/lib/gcc_dll -lwxmsw31u_richtext -lwxmsw31u_xrc -lwxmsw31u_aui -lwxmsw31u_html -lwxmsw31u_adv -lwxmsw31u_core -lwxbase31u_xml -lwxbase31u_net -lwxbase31u -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  -mwindows
mingw32-make.exe[1]: Leaving directory 'C:/CodeLite/test/wxHello'
====0 errors, 0 warnings====
I am trying to build a legacy workspace (sccs) and project (dss0_2) but the wxWidget header files does not seems to be found.

The *full* 'Build' window output of the legacy project:

Code: Select all

MESSAGE: Entering directory `C:\CodeLite\sccs'
C:\WINDOWS\system32\cmd.exe /C scons.bat -Q mode=release dss0_2
----------Building project:[ dss0_2 - Release ]----------
['-c', '-Q', 'mode=release', 'dss0_2']
Mkdir("html")
Copy("html", "C:\CodeLite\sccs\src\common\html\en-int-01.xml")
Copy("html", "C:\CodeLite\sccs\src\common\html\goodbye.html")
Copy("html", "C:\CodeLite\sccs\src\common\html\interruption.xml")
Copy("html", "C:\CodeLite\sccs\src\common\html\logo_ulaval_alt.gif")
Copy("html", "C:\CodeLite\sccs\src\common\html\masc3_1.html")
Copy("html", "C:\CodeLite\sccs\src\common\html\masc3_instructions.html")
Copy("html", "C:\CodeLite\sccs\src\common\html\radar.gif")
Copy("html", "C:\CodeLite\sccs\src\common\html\welcome.html")
Mkdir("scenario")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\Prat2.v02.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\bug01.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\default-scenario.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\eyetest.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\julie03b.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\julie04a.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\julie04c.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\julie05.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\julie_burst38_180.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\practice1.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\practice2.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\prat1.v02.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\screen.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\test1.v02.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\test1_18fev09.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\test1_3juin08.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\test2.v02.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\test2_18fev09.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\test2_3juin08.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\test3.v02.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\test3_18fev09.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\test3_3juin08.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\test4.v02.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\test4_18fev09.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\testDistraction2.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\testDistraction3.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\test_label.xml")
Copy("scenario", "C:\CodeLite\sccs\src\common\scenario\testdistration.xml")
Mkdir("rc")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\Distraction1.wav")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\Distraction2.wav")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\Distraction3.wav")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\Distraction4.wav")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\Font.bmp")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\common.pjd")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\common.rc")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\enemy.bmp")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\experiment.fbp")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\gui.xrc")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\hook_enabled.bmp")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\hook_hooked.bmp")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\interface.png")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\missile.bmp")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\radar_engaged.bmp")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\radar_hooked_and_engaged.bmp")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\radar_locked.bmp")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\radar_locking.bmp")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\sample.ico")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\space_view.bmp")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\splash-masc3.bmp")
Copy("rc", "C:\CodeLite\sccs\src\dss0_2\rc\team2(3minutes).wav")
Mkdir("rc")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\Distraction1.wav")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\Distraction2.wav")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\Distraction3.wav")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\Distraction4.wav")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\Font.bmp")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\common.pjd")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\common.rc")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\enemy.bmp")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\experiment.fbp")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\hook_enabled.bmp")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\hook_hooked.bmp")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\interface.png")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\missile.bmp")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\radar_engaged.bmp")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\radar_hooked_and_engaged.bmp")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\radar_locked.bmp")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\radar_locking.bmp")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\sample.ico")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\space_view.bmp")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\splash-masc3.bmp")
Copy("rc", "C:\CodeLite\sccs\src\common\rc\team2(3minutes).wav")
g++ -o build\dss0_2\release\space_application.o -c -Os -mthreads -Wall -Wextra -pipe -fmessage-length=0 -DHAVE_W32API_H "-D__WXMSW__ " -D_UNICODE -DTIXML_USE_STL -DwxUSEGLCANVAS=1 -Ilib\wx\lib\gcc_lib\mswu -Ilib\wx\include -Ilib\boost\include\boost-1_32 -Isrc\common -Isrc\common\tinyxml -Ibuild\dss0_2\release -Isrc\dss0_2 src\dss0_2\space_application.cpp
In file included from src\dss0_2\space_application.cpp:3:0:
src\dss0_2\precompiled_headers.hpp:13:10: fatal error: wx/wx.h: No such file or directory
 #include "wx/wx.h"
          ^~~~~~~~~
compilation terminated.
scons: *** [build\dss0_2\release\space_application.o] Error 1
====1 errors, 1 warnings====
Both workspace seems to have the same configuration.

Somebody have an idea why it doesn't work?

Re: Build Problem (wxWidget)

Posted: Thu Feb 07, 2019 2:01 am
by eranif
Your compile line does not include the path to wxWidgets

I can see this:

Code: Select all

-Ilib\wx\include
This is where wxWidgets files should be
This is not a CodeLite issue, as I am pretty sure that scons does not come with CodeLite, so you will have to figure it out yourself