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

Author Topic: Make install did not install correctly  (Read 8783 times)

0 Members and 1 Guest are viewing this topic.

Recruit0

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Make install did not install correctly
« on: June 18, 2010, 03:43:09 pm »
I ran:

sudo make install

And did not get any errors. I compiled this tutorial: http://www.sfml-dev.org/tutorials/1.6/window-events.php

I tried running it and I get " error while loading shared libraries: libsfml-window.so.1.6: cannot open shared object file: No such file or directory"

What should I do? I see the library files in the SFML-1.6 unzipped lib folder but I'm assuming those files aren't compiled for my system (Fedora 13 x64).

EDIT:

Nevermind, I found where they were installed with:

sudo find -mount -iname *sfml*

Which spits out:

./usr/local/include/SFML
./usr/local/lib/libsfml-audio.so.1.6
./usr/local/lib/libsfml-network.so
./usr/local/lib/libsfml-network.so.1.6
./usr/local/lib/libsfml-system.so
./usr/local/lib/libsfml-graphics.so
./usr/local/lib/libsfml-graphics.so.1.6
./usr/local/lib/libsfml-window.so.1.6
./usr/local/lib/libsfml-system.so.1.6
./usr/local/lib/libsfml-audio.so
./usr/local/lib/libsfml-window.so

I don't understand why they installed there. How should I proceed? It seems the make install command did not work correctly, it is supposed to install them into /user/lib/ as stated here: http://www.sfml-dev.org/tutorials/1.6/start-linux.php

At the moment I'm going to set DESTDIR=/usr/lib (which is supposed to be the default) after I uninstall the current "installation".

EDIT2:

After some more searching apparently I need to edit system settings to search in /usr/local when loading libraries. Why wasn't it installed into the default DESTDIR?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Make install did not install correctly
« Reply #1 on: June 18, 2010, 03:57:59 pm »
/usr/lib is no longer the default install directory, it is indeed /usr/lib/local and there's nothing wrong with that :)

I should update the tutorial though.
Laurent Gomila - SFML developer

Recruit0

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Make install did not install correctly
« Reply #2 on: June 18, 2010, 04:01:42 pm »
There should be some sort of notification for Fedora users (possibly other distros as well) that they need to set ldconfig to search in that directory. Or the installation process should be more automated.

There appears to be a SFML RPM but it's for mandriva (which may use a different directory setup than Fedora). It's also v1.5. Is anyone managing packages for SFML?

pdusen

  • Newbie
  • *
  • Posts: 30
    • View Profile
Make install did not install correctly
« Reply #3 on: June 18, 2010, 05:00:15 pm »
Quote from: "Recruit0"
There appears to be a SFML RPM but it's for mandriva (which may use a different directory setup than Fedora). It's also v1.5. Is anyone managing packages for SFML?


I don't believe there are any Fedora rpms out there; at least, I was never able to find any when I used Fedora.

Incidentally, there are packages in Ubuntu (and Debian, I assume), but their dependencies are incomplete; they don't require you to install OpenGL headers that really are required to actually use SFML.

christoph

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • http://www.christoph-egger.org
Make install did not install correctly
« Reply #4 on: June 18, 2010, 08:42:43 pm »
I'm not aware of any distribution where /usr/local/lib is not in ldconfig's path. No need to do anything special there.

I guess I can get mesa-dev for the next upload of the debian packages into ecommended (filling bug helps isses to be solved!)

k.a.schubert

  • Newbie
  • *
  • Posts: 1
    • View Profile
Make install did not install correctly
« Reply #5 on: May 03, 2011, 12:18:19 am »
I can confirm what Recruit0 said.

I'm doing a project in eclipse Helios on Ubuntu 11.04 and
under /usr/local/lib the dynamic linker doesn't find the sfml libs (*.so).
But under /usr/lib it's no problem, I just changed the makefile.

the error it gives me under /usr/local/lib is:
error while loading shared libraries: libsfml-graphics.so.1.6: cannot open shared object file: No such file or directory

And this file is definitely in /usr/local/lib, so this dir can't be searched.

So it works for me with different path, but i wonder how i can get  /usr/local/lib to be found by
the dynamic linker.

Tried to add a file to etc/ld.so.conf.d:

name: sfml.conf

inside I just wrote /usr/local/lib

I don't know where the connection is between sfml.conf and the libsfml-system.so for
example.

regards,
Kai

IAmCorbin

  • Newbie
  • *
  • Posts: 2
    • View Profile
Make install did not install correctly
« Reply #6 on: January 28, 2012, 03:15:16 pm »
I'm having this same problem,

Code: [Select]

$ ./a.out
./a.out: error while loading shared libraries: libsfml-system.so.2: cannot open shared object file: No such file or directory


Code: [Select]

$ find /usr/local/lib -name *sfml*
/usr/local/lib/libsfml-network.so.2.0
/usr/local/lib/libsfml-network.so.2
/usr/local/lib/libsfml-window.so
/usr/local/lib/libsfml-window.so.2.0
/usr/local/lib/libsfml-window.so.2
/usr/local/lib/libsfml-audio.so.2.0
/usr/local/lib/libsfml-system.so.2
/usr/local/lib/libsfml-system.so
/usr/local/lib/libsfml-audio.so.2
/usr/local/lib/libsfml-system.so.2.0
/usr/local/lib/libsfml-audio.so
/usr/local/lib/libsfml-graphics.so.2
/usr/local/lib/libsfml-graphics.so.2.0
/usr/local/lib/pkgconfig/sfml-system.pc
/usr/local/lib/pkgconfig/sfml-graphics.pc
/usr/local/lib/pkgconfig/sfml-network.pc
/usr/local/lib/pkgconfig/sfml-all.pc
/usr/local/lib/pkgconfig/sfml-audio.pc
/usr/local/lib/pkgconfig/sfml-window.pc
/usr/local/lib/libsfml-graphics.so
/usr/local/lib/libsfml-network.so



Edit:
Fixed it! Program Execution Complete!  :D

found the answer in this thread ( http://ubuntuforums.org/showthread.php?t=420008 ), it was mentioned above, but I didn't get it  :?  Just had to "Add /usr/local/lib to /etc/ld.so.conf then run ldconfig"