SFML community forums

General => SFML website => Topic started by: paupav on February 26, 2015, 10:13:49 pm

Title: Precompiled binaries Linux 64bit problem
Post by: paupav 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
Title: Re: Precompiled binaries Linux 64bit problem
Post by: zsbzsb 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.  ;)
Title: Re: Precompiled binaries Linux 64bit problem
Post by: paupav 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
Title: Re: Precompiled binaries Linux 64bit problem
Post by: Laurent on February 27, 2015, 05:46:23 pm
And you are sure that this applies to every possible 64 bits distro?
Title: Re: Precompiled binaries Linux 64bit problem
Post by: paupav 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.
Title: Re: Precompiled binaries Linux 64bit problem
Post by: Jesper Juhl on February 28, 2015, 12:27:41 am
What about
 Slackware
 SUSE
 CentOS
 Debian
 Mint
And all the others (http://distrowatch.com/)?
Title: Re: Precompiled binaries Linux 64bit problem
Post by: paupav 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.
Title: Re: Precompiled binaries Linux 64bit problem
Post by: Laurent on March 02, 2015, 11:15:31 am
Don't start checking all distros... rather search a general rule or recommended pratice.
Title: Re: Precompiled binaries Linux 64bit problem
Post by: paupav 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/
Title: Re: Precompiled binaries Linux 64bit problem
Post by: SeriousITGuy on March 03, 2015, 11:42:17 am
Same for Ubuntu x64: /usr/local/lib for 64Bit and /usr/local/lib32 for 32Bit obviously.
Title: Re: Precompiled binaries Linux 64bit problem
Post by: Tank 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.
Title: Re: Precompiled binaries Linux 64bit problem
Post by: paupav 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/