Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Problems with building SFML 2.0 on Debian Sid  (Read 3438 times)

0 Members and 1 Guest are viewing this topic.

fatum

  • Newbie
  • *
  • Posts: 47
    • MSN Messenger - bowsers7@hotmail.com
    • AOL Instant Messenger - therealblah569
    • View Profile
    • http://boards.psynetfm.com
Problems with building SFML 2.0 on Debian Sid
« on: January 02, 2012, 11:00:03 am »
I'm trying to build SFML 2.0 on Debian Sid.

Here are the errors that I'm getting:

Code: [Select]

tim@debian:~/Downloads/LaurentGomila-SFML-8868350$ make
[ 14%] Built target sfml-system
make[2]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/libGL.so', needed by `lib/libsfml-window.so.2.0'.  Stop.
make[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
make: *** [all] Error 2


Obviously I assume it has something to do with libGL, but I'm not entirely sure how I could go about resolving this issue.

What could any potential issues be?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Problems with building SFML 2.0 on Debian Sid
« Reply #1 on: January 02, 2012, 11:10:11 am »
Clear your CMake cache and retry.
Laurent Gomila - SFML developer

fatum

  • Newbie
  • *
  • Posts: 47
    • MSN Messenger - bowsers7@hotmail.com
    • AOL Instant Messenger - therealblah569
    • View Profile
    • http://boards.psynetfm.com
Problems with building SFML 2.0 on Debian Sid
« Reply #2 on: January 02, 2012, 11:17:19 am »
Quote from: "Laurent"
Clear your CMake cache and retry.


Thanks for your reply!

However, I cleared the cache earlier, but the outcome was the same.  I just tried again, but I'm still experiencing the same problem.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Problems with building SFML 2.0 on Debian Sid
« Reply #3 on: January 02, 2012, 11:02:40 pm »
I had a similar issue yesterday:
Quote
make[2]: *** Pas de règle pour fabriquer la cible « /usr/lib/libXrandr.so », nécessaire pour « lib/libsfml-window.so.2.0 ».

And I'm pretty sure that I solved it by clearing the cache. I also moved from Debian stable to sid, and made a lot of upgrades, so I'm not 100% sure of what I did.

Anyway, the latest revision now compiles fine on my Debian.
Laurent Gomila - SFML developer

fatum

  • Newbie
  • *
  • Posts: 47
    • MSN Messenger - bowsers7@hotmail.com
    • AOL Instant Messenger - therealblah569
    • View Profile
    • http://boards.psynetfm.com
Problems with building SFML 2.0 on Debian Sid
« Reply #4 on: January 03, 2012, 08:17:41 pm »
Hmm, it seems that the libGL symlink is broken.  I'm not entirely sure what to make out of this, however I've been able to determine this by using:

Code: [Select]

tim@debian:/usr/lib/x86_64-linux-gnu$ file libGL.so
libGL.so: broken symbolic link to `libGL.so.1'
tim@debian:/usr/lib/x86_64-linux-gnu$ cd ..
tim@debian:/usr/lib$ file libGL.so.1
libGL.so.1: symbolic link to `libGL.so.290.10'

Silvah

  • Guest
Problems with building SFML 2.0 on Debian Sid
« Reply #5 on: January 04, 2012, 02:50:28 pm »
Quote from: "Laurent"
I had a similar issue yesterday:
Quote
make[2]: *** Pas de règle pour fabriquer la cible « /usr/lib/libXrandr.so », nécessaire pour « lib/libsfml-window.so.2.0 ».
Your issue was probably more serious, because you somehow managed to get the make utility output some random gibberish instead of an error message :P

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Problems with building SFML 2.0 on Debian Sid
« Reply #6 on: January 04, 2012, 03:03:39 pm »
:P :P :P
Laurent Gomila - SFML developer

IAmCorbin

  • Newbie
  • *
  • Posts: 2
    • View Profile
Problems with building SFML 2.0 on Debian Sid
« Reply #7 on: January 28, 2012, 02:32:20 pm »
I am experiencing the same problem:
Code: [Select]
[ 18%] Built target sfml-system
make[2]: *** No rule to make target `/usr/lib/libGL.so', needed by `lib/libsfml-window.so.2.0'.  Stop.
make[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
make: *** [all] Error 2


checking files:
Code: [Select]

$ file libGL.so
libGL.so: broken symbolic link to `mesa/libGL.so'
$ file mesa/libGL.so
mesa/libGL.so: broken symbolic link to `libGL.so.1'
$ file libGL.so.1
libGL.so.1: symbolic link to `libGL.so.285.05.09'
$ file libGL.so.285.05.09
libGL.so.285.05.09: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped


deleting and recreating the /usr/lib/mesa/libGL.so symbolic link fixed the problem. I just finished building.  :D