Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when make install #85

Open
lucarsso opened this issue Sep 29, 2020 · 2 comments
Open

Error when make install #85

lucarsso opened this issue Sep 29, 2020 · 2 comments

Comments

@lucarsso
Copy link

lucarsso commented Sep 29, 2020

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
Copy link

danfe commented Dec 9, 2020

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
Copy link
Member

davvid commented Dec 10, 2020

Do you have libglvnd installed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants