Compiling error: cannot find -lGLU and -lGL in kubuntu linux Compiling error: cannot find -lGLU and -lGL in kubuntu linux linux linux

Compiling error: cannot find -lGLU and -lGL in kubuntu linux


You need the following 2 packages:

xlibmesa-gl-devxlibmesa-glu-dev

-- edit --

Thanks for correction @ephemient, these were obsolete names, right names are:

libgl1-mesa-devlibglu1-mesa-dev


In addition to the the answer about installing the right libraries (sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev) you may need to add:unix:LIBS += -L/usr/lib/x86_64-linux-gnu/mesa/to your .pro file, I know I needed to. Of course that path may be different if your using 32bit software or other system dependant reasons.