Hello,

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.

Recommended Answers

Have you installed the wxGTK, wxGTK-gl, and associated development packages?

Jump to Post

All 2 Replies

Have you installed the wxGTK, wxGTK-gl, and associated development packages?

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/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.