LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-29-2004, 02:53 PM   #1
Ryan450
Member
 
Registered: May 2004
Distribution: Doing the Distro Hop
Posts: 160

Rep: Reputation: 30
libSDL


Code:
/usr/local/games/armagetron/bin/armagetron: error while loading shared libraries: libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory
ok guys, the above code is what i get when trying to run one of my fav linux games, armagetron.. i'm pretty sure that libSDL isnt installed, so where do i get it? i did google this in, and it gave me back the sdl website, but i dont know what to grab to install it with :S...
 
Old 08-29-2004, 03:31 PM   #2
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Did you click on the "download" link?
http://www.libsdl.org/download-1.2.php

On Mandrake, you might want the RPM, but as usual I'd recommend downloading the source.
 
Old 08-29-2004, 03:57 PM   #3
Ryan450
Member
 
Registered: May 2004
Distribution: Doing the Distro Hop
Posts: 160

Original Poster
Rep: Reputation: 30
k, I downloaded the source, I'm no longer running mandrake 10.0, I've switched over to yopper currently.. i did ./configure which went fine
but when i did make i got this..

Code:
SDL_cpuinfo.c: In function `SDL_GetCPUFeatures':
SDL_cpuinfo.c:107: error: PIC register `%ebx' clobbered in `asm'
SDL_cpuinfo.c:107: error: PIC register `%ebx' clobbered in `asm'
SDL_cpuinfo.c:143: error: PIC register `%ebx' clobbered in `asm'
SDL_cpuinfo.c:143: error: PIC register `%ebx' clobbered in `asm'
SDL_cpuinfo.c:143: error: PIC register `%ebx' clobbered in `asm'
SDL_cpuinfo.c:107: error: PIC register `%ebx' clobbered in `asm'
SDL_cpuinfo.c:107: error: PIC register `%ebx' clobbered in `asm'
SDL_cpuinfo.c: At top level:
SDL_cpuinfo.c:58: warning: 'illegal_instruction' defined but not used
make[2]: *** [SDL_cpuinfo.lo] Error 1
make[2]: Leaving directory `/home/ryan/Downloads/SDL-1.2.7/SDL-1.2.7/src/cpuinfo'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ryan/Downloads/SDL-1.2.7/SDL-1.2.7/src'
make: *** [all-recursive] Error 1
ideas anyone?

(yopper has been so far a great success, really easy to setup, a little faster then mandrake I found, and I'm having a lot less problems with it, where
as Mandrake problems were nearly everywhere.)
 
Old 08-29-2004, 04:52 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
What compiler are you using? SDL-1.2.7 needs to be patched to compile it with gcc-3.4 http://lfs.securewebservices.co.uk/p...downloads/SDL/
 
Old 08-29-2004, 05:18 PM   #5
Ryan450
Member
 
Registered: May 2004
Distribution: Doing the Distro Hop
Posts: 160

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Andrew Benton
What compiler are you using? SDL-1.2.7 needs to be patched to compile it with gcc-3.4 http://lfs.securewebservices.co.uk/p...downloads/SDL/
umm.. not sure... how do you check your compiler version? <---- still a linux newbie after all
 
Old 08-29-2004, 08:51 PM   #6
Ryan450
Member
 
Registered: May 2004
Distribution: Doing the Distro Hop
Posts: 160

Original Poster
Rep: Reputation: 30
and how do i apply that patch?
 
Old 08-29-2004, 09:27 PM   #7
Ryan450
Member
 
Registered: May 2004
Distribution: Doing the Distro Hop
Posts: 160

Original Poster
Rep: Reputation: 30
ok, i managed to apply the patch, everything compiled, everything installed just fine .. but I'm still getting this error

Code:
/usr/local/games/armagetron/bin/armagetron: error while loading shared libraries: libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory
but when I use locate libSDL

Code:
/usr/lib/libSDL-1.2.so.0
/usr/lib/libSDL-1.2.so.0.7.1
/usr/lib/libSDL.a
/usr/lib/libSDL.la
/usr/lib/libSDLmain.a
/usr/lib/libSDL.so
it looks like its all installed into my system just fine.. but yet the same error is still coming up.. ideas anyone?
 
Old 08-29-2004, 11:08 PM   #8
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
libSDL_image is apparently not part of that package...I'd say it's time for another Google session.
 
Old 08-30-2004, 04:56 AM   #9
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
SDL-image depends on SDL though so you needed to install that as the first step. http://www.libsdl.org/projects/SDL_image/
 
Old 08-30-2004, 04:54 PM   #10
Ryan450
Member
 
Registered: May 2004
Distribution: Doing the Distro Hop
Posts: 160

Original Poster
Rep: Reputation: 30
hmmm, k, that made sense, went and downloaded that.. now I'm getting this error..

Code:
/usr/local/games/armagetron/bin/armagetron: error while loading shared libraries: libpng.so.2:cannot open shared object file: No such file or directory
now when I do a quick locate libpng

Code:
/usr/include/libpng
/usr/include/libpng12
/usr/include/libpng12/pngconf.h
/usr/include/libpng12/png.h
/usr/lib/libpng12.a
/usr/lib/libpng12.so
/usr/lib/libpng12.so.0
/usr/lib/libpng12.so.0.1.2.2
/usr/lib/libpng.a
/usr/lib/libpng.so
/usr/lib/libpng.so.3
/usr/lib/libpng.so.3.1.2.2
/usr/lib/pkgconfig/libpng12.pc
/usr/lib/vmware/lib/libpng.so.2
/usr/lib/vmware/lib/libpng.so.2/libpng.so.2
/usr/lib/vmware/lib/libpng.so.2/libpng.so.2.1.0.3
/usr/local/bin/libpng12-config
/usr/local/bin/libpng-config
/usr/local/include/libpng
/usr/local/include/libpng/pngconf.h
/usr/local/include/libpng/png.h
/usr/local/lib/libpng12.a
/usr/local/lib/libpng12.la
/usr/local/lib/libpng12.so
/usr/local/lib/libpng12.so.0
/usr/local/lib/libpng12.so.0.0.0
/usr/local/lib/libpng.a
/usr/local/lib/libpng.la
/usr/local/lib/libpng.so
/usr/local/lib/libpng.so.3
/usr/local/lib/libpng.so.3.0.0
/usr/local/lib/pkgconfig/libpng12.pc
/usr/local/lib/pkgconfig/libpng.pc
/usr/local/share/man/man3/libpng.3
/usr/local/share/man/man3/libpngpf.3
/usr/share/doc/libpng-1.2.5
/usr/share/doc/libpng-1.2.5/CHANGES
/usr/share/doc/libpng-1.2.5/example.c
/usr/share/doc/libpng-1.2.5/libpng.txt
/usr/share/doc/libpng-1.2.5/README
/usr/share/doc/libpng-1.2.5/TODO
it seems I have .2 installed in the vmware directory, and i went and downloaded the latest distro of libpng, which is a newer version.. should I try to recompile my program? or is there an option i can set that will point it to the libpng in VMware's directory?
 
Old 08-30-2004, 07:48 PM   #11
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
/usr/lib/vmware/lib/libpng.so.2/libpng.so.2 is most likely a symlink to /usr/lib/vmware/lib/libpng.so.2/libpng.so.2.1.0.3

You could probably make a link /usr/lib/libpng.so.2 to /usr/lib/vmware/lib/libpng.so.2/libpng.so.2.1.0.3 or copy it to /usr/lib/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is libSDL-1.2.so.0? ccerino Linux - Hardware 1 07-29-2005 01:46 PM
libSDL could not be found mandavi Linux - Software 2 03-18-2005 09:32 PM
libSDL.so.0 t3gah Linux - Software 5 03-16-2005 06:19 AM
libsdl vs libsdl-devel Micro420 Linux - Software 3 01-13-2005 12:19 PM
Where to find libSDL-1.3.so.0?? Caluka Linux - Games 4 07-28-2004 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration