partio icon indicating copy to clipboard operation
partio copied to clipboard

Error when make install

Open lucarsso opened this issue 4 years ago • 2 comments

When I install this package it shows the following error message

/usr/bin/ld: cannot find -lOpenGL::OpenGL collect2: error: ld returned 1 exit status src/tools/CMakeFiles/partview.dir/build.make:91: recipe for target 'src/tools/partview' failed make[2]: *** [src/tools/partview] Error 1 CMakeFiles/Makefile2:967: recipe for target 'src/tools/CMakeFiles/partview.dir/all' failed make[1]: *** [src/tools/CMakeFiles/partview.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2

Is there any solution to this? Anything would help. When I search the internet I barely see any information regard to -lOpenGL::OpenGL. So I don't know how to solve this.

I am using the cmake version exactly 3.15.0

lucarsso avatar Sep 29 '20 17:09 lucarsso

Is there any solution to this? Anything would help.

Try doing this:

sed -i.bak -e 's,OpenGL::OpenGL,$${OPENGL_LIBRARIES},' src/tools/CMakeLists.txt

This is what I have in the FreeBSD port.

danfe avatar Dec 09 '20 07:12 danfe

Do you have libglvnd installed?

davvid avatar Dec 10 '20 03:12 davvid