/usr/bin/ld: cannot find -lGL while compiling?

/usr/bin/ld: cannot find -lGL while compiling?

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
sellerman122
Posts: 27
Joined: 03 Mar 2009, 01:08

/usr/bin/ld: cannot find -lGL while compiling?

Post by sellerman122 »

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?
Last edited by sellerman122 on 09 Nov 2011, 23:18, edited 1 time in total.
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: /usr/bin/ld: cannot find -lGL while compiling?

Post by dansan »

sellerman122 wrote:/usr/bin/ld: cannot find -lGL
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.
Check that it's the right one - you can prob. set it with some tool, or by reinstalling the appropriate gfx-driver.
sellerman122
Posts: 27
Joined: 03 Mar 2009, 01:08

Re: /usr/bin/ld: cannot find -lGL while compiling?

Post by sellerman122 »

Thank you so much! creating a symlink in /usr/lib to libGL.so worked perfect!
Post Reply

Return to “Linux”