V
V
Vitaly Stolyarov2016-05-20 21:11:27
OpenGL
Vitaly Stolyarov, 2016-05-20 21:11:27

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

2 answer(s)
V
Vitaly Stolyarov, 2016-05-21
@Ni55aN

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 .

A
Andryukha, 2016-05-21
@syrov

Судя по природе проблем, у Вас Виндовс. Снесите. Будет трудно, но потом легче. Или хотябы перейдите на msys2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question