You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The findgllib.mk file is executed by 'make' in all sample codes that use GL for visualization. This file tries to find the files libGL.so and libGLU.so in the system but only does so for supported distros (Ubuntu, Fedora, Rhel, CentOS and SUSE). If this programs are compiled in Pop the make command tells us it cannot find those libraries and fails.
This can be fixed by changing the default findgllib.mk file that ships with this repository, either adding an option for PopOs, which would look as follows. For the version that ships with cuda-11.2, after line 62 add:
This works since these files are installed with the cuda toolkit on /usr/lib/cuda/.
Alternatively, and a much simpler solution, is that line 89 (DFLT_PATH ?= /usr/lib) can be moved at the end of all if statements that check for distributions, right before lines 114 and 115 that actually try to find libGL.so and libGLU.so. I believe this last solution is actually what whoever wrote this file actually intended, since it's the last place to look for if a distribution cannot be recognized. This is how it then goes to find the header files, which works because it starts by setting a default distribution-independent path of search.
The text was updated successfully, but these errors were encountered:
The
findgllib.mk
file is executed by 'make' in all sample codes that use GL for visualization. This file tries to find the fileslibGL.so
andlibGLU.so
in the system but only does so for supported distros (Ubuntu, Fedora, Rhel, CentOS and SUSE). If this programs are compiled in Pop themake
command tells us it cannot find those libraries and fails.This can be fixed by changing the default
findgllib.mk
file that ships with this repository, either adding an option for PopOs, which would look as follows. For the version that ships with cuda-11.2, after line 62 add:This works since these files are installed with the cuda toolkit on
/usr/lib/cuda/
.Alternatively, and a much simpler solution, is that line 89 (
DFLT_PATH ?= /usr/lib
) can be moved at the end of all if statements that check for distributions, right before lines 114 and 115 that actually try to findlibGL.so
andlibGLU.so
. I believe this last solution is actually what whoever wrote this file actually intended, since it's the last place to look for if a distribution cannot be recognized. This is how it then goes to find the header files, which works because it starts by setting a default distribution-independent path of search.The text was updated successfully, but these errors were encountered: