wdas / partio

C++ (with python bindings) library for easily reading/writing/manipulating common animation particle formats such as PDB, BGEO, PTC. https://wdas.github.io/partio
https://www.disneyanimation.com/open-source/partio/
Other
458 stars 133 forks source link

Error when make install #85

Open lucarsso opened 4 years ago

lucarsso commented 4 years ago

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

danfe commented 3 years ago

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.

davvid commented 3 years ago

Do you have libglvnd installed?