LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-14-2005, 04:32 PM   #1
t3gah
Member
 
Registered: Dec 2004
Distribution: SuSE, RedHat, ubuntu, Debian
Posts: 734

Rep: Reputation: 30
libSDL.so.0


I keep getting this error that libSDL.so.0 cannot be found when I try to compile some apps. What the fireturck does libSDL.so.0 belong to?
 
Old 03-14-2005, 04:36 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
SDL

http://www.libsdl.org/index.php
 
Old 03-14-2005, 11:29 PM   #3
t3gah
Member
 
Registered: Dec 2004
Distribution: SuSE, RedHat, ubuntu, Debian
Posts: 734

Original Poster
Rep: Reputation: 30
Arrow libsdl.org ? packages already installed see list:

Quote:
Originally posted by __J
SDL

http://www.libsdl.org/index.php
Thanks for the URL, I know that already. I meant, what package does libsdl.so.0 belong to.

These are the SDL rpm's I have installed:

SDL-1.2.7-8.i386.
SDL_mixer-1.2.5-4.i386.
SDL_net-1.2.5-2.i386.
SDL_image-1.2.3-6.i386.
SDL_mixer-devel-1.2.5-4.i386.
SDL_net-devel-1.2.5-2.i386.
SDL-devel-1.2.7-8.i386.
SDL_image-devel-1.2.3-6.i386.
 
Old 03-15-2005, 06:57 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
SDL-1.2.7-8.i386.

it's the main lib of sdl, but *.so.0 is usually just a symlink back to the real lib. here's mine:

ls -l /usr/lib | grep SDL
lrwxrwxrwx 1 root root 19 2005-03-06 15:09 libSDL-1.2.so.0 -> libSDL-1.2.so.0.7.0
-rwxr-xr-x 1 root root 397540 2004-06-19 19:57 libSDL-1.2.so.0.7.0
-rwxr-xr-x 1 root root 1069 2004-06-19 19:56 libSDL.la
lrwxrwxrwx 1 root root 19 2005-03-06 15:09 libSDL.so -> libSDL-1.2.so.0.7.0

if you have libSDL-1.x.so.x.x.x already, you could symlink it to libSDL.so.0, but it's hard to say unless you post your exact errors.
 
Old 03-15-2005, 08:25 PM   #5
t3gah
Member
 
Registered: Dec 2004
Distribution: SuSE, RedHat, ubuntu, Debian
Posts: 734

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by __J
SDL-1.2.7-8.i386.

it's the main lib of sdl, but *.so.0 is usually just a symlink back to the real lib. here's mine:

ls -l /usr/lib | grep SDL
lrwxrwxrwx 1 root root 19 2005-03-06 15:09 libSDL-1.2.so.0 -> libSDL-1.2.so.0.7.0
-rwxr-xr-x 1 root root 397540 2004-06-19 19:57 libSDL-1.2.so.0.7.0
-rwxr-xr-x 1 root root 1069 2004-06-19 19:56 libSDL.la
lrwxrwxrwx 1 root root 19 2005-03-06 15:09 libSDL.so -> libSDL-1.2.so.0.7.0

if you have libSDL-1.x.so.x.x.x already, you could symlink it to libSDL.so.0, but it's hard to say unless you post your exact errors.
The game is Heretic. The exact file name is libSDL-1.1.so.0 and through some research I've found that the build at http://heretic.linuxgames.com/homepage3.html states to get the latest SDL but that is what I have. The rpm's on that page are looking for the older version of libSDL. I made a mistake when I first posted by forgetting to include the 1.1 part. Sorry about that. Thanks for the sym link part. Maybe you know of a better or a place to get heretic that doesn't require libSDL1.1.so.0 because the only rpm's I've been able to find are for x390s and previous versions of SDL. And the problem with going back is that my other games require the latest.

Decisions, decision....
 
Old 03-16-2005, 06:19 AM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
ok, there are multiple ways to do this, but here's an easy one:

first go here and grab one of the source packages ( get 1.1.5.tar.gz or 1.1.6 - somewhere around there should do fine):

http://www.libsdl.org/release/

unpack it and do your configure, but make sure you pass the prefix you want to it like:

./configure --prefix=$HOME/oldsdl

which will install the lib in $HOME/oldsdl/lib.


We don't want to add that directory to /etc/ld.so.conf or anything like that and make sure you leave your 1.2 version alone so your newer games work.

next step depends on how you launch the game, so the example I will give is for enemy territory. during install, et symlinks /usr/local/games/enemy-terrirtory/et to /usr/local/bin/et so you can launch it within your path. for this example, I would want to remove the symlink and replace it with a simple shell script:

Code:
# start of script
#!/bin/sh

export LD_LIBRARY_PATH=/home/<user>/oldsdl/lib:$LD_LIBRARY_PATH
exec /usr/local/games/enemy-territory/et
this will force the library linker to look in $HOME/oldsdl/lib before anywhere else when looking for libraries ( basically we are just overriding it so it picks up the old version before the 1.2 version you already have).

hope this helps

EDIT: oops, almost forgot, after you create that script, save it as whatever you want and do:

chmod +x <script>

to make it executable, then move it somewhere in your PATH. Also, you don't have to remove the symlink like above, if your executable is named say heretic and in /usr/local/bin/, name the script runheretic.sh or whatever and change the exec line in the script to exec /usr/local/bin/heretic.

Last edited by __J; 03-16-2005 at 07:18 AM.
 
  


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 vs libsdl-devel Micro420 Linux - Software 3 01-13-2005 12:19 PM
libSDL Ryan450 Linux - Software 10 08-30-2004 07:48 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:56 PM.

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