home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Cube problems on Ubuntu

by CrazyNorman on 01/01/2005 18:35, 16 messages, last message: 12/18/2006 05:59, 4135 views, last view: 04/29/2024 09:41

I\'m running Ubuntu linux. My first problem was that I\'m running AMD64, and to get around this, I edited the \"cube_unix\" script to ignore the proc type. Then, it comes up with \"./bin_unix/linux_client: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or directory\"

Now, I have this library installed.

\"$ locate libSDL-1.2.so.0
/usr/lib/libSDL-1.2.so.0
/usr/lib/libSDL-1.2.so.0.7.0\"

As can be seen, I have this. Is there anywhere special I need to put libSDL?

According to ldd: \"$ ldd linux_client
linux-gate.so.1 => (0x00000000)
libSDL-1.2.so.0 => not found
libSDL_image-1.2.so.0 => not found
libSDL_mixer-1.2.so.0 => not found
libz.so.1 => /usr/lib32/libz.so.1 (0x55578000)
libGL.so.1 => /usr/lib32/libGL.so.1 (0x55589000)
libGLU.so.1 => /usr/lib32/libGLU.so.1 (0x555f8000)
libstdc++.so.5 => /usr/lib32/libstdc++.so.5 (0x55673000)
libm.so.6 => /lib32/libm.so.6 (0x5572d000)
libgcc_s.so.1 => /lib32/libgcc_s.so.1 (0x55750000)
libc.so.6 => /lib32/libc.so.6 (0x55759000)
libX11.so.6 => /usr/X11R6/lib32/libX11.so.6 (0x5588c000)
libpthread.so.0 => /lib32/libpthread.so.0 (0x55953000)
libXext.so.6 => /usr/X11R6/lib32/libXext.so.6 (0x559a4000)
libdl.so.2 => /lib32/libdl.so.2 (0x559b2000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)\"

Any idea why libsdl is not being found?

   Board Index   

#1: Really now?...

by elephanthunter on 01/02/2005 04:55

I'm using the Warty Ubuntu distribution and haven't come across any problems. You might try using the Synaptic Package Manager, that comes with Ubuntu, to install another SDL game such as gltron and see if that works.

Just a guess.

reply to this message

#2: ..

by Grogan on 01/03/2005 21:08

I'll bet the dynamic linker is expecting those to be in /usr/lib32 on your system. I've never used Ubuntu before, so I don't know what makes it tick though.

A quick test might be to symlink those libraries in /usr/lib32 or try to start cube with a LD_LIBRARY_PATH

---------------------
#! /bin/sh

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib

cd /wherever/you/put/cube
bin_unix/linux_client -w1024 -h768
----------------------

Not sure what the deal is, but this is easy to try.

reply to this message

#3: ..

by Drakker_ on 01/04/2005 12:44

libSDL-1.2.so.0 => not found
libSDL_image-1.2.so.0 => not found
libSDL_mixer-1.2.so.0 => not found

You need these packages/libs for cube to run, grab them.

reply to this message

#4: ..

by Tshwala on 05/12/2005 14:55

You need to install the sdl emulation libraries. The 32 bit program won\'t read the 64 bit libraries. Hopefully Ubuntu has those somewhere.

reply to this message

#5: ..

by celestial on 05/30/2006 22:08

Sorry to resurrect this thread, but I'm having the same problem. I installed the 32-bit compatibility SDL libraries but that package only provides these files:
/usr/lib32/libSDL_mixer-1.2.so.0
/usr/lib32/libSDL_net-1.2.so.0
/usr/lib32/libSDL.so
/usr/lib32/libSDL-1.2.so.0

I still need libSDL_image-1.2.so.0 and possibly others.
I'm using the Dapper RC, but I had the same problem under Breezy.
Can anyone help with this?

Thank you.

reply to this message

#6: ..

by makkE on 05/30/2006 22:25

You´ll need to manually download and install them.

reply to this message

#7: ..

by celestial on 05/30/2006 23:10

Ok, tried that. First it asked for SDL_image, I installed that with --force-architecture. Then I needed libvorbisfile, then libvorbis, then libogg the same way...they're all different packages. There were several more that I needed too. After all that, not only did Cube segfault when I tried to run it, Synaptic complained about broken packages and REINSTALLED the AMD64 versions of all those that I just installed.
There has to be a better way to do this, I had it working for a while on Mandrake 10.

reply to this message

#8: ..

by celestial on 06/10/2006 04:26

Does anyone know what I need to do?
I managed to get Sauerbraten to compile, and it works pretty well, but my weak GeForce 4 MX card gets twice as many fps in Cube, so I'd like to get that working if I can...

reply to this message

#9: ..

by .t. on 06/18/2006 11:53

What you need to do is \"apt-get --reinstall install libsdl-image1.2 libsdl-mixer1.2 libsdl1.2\"

reply to this message

#10: ..

by celestial on 06/18/2006 23:30

That didn't help.
I think the problem is that Cube needs the 32-bit versions of these libraries; the 64-bit versions are correctly installed.
I could try installing them with dpkg --force-architecture, but that would probably create a new set of problems with anything else that needs SDL...

reply to this message

#11: ..

by celestial on 06/18/2006 23:32

err-wait, I already did that a while ago and it didn't resolve anything...

reply to this message

#12: ..

by hampus_ on 06/19/2006 01:02

Maybe you could try to compile Sauerbraten yourself?

reply to this message

#13: ..

by celestial on 06/19/2006 01:50

It's Cube, not Sauerbraten, that I'm having a problem with; Sauerbraten works (as well as can be expected with my video card). I get only (on average) around 40-50 fps at best, dropping to around 20 on many of the maps. This is why I'd rather play Cube.
There are two reasons why I can't compile my own: first, that I wanted to be able to play on the public servers, and I can't do that with my own binary because of the "cheat protection": only official binaries are allowed to connect. Secondly, when I try to compile it, I get these errors:

tools.h: In constructor ‘vector<T>::vector()’:
tools.h:159: error: there are no arguments to ‘gp’ that depend on a template parameter, so a declaration of ‘gp’ must be available
tools.h:159: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
tools.h: In constructor ‘hashtable<T>::hashtable()’:
tools.h:234: error: there are no arguments to ‘gp’ that depend on a template parameter, so a declaration of ‘gp’ must be available
make: *** [client.o] Error 1

Thanks for paying attention.

reply to this message

#14: ubuntu problems

by nrwilk on 06/22/2006 01:58

I have this exact same problem. Except, I'm running Kubuntu (KDE, which shouldn't make any difference) and it's the regular 32-bit version. I'm getting the same error mentioned above. I can run other OpenGL games, so I know I have the libraries. But, I don't know how to find them so that I can link them to /usr/lib32.

Any suggestions?

reply to this message

#15: If you use ‘-fpermissive’, G++ will accept your code.

by unnamed on 12/14/2006 22:01

Add "-fpermissive" to the CXXOPTFLAGS in your Makefile.

reply to this message

#16: Message censored by administrator

by demonicpriest666 on 12/18/2006 05:59

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53864428 visitors requested 71639572 pages
page created in 0.024 seconds using 10 queries
hosted by Boost Digital