I successfully compiled wxwidget statically.
I can use it in any project if I include and link it from where it has been compiled.
I can also use it if I move the static libraries around and change the linker path accordingly.
HOWEVER I can't manage to move (put in my source code) the wx include header
Using eclipse and those compiler options :
Code: Select all
-c -fmessage-length=0 -I/home/florian/workspace/lib/wxWidgets-3.0.3/gtk-build/lib/wx/include/gtk2-unicode-static-3.0 -I/home/florian/workspace/lib/wxWidgets-3.0.3/include -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread
But if the header are in my source code (copy and paste the two dirs) , and compiler options are :
Code: Select all
-c -fmessage-length=0 -I"${workspace_loc:/${ProjName}/lib/wx/lib/x64_linux/wx/include/gtk2-unicode-static-3.0}" -I"${workspace_loc:/${ProjName}/lib/wx/include}" -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread
and other classes undefined.wxMutex’ does not name a type
This doesn't make any sense to me as the include order and files are the exact same as well as the the compiler options order.
What am I missing ?