Iv been trying to compile a simple opengl / wxwidgets program in c++ on linux mint. However when i try to compile with :

g++ MyGLCanvas.cpp  MyGLCanvas.h openGLProjectApp.cpp  openGLProjectApp.h openGLProjectFrm.cpp openGLProjectFrm.h `wx-config --cxxflags --libs --gl-libs -lGL` -o simpleprogram

I get an error message :

cannot find -lwx_gtk2u_-lGL-2.8
collect2: error: ld returned 1 exit status

I have installed mesa and all the standard opengl library's such as libglumesa etc. However still seem to be unable to compile with g++, any advice would be very useful. The library lwx_gtk2U_-lgl is unfindable on any repository site i have been on as well.

5 Years
Discussion Span
Last Post by trishtren

wxGTK is installed, however wxGTK-gl is not in the linux mint repository at all. So it seems you are correct about the missing wxGTK-gl package, however i have o idea where to get it and install it with all required dependencies/

Edited by trishtren

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.