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

Author Topic: Precompiled binaries Linux 64bit problem  (Read 7120 times)

0 Members and 1 Guest are viewing this topic.

paupav

  • Full Member
  • ***
  • Posts: 156
    • View Profile
    • Email
Precompiled binaries Linux 64bit problem
« on: February 26, 2015, 10:13:49 pm »
Basically when you download Linux 64 bit binaries from the SFML website there are 3 files named : "include" "share" and "lib". If you copy that to /usr/local and then compile your program, you should get this error in the terminal:
error while loading shared libraries: libsfml-graphics.so.2

I've renamed "lib" folder which was extracted from the SFML to "lib64" and copied it to /usr/local and now everything works
« Last Edit: February 27, 2015, 05:00:59 pm by paupav »

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Precompiled binaries Linux 64bit problem
« Reply #1 on: February 27, 2015, 04:23:24 am »
.... and what do you want us to do? If you choose to manually install the libs to a folder that your distro doesn't expect to have libs in we can't do much. If you want stuff to be installed in the correct locations automatically compile SFML with CMake run the install target.  ;)
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

paupav

  • Full Member
  • ***
  • Posts: 156
    • View Profile
    • Email
Re: Precompiled binaries Linux 64bit problem
« Reply #2 on: February 27, 2015, 05:07:08 pm »
In the 32 bit Linux distros there are folders in /usr/local called "include", "share and "lib". In the 64bit distros there are folders "include", "share", "lib64" so, I think that folder "lib" should be renamed to "lib64" to avoid error that I have mentioned in previous post in the thread.
 :D

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Precompiled binaries Linux 64bit problem
« Reply #3 on: February 27, 2015, 05:46:23 pm »
And you are sure that this applies to every possible 64 bits distro?
Laurent Gomila - SFML developer

paupav

  • Full Member
  • ***
  • Posts: 156
    • View Profile
    • Email
Re: Precompiled binaries Linux 64bit problem
« Reply #4 on: February 27, 2015, 10:30:51 pm »
I am currently running Fedora 21, but I think that it also applies to Ubuntu. I will try and see if that also applies to Arch.

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Precompiled binaries Linux 64bit problem
« Reply #5 on: February 28, 2015, 12:27:41 am »
What about
 Slackware
 SUSE
 CentOS
 Debian
 Mint
And all the others?

paupav

  • Full Member
  • ***
  • Posts: 156
    • View Profile
    • Email
Re: Precompiled binaries Linux 64bit problem
« Reply #6 on: March 02, 2015, 10:50:38 am »
I think that Debian based distros should have the same way of storing libraries. I can check them out too.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Precompiled binaries Linux 64bit problem
« Reply #7 on: March 02, 2015, 11:15:31 am »
Don't start checking all distros... rather search a general rule or recommended pratice.
Laurent Gomila - SFML developer

paupav

  • Full Member
  • ***
  • Posts: 156
    • View Profile
    • Email
Re: Precompiled binaries Linux 64bit problem
« Reply #8 on: March 03, 2015, 12:24:27 am »
ElementaryOS has folders "lib" and "lib32" on 64bit machine.

It seems that Debian team and Red Hat have different ways of storing libraries
http://www.redhat.com/magazine/009jul05/features/multilib/
« Last Edit: March 03, 2015, 12:32:41 am by paupav »

SeriousITGuy

  • Full Member
  • ***
  • Posts: 123
  • Still learning...
    • View Profile
Re: Precompiled binaries Linux 64bit problem
« Reply #9 on: March 03, 2015, 11:42:17 am »
Same for Ubuntu x64: /usr/local/lib for 64Bit and /usr/local/lib32 for 32Bit obviously.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: Precompiled binaries Linux 64bit problem
« Reply #10 on: March 24, 2015, 08:05:10 am »
The file system hierarchy standard (http://www.pathname.com/fhs/pub/fhs-2.3.html) says that /usr/lib contains libs for user programs, and /usr/lib<qual> contains libs in another format, including a different architecture.

Without knowing it, I assume that Ubuntu symlinks /usr/lib to /usr/lib64. So when you tried to copy files, it did not work.

So general rule is: /usr/lib always contains native libraries, but might be a symlink so that some file operations have to be treated differently.

As someone else said: Build SFML yourself and let CMake handle the installation. It will take such things into account.

paupav

  • Full Member
  • ***
  • Posts: 156
    • View Profile
    • Email
Re: Precompiled binaries Linux 64bit problem
« Reply #11 on: April 04, 2015, 04:15:15 pm »
It seems that Debian team and Red Hat have different ways of storing libraries
http://www.redhat.com/magazine/009jul05/features/multilib/