Tip - using wxWidgets with OpenGL support

General questions regarding the usage of CodeLite
GabiLaser
CodeLite Enthusiast
Posts: 14
Joined: Wed Feb 16, 2011 6:07 pm
Genuine User: Yes
IDE Question: C++
Contact:

Tip - using wxWidgets with OpenGL support

Post by GabiLaser »

If wx-config used by CodeLite doesn't know about 'gl' flags (e.g. in Windows), you can use this small workaround. I assume you have wxWidgets built with OpenGL support (in which case it is not sufficient to edit config.gcc to enable it, but also afterwards you have to enable it again in each setup.h, for each built configuration and - at least in my case, i had to rebuild wxWidgets again). In your project settings, at the linker tab, edit the Options line to show something like this (bold text was added):

-s;-mwindows;$(shell wx-config --debug=no --libs --unicode=yes) -lwxmsw28u_gl -lopengl32

This shows a monolithic, unicode, release mode build. To use the debug one, replace -lwxmsw28u_gl with -lwxmsw28ud_gl etc.