Codelite 4.1 , wx-config and libs gl
Posted: Thu Nov 22, 2012 1:33 pm
If I go "C:\SDK\CodeLite>wx-config.exe --prefix=C:\SDK\wxWidgets-2.9.4 --debug=no --unicode=yes --libs"
Where C:\SDK\CodeLite and C:\SDK\wxWidgets-2.9.4 are from the codelite-4.1.5770-mingw4.6.1-wx2.9.4.exe installer
I get
-mthreads -LC:\SDK\wxWidgets-2.9.4\lib\gcc_dll -lwxmsw29u_xrc -lwxmsw29u_aui -lwxmsw29u_html -lwxmsw29u_adv -lwxmsw29u_core -lwxbas
e29u_xml -lwxbase29u_net -lwxmsw29u_richtext -lwxbase29u -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32
-lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
if I go "C:\SDK\CodeLite>wx-config.exe --prefix=C:\SDK\wxWidgets-2.9.4 --debug=no --unicode=yes --libs gl"
I get
-mthreads -LC:\SDK\wxWidgets-2.9.4\lib\gcc_dll -lwxmsw29u_gl -lopengl32 -lglu32 -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxe
xpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -l
advapi32 -lwsock32
But I can not seem to get both the opengl libs and the normal libs at once
i.e."C:\SDK\CodeLite>wx-config.exe --prefix=C:\SDK\wxWidgets-2.9.4 --debug=no --unicode=yes --libs --libs gl"
gives
-mthreads -LC:\SDK\wxWidgets-2.9.4\lib\gcc_dll -lwxmsw29u_gl -lopengl32 -lglu32 -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxe
xpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -l
advapi32 -lwsock32
which is just the opengl libs
So I'm having to put this into my projects linker options
-mwindows;-s;$(shell wx-config --debug=no --unicode=yes --libs gl );$(shell wx-config --debug=no --unicode=yes --libs )
Is this how it is suppose to work?
I had it working with a single set of options with CodeLite 4.0
From what I can tell it is related to a change in the wxWidgets-2.9.4\lib\gcc_dll\mswu\build.cfg file between CodeLite 4.0 and 4.1 since the wx-config.exe file appears to be the same version.
Where C:\SDK\CodeLite and C:\SDK\wxWidgets-2.9.4 are from the codelite-4.1.5770-mingw4.6.1-wx2.9.4.exe installer
I get
-mthreads -LC:\SDK\wxWidgets-2.9.4\lib\gcc_dll -lwxmsw29u_xrc -lwxmsw29u_aui -lwxmsw29u_html -lwxmsw29u_adv -lwxmsw29u_core -lwxbas
e29u_xml -lwxbase29u_net -lwxmsw29u_richtext -lwxbase29u -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32
-lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
if I go "C:\SDK\CodeLite>wx-config.exe --prefix=C:\SDK\wxWidgets-2.9.4 --debug=no --unicode=yes --libs gl"
I get
-mthreads -LC:\SDK\wxWidgets-2.9.4\lib\gcc_dll -lwxmsw29u_gl -lopengl32 -lglu32 -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxe
xpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -l
advapi32 -lwsock32
But I can not seem to get both the opengl libs and the normal libs at once
i.e."C:\SDK\CodeLite>wx-config.exe --prefix=C:\SDK\wxWidgets-2.9.4 --debug=no --unicode=yes --libs --libs gl"
gives
-mthreads -LC:\SDK\wxWidgets-2.9.4\lib\gcc_dll -lwxmsw29u_gl -lopengl32 -lglu32 -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxe
xpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -l
advapi32 -lwsock32
which is just the opengl libs
So I'm having to put this into my projects linker options
-mwindows;-s;$(shell wx-config --debug=no --unicode=yes --libs gl );$(shell wx-config --debug=no --unicode=yes --libs )
Is this how it is suppose to work?
I had it working with a single set of options with CodeLite 4.0
From what I can tell it is related to a change in the wxWidgets-2.9.4\lib\gcc_dll\mswu\build.cfg file between CodeLite 4.0 and 4.1 since the wx-config.exe file appears to be the same version.