Answer the question
In order to leave comments, you need to log in
How to connect OpenGL to wxWidgets in CodeLite?
I created an application using the wxWidgets + wxFrame template, compiled it, and launched it! Further on the tutorial I copied and pasted the code, in Linker -> Libraries (Searsh Path) I specified libraries gl; glut (path), also in Compiler -> Include Paths I specified the path to the glut header.
But as a result, when building, I get a bunch of Warnings and a missing exe. What is the error, and how to properly configure opengl with wxWidgets?
Answer the question
In order to leave comments, you need to log in
Taki built the project on Ubuntu, after compiling and installing the sources, using the example from the first example. And I got the same error undefined reference to wxGLCanvas
, which means the lack of a library in which the wxGLCanvas class is defined. It would seem that I already specified the linker -lGL, -lglut
, but no, it needed --gl-libs
.
P.S. Problem solved thanks to this 11 year old post .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question