Author Topic: can't open libSDL-1.2.so.0?  (Read 12311 times)

kenyee

  • Posts: 7
  • Turrets: +0/-0
can't open libSDL-1.2.so.0?
« on: April 13, 2006, 03:59:32 am »
Anyone else have this problem?
I found a thread on this forum that said to add /usr/lib (where this library is) to /etc/ld.so.conf and then I ran ldconfig to reload it, but I still have this problem trying to run tremulous:

tremulous: error while loading shared libraries: libSDL-1.2.so.0:cannot, open shared object file: No such file or directory.  I'm using the latest Tremulous 1.1 download.

It's 64-bit Debian (Kanotix) if that matters.  Is it a 32-bit shared library vs. 64-bit shared library issue?  If so, does that mean I need a copy of Tremulous that's linked to the 64-bit libraries?

 thanks,

 ken

tjw

  • Posts: 210
  • Turrets: +10/-0
can't open libSDL-1.2.so.0?
« Reply #1 on: April 13, 2006, 03:23:57 pm »
Yes it sounds like your libSDL-1.2.so could be 64-bit so it wouldn't work.

Some workarounds are:

1) put a 32-bit libSDL-1.2.so.0 file in the same directory as tremulous.x86
2) build a 64-bit tremulous.x86 (or is it tremulous.x86-64?)
3) build another 32-bit tremulous.x86 that is statically linked to libSDL.a

1 would be the simplest if you have such a file available.  2 would probably be the best, and if all else fails I can probably help you out with 3.

kenyee

  • Posts: 7
  • Turrets: +0/-0
32-bit libSDL
« Reply #2 on: April 13, 2006, 03:40:02 pm »
Yep, seems like that's the problem.  I've been googling and found two threads related to it:
http://linux.derkeiler.com/Mailing-Lists/Fedora/2005-03/5633.html
http://www.ubuntuforums.org/archive/index.php/t-82837.html

Unfortunately, I don't have ia32-libs-sdl on Debian.
Any other suggestions on where to get the 32-bit version?  Looks like I'm running libSDL-1.2.so.0.7.2 on this 64-bit system.

No one else has tried running Tremulous on a 64-bit Linux system? :-P

tjw

  • Posts: 210
  • Turrets: +10/-0
can't open libSDL-1.2.so.0?
« Reply #3 on: April 13, 2006, 04:33:46 pm »
I think at least one person got a native x86_64 version working:

http://tremulous.net/phpBB2/viewtopic.php?t=446&highlight=x8664

I just built tremulous.x86 statically against SDL 1.2.9.  You can get
get it here:

http://www.tjw.org/tremulous/static-SDL/

kenyee

  • Posts: 7
  • Turrets: +0/-0
Thanks!
« Reply #4 on: April 13, 2006, 06:13:55 pm »
That worked!  I even get around 50-60 fps on a lowly 6150 (Asus A8N CSM board) at 1280x1024 (75-80 at the default of 640x480)

Thanks again.
I'm not sure why libSDL isn't included in ia32-libs...I'll see if I can bug the maintainer of that package to include it.  Seems a waste to statically link it into every game since it looks like it increased the size of Tremulous from 1.6MB to 4.7MB...

kenyee

  • Posts: 7
  • Turrets: +0/-0
can't open libSDL-1.2.so.0?
« Reply #5 on: April 14, 2006, 03:03:16 am »
I tried to submit a wishlist request to ia32-libs and it turns out 1.7 was just released today and includes libSDL, so we shouldn't see this problem any more :-)

mority

  • Posts: 2
  • Turrets: +0/-0
can't open libSDL-1.2.so.0?
« Reply #6 on: July 19, 2006, 03:59:01 pm »
I had this problem on a Ubuntu 6.06 x86_64 system. Just had to install the package ia32-libs-sdl and it worked.
size=10]german kezboards suck!
mo.agrav.org[/size]