Hi.
I switched from wxwidgets 3.0.5 to 3.1.5, and now i have trouble with the build: i can't make codelite use wxwidgets 3.1.5.
There is something strange.
I use codelite makefile generator and it is configured like this:
compiler flags (g++):
Code: Select all
-g;-O0;-Wall;$(shell wx-config --cxxflags)
linker flags:
Code: Select all
-g;-O0;-Wall;$(shell wx-config --libs)
when i build something (the griddemo sample from wxwidgets for example) i have this log:
Code: Select all
/bin/sh -c '/usr/bin/make -j4 -e -f Makefile'
----------Building project:[ griddemo - Debug ]----------
make[1]: Entering directory '/home/guillaume/Documents/Programmation/codelite/wxWidgets3.1.5_Samples/griddemo'
/usr/bin/g++ -c "/home/guillaume/Documents/Programmation/codelite/wxWidgets3.1.5_Samples/griddemo/griddemo.cpp" -g -O0 -Wall -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -o
///////////////////////////////then lots of errors related to wxOVERRIDE not defined.....////////////////////////////////////
but if i type in bash:
Code: Select all
wx-config --cxxflags
it responds:
Code: Select all
-I/usr/local/lib/wx/include/gtk3-unicode-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread
why wx-config does not give the same path when it is called from codelite makefile and from bash?
moreover if i type
Code: Select all
g++ griddemo.cpp `wx-config --cxxflags --libs` -o prg
it compiles (and ./prg run) as expected.
And if i type:
Code: Select all
wx-config --version
i receive
Code: Select all
3.1.5
As expected.