SaschaWillems / glCapsViewer

C++ port of the OpenGL hardware capability viewer
GNU Lesser General Public License v3.0
103 stars 28 forks source link

Binary version fails on Ubuntu 20.04 (workaround included) #32

Open darksylinc opened 2 years ago

darksylinc commented 2 years ago

Hi!

The Linux binary version distributed through https://opengl.gpuinfo.org/download.php will fail with the error:

./glcapsviewer: error while loading shared libraries: libGLEW.so.2.0: cannot open shared object file: No such file or directory

The problem is that glcapsviewer is linking against libGLEW.so.2.0 instead of libGLEW.so.2.1 which is the one included in Ubuntu 20.04

The version compiled is simply too old for that version of Ubuntu and the lib is not bundled together.

Workaround

A simple solution is to copy /usr/lib/x86_64-linux-gnu/libGLEW.so.2.1.0 into the same folder as the glcapsviewer e.g. /home/user/Downloads/glcapsviewer_1_2_linux64 and rename it to libGLEW.so.2.0.

Then use LD_LIBRARY_PATH to make it look for libGLEW.so.2.0 in that folder:

LD_LIBRARY_PATH=/home/matias/Downloads/glcapsviewer_1_2_linux64 ./glcapsviewer

It just works fine.