I installed the wxWidgets source code, compiled it and am linking the libraries thus obtained with my application code. Now I need to use OpenGL in my wxWidgets application. How do I enable this?
A:
(Assume $(WXWIDGETSROOT) is the root directory of your wxWidgets installation.)
- Open the file $(WXWIDGETSROOT)\include\wx\msw\setup.h
- Search and find the option wxUSE_GLCANVAS. Change its value from 0 to 1.
- Recompile the library.
Ashwin
2008-08-18 03:37:03
+2
A:
If you're using configure
to build wxWidgets you just need to add --with-opengl
to your command line.
Jason Weathered
2008-08-30 14:14:58
+3
A:
For building on Linux and other
For building on Windows with project files:
Assume $(WXWIDGETSROOT) is the root directory of your wxWidgets installation.
- Open the file $(WXWIDGETSROOT)\include\wx\msw\setup.h
- Search for the
#define
forwxUSE_GLCANVAS
. - Change its value from 0 to 1.
- Recompile the library.
For building on Linux and other ./configure
based platforms:
Just use ./configure --with-opengl
(A mashup answer from two partial answers given by others)
Baxissimo
2008-09-16 14:17:45