eI'm trying to compile a c++ openGL program using libGL and freeglut3. Im trying:
g++ main.cpp -w -lglut -lGl -o bin/app
or
g++ main.cpp -w -lglut -lGL -o bin/app
Which results in:
/usr/bin/ld: cannot find -lGl
collect2: error: ld returned 1 exit status
Makefile:16: recipe for target 'all' failed
make: *** [all] Error 1
I'm on:
Ubuntu 16.04 LTS
GCC:
gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2)
libGL.so
/usr/lib/x86_64-linux-gnu$ find libGL.so
libGL.so
I installed:
freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev
Am I missing anything? Last time I successfully compiled I was on ubuntu 14.04.
I read somewhere that I should install fglrx-glx but the package is not available.
Update:
glxinfo
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.2.0
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.2.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 11.2.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:
My ldconfig.real appears to be empty