I am having a really strange issue compiling spring (83.0) on debian squeeze. About a week ago I was having some difficulties with openGL libraries but that is now fixed.
While spring is compiling it gets to about 73% and says:
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make[2]: *** [spring-multithreaded] Error 1
make[1]: *** [rts/builds/multithreaded/CMakeFiles/engine-multithreaded.dir/all] Error 2
make: *** [all] Error 2
http://pastebin.com/jmvWPntn
I have ran sudo apt-get build-dep spring
as far as I know all dependencies are satisfied
any ideas what I should try next?
/usr/bin/ld: cannot find -lGL while compiling?
Moderator: Moderators
-
- Posts: 27
- Joined: 03 Mar 2009, 01:08
/usr/bin/ld: cannot find -lGL while compiling?
Last edited by sellerman122 on 09 Nov 2011, 23:18, edited 1 time in total.
Re: /usr/bin/ld: cannot find -lGL while compiling?
You should have a file /usr/lib/libGL.so that is prob a symlink to the right version of that library. Distros use that to point to different OpenGL-implemetations - Mesa or Nvidia or ATI, etc.sellerman122 wrote:/usr/bin/ld: cannot find -lGL
Check that it's the right one - you can prob. set it with some tool, or by reinstalling the appropriate gfx-driver.
-
- Posts: 27
- Joined: 03 Mar 2009, 01:08
Re: /usr/bin/ld: cannot find -lGL while compiling?
Thank you so much! creating a symlink in /usr/lib to libGL.so worked perfect!