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

Author Topic: libsfml-graphics.so.1.4-1084: cannot open shared object fil  (Read 5294 times)

0 Members and 1 Guest are viewing this topic.

bobl

  • Newbie
  • *
  • Posts: 18
    • View Profile
libsfml-graphics.so.1.4-1084: cannot open shared object fil
« on: February 08, 2010, 04:13:10 pm »
Thanks for creating sfml.
I think it's just what I've been looking for.

I've downloaded "SFML-1.5-sdk-linux-64.tar.gz"
and installed it on my phenom
runnning crunchbang linux 9.04.01 using...
make
sudo checkinstall &
make sfml-samples

Before realising that the sdk already provides the external libraries,
I installed them with...apt-get build-dep libsfml
(I was going to apt-get sfml too but only the C bindings are available on this distro)
My assumption is that the external libraries in the sdk have updated those that I previously installed with apt-get, where necessary. I may be wrong.

Some of the samples run ok ie...
opengl
pong
post-fx

the following samples don't ie...
qt
window
wxwidgets
X11

due to...
"error while loading shared libraries:libsfml-graphics.so.1.4-1084:cannot open shared object file"

libsfml-graphics.so.1.4-1084 doesn't sound right in version 1.5 and
"/usr/lib$ dir |grep libsfml-graphics" seems to "agree" by showing
libsfml-graphics.so.1.5
as a likely replacement.

I've crawled all over the dir looking for "1.4" in the hope that I could change it to 1.5 but I'm not seeing it.

Any advice to resolve this would be much appreciated.
Regards

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
libsfml-graphics.so.1.4-1084: cannot open shared object fil
« Reply #1 on: February 08, 2010, 10:40:36 pm »
Quote
I installed them with...apt-get build-dep libsfml
(I was going to apt-get sfml too but only the C bindings are available on this distro)

Are you sure that you never installed anything with that? Anyway, I can tell you that I've never created a file named libsfml-graphics.so.1.4-1084 (it is not in the SDK you downloaded). Maybe you can find what sfml packages you installed, or do a global search for this file on your hard drive, I don't know.
Laurent Gomila - SFML developer

bobl

  • Newbie
  • *
  • Posts: 18
    • View Profile
libsfml-graphics.so.1.4-1084: cannot open shared object fil
« Reply #2 on: February 09, 2010, 07:29:42 pm »
Yes you are right! Sorry for my clumsy/incomplete account.

Before realising that the Crunchbang package was just for C
and was not as up-to-date as the sdk
I did install the Crunchbang package.
However, I thought I had removed it with "apt-get remove --purge".
This appears to be the case below.

I installed the Crunchbang package again before installing the sdk
to increase my chances that all of the sdk's dependencies would be met.
I did this 'cos last week I was unable to install a number of the graphics
packages under consideration so that:
a) they ran
b) and included complete documentation and examples

Given this experience I'm afraid the fact that your sdk is self-sufficient came as a bit of a surprise to me, albeit a refreshing one.

It's helpful to know that the problem is probably due to apt's inability to completely tidy up.

Given your suggestions I tried to remove the dev package I installed.
I didn't know quite which one of the two it was so I tried to remove both.
As you can see in both cases apt tells me they are not installed.
ie
sudo apt-get remove --purge libsfml1.4-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package libsfml1.4-dev is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 131 not upgraded.
&
sudo apt-get remove --purge libcsfml1.4-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package libcsfml1.4-dev is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 131 not upgraded.

I also searched for anything pertaining to "libsfml-graphics" and got this...
sudo egrep -d recurse "libsfml-graphics" /
results in...
Binary file /etc/ld.so.cache matches
egrep: /etc/ssl/certs/b2c62324: No such file or directory
I have no idea what these are?

I've just reinstalled the sdk again but still get the same error message.
Do you think it's time to reinstall my os?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
libsfml-graphics.so.1.4-1084: cannot open shared object fil
« Reply #3 on: February 09, 2010, 09:23:51 pm »
Sorry I can't help much, I'm not an expert for all this Linux stuff :?
Laurent Gomila - SFML developer

bobl

  • Newbie
  • *
  • Posts: 18
    • View Profile
libsfml-graphics.so.1.4-1084: cannot open shared object fil
« Reply #4 on: February 09, 2010, 09:48:26 pm »
That's ok.
I've just
1) reinstalled my os,
2) downloaded only the 64 bit linux C++ sfml full sdk source package and checkinstall &
3)installed it using...
   make,
   sudo checkinstall and
   make sfml-samples

When I tried to run the wxwidgets sample I got the self-same error ie...

./wxwidgets
./wxwidgets: error while loading shared libraries: libsfml-graphics.so.1.4-1084: cannot open shared object file: No such file or directory

which suggests that the problem is inherent in the os binary itself.
I'll try re-installing the os and see if there's anything I can remove re sfml before downloading the sdk.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
libsfml-graphics.so.1.4-1084: cannot open shared object fil
« Reply #5 on: February 09, 2010, 11:05:53 pm »
Isn't it just because you don't have wxWidgets installed?
Laurent Gomila - SFML developer

bobl

  • Newbie
  • *
  • Posts: 18
    • View Profile
libsfml-graphics.so.1.4-1084: cannot open shared object fil
« Reply #6 on: February 10, 2010, 04:40:33 pm »
Cracked it!
I investigated your comments that I didn't have wxwidgets installed
and you were right. Crunchbang does come with some wxwidget packages but...

Compiling a wxwidgets test program showed that I was missing "wx-config".
I got it via "libwxgtk2.8-dev".

Similarly, a quick look at the makefile in /usr/lib/pkgconfig
showed that I was missing the gtk+-2.0.pc file
required by the makefile in SFML-1.5/samples/wxwidgets
(the include file was probably missing too).
I got them via "libgtk2.0-dev".

The sdk comes with the samples already compiled in samples/bin.
I deleted all executables in bin and ran "make sfml-samples".
Only "post-fx", "pong", "opengl" & "ftp" compiled,
leaving the original wxwidgets executable intact.
I'm thinking wxwidgets was probably compiled with 1.4
and that this is why it was looking for a 1.4 so.

To compile wxwidgets...
I went into SFML-1.5/samples/wxwidgets & typed "sudo make".
(Note: make without su status wasn't sufficient)
This produced "Main.o" & "wxSFMLCanvas.o".
I then linked with...
"g++ -o wxwidgets Main.o wxSFMLCanvas.o -lsfml-graphics -lsfml-window -lsfml-system `wx-config --libs` `pkg-config --libs gtk+-2.0`"
gleaned from the makefile.

"./wxwidgets" now displays a dialog.
On the right is a plain blue rectangle and...
on the left is a message box with a slider bar, below it.

Thx for sticking with me.