Codelite 4.1 , wx-config and libs gl

General questions regarding the usage of CodeLite
moozoo
CodeLite Curious
Posts: 5
Joined: Fri Nov 16, 2012 7:43 am
Genuine User: Yes
IDE Question: c++
Contact:

Codelite 4.1 , wx-config and libs gl

Post by moozoo »

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.
User avatar
Jarod42
CodeLite Expert
Posts: 239
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Codelite 4.1 , wx-config and libs gl

Post by Jarod42 »

According to Re: codelite 4.1 is available.

Try to replace wx-config by this one wx-config.7z.
moozoo
CodeLite Curious
Posts: 5
Joined: Fri Nov 16, 2012 7:43 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Codelite 4.1 , wx-config and libs gl

Post by moozoo »

Thank you for the quick response.
I figured it might be a known issue but failed to find it, sorry.
Post Reply