OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: daniel3000 on June 17, 2006, 06:26:46 pm

Title: Supertux Game: "can't Load .."
Post by: daniel3000 on June 17, 2006, 06:26:46 pm
Hello,

I have tried to install and run Supertux_0.1.2-3_arm.ipk.
Installation went fine, SDL libs are installed, after getting an unresolved symbol "gzungetc" I compiled and installed the latest zlib (the zlib I found as an IPK didn't solve the problem (1.2.2 or so), it seems not to contain this symbol).

Now I get the following error:

Code: [Select]
Error: Can't load
/home/QtPalmtop/bin/../share/supertux/images/background/arctis2.jpg

Aborted

(On another machine I tried to install and run it a MOD file could not be loaded, same error message).
I have checked: The files exist.

Any ideas what could cause this behavior?
THe first machine I'm talking about is a C3100 with Cacko 1.23, the second one a C3000 with Caco 1.23beta1

Thanks!
daniel
Title: Supertux Game: "can't Load .."
Post by: dwagelaar on July 28, 2006, 03:44:57 pm
Hmm, it's most likely still a dependency problem. Please check if you have anything missing at the following URL:
http://www.elsix.org/index.php?w=project&p=supertux (http://www.elsix.org/index.php?w=project&p=supertux)

Since it's a JPEG that fails, check if you have libjpeg installed. The command 'ldd /opt/QtPalmtop/bin/supertux' includes a reference to libjpeg.so.62, so that file should be present.
Title: Supertux Game: "can't Load .."
Post by: dwagelaar on August 02, 2006, 08:38:46 am
Quote
Thanks.
Now I get another error about the undifined symbol "gzungetc".
I installed zlib_1.1.2_arm.ipk before.

Do I need another zlib package?

Thanks
daniel

The minimum version of zlib required is 1.1.4, but I'm using 1.2.2. As far as I know, the Cacko ROM includes this already (I'm running Cacko 1.22, so I'm not 100% sure about Cacko 1.23).

However, if you have ever installed a zlib ipk on that ROM, you "overwrite" the zlib from the ROM itself. The ROM zlib version does not get restored if you uninstall a zlib ipk. You have to manually create the symlinks again. I have the following symlinks in /usr/lib/:

Code: [Select]
lrwxrwxrwx    1 root     root           13 Feb 12  2005 /usr/lib/libz.so -> libz.so.1.2.2
lrwxrwxrwx    1 root     root           13 Feb 12  2005 /usr/lib/libz.so.1 -> libz.so.1.2.2
lrwxrwxrwx    1 root     root           26 Feb 12  2005 /usr/lib/libz.so.1.2.2 -> /usr/lib.rom/libz.so.1.2.2
Title: Supertux Game: "can't Load .."
Post by: daniel3000 on August 02, 2006, 11:51:24 am
Quote
The minimum version of zlib required is 1.1.4, but I'm using 1.2.2. As far as I know, the Cacko ROM includes this already (I'm running Cacko 1.22, so I'm not 100% sure about Cacko 1.23).

However, if you have ever installed a zlib ipk on that ROM, you "overwrite" the zlib from the ROM itself. The ROM zlib version does not get restored if you uninstall a zlib ipk. You have to manually create the symlinks again. I have the following symlinks in /usr/lib/:

Code: [Select]
lrwxrwxrwx    1 root     root           13 Feb 12  2005 /usr/lib/libz.so -> libz.so.1.2.2
lrwxrwxrwx    1 root     root           13 Feb 12  2005 /usr/lib/libz.so.1 -> libz.so.1.2.2
lrwxrwxrwx    1 root     root           26 Feb 12  2005 /usr/lib/libz.so.1.2.2 -> /usr/lib.rom/libz.so.1.2.2
[div align=\"right\"][a href=\"index.php?act=findpost&pid=137237\"][{POST_SNAPBACK}][/a][/div]

Sorry - the message you replied to was deleted by me shortly after i wrote it, becasue I realized that I was at this point before (see first posting) ;-)

Now I'm at the same stage (arctis2.jpg ont loadable).

libjpeg is there.
libpng too.

Could it be an SDL problem?
I have installed:

libSDL-image 1.2.5cvs1
libSDL-micer 1.2.5cvs1
libSDL-net 1.2.5cvs1
libsdl 1.2.5-slzaurus20050410

Thanks
daniel
Title: Supertux Game: "can't Load .."
Post by: dwagelaar on August 03, 2006, 03:05:46 am
Quote
Sorry - the message you replied to was deleted by me shortly after i wrote it, becasue I realized that I was at this point before (see first posting) ;-)

Now I'm at the same stage (arctis2.jpg ont loadable).

libjpeg is there.
libpng too.

Could it be an SDL problem?
I have installed:

libSDL-image 1.2.5cvs1
libSDL-micer 1.2.5cvs1
libSDL-net 1.2.5cvs1
libsdl 1.2.5-slzaurus20050410

Thanks
daniel
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=137257\")

Hmm, I checked what errors you would get if a library is missing, and it's not anything like your error. The kind of error you get is more like having a wrong version of a library and supertux only finds out if it tries to use the library for loading stuff. I've the following libraries installed:

libSDL-image_1.2.3-1
libSDL-mixer_1.2.6-zports-1

The main libSDL is already included in the Cacko 1.22 ROM. There may be problems with your version of libSDL-image. Can you try the 1.2.3-1 version? You can get it here:
[a href=\"http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/]http://ssel.vub.ac.be/Members/DennisWagela...ownload/zaurus/[/url]

I also found a report on getting supertux to work on the stock ROM of an SL-C3000. You could try those instructions as well:
http://www.users.on.net/~hluc/myZaurus/custom.html#supertux (http://www.users.on.net/~hluc/myZaurus/custom.html#supertux)
Title: Supertux Game: "can't Load .."
Post by: daniel3000 on August 03, 2006, 07:57:48 am
Quote
Hmm, I checked what errors you would get if a library is missing, and it's not anything like your error. The kind of error you get is more like having a wrong version of a library and supertux only finds out if it tries to use the library for loading stuff. I've the following libraries installed:

libSDL-image_1.2.3-1
libSDL-mixer_1.2.6-zports-1

The main libSDL is already included in the Cacko 1.22 ROM. There may be problems with your version of libSDL-image. Can you try the 1.2.3-1 version? You can get it here:
http://ssel.vub.ac.be/Members/DennisWagela...ownload/zaurus/ (http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/)

I just tried both of your different libSDL versions to no avail. Same error.

Quote
I also found a report on getting supertux to work on the stock ROM of an SL-C3000. You could try those instructions as well:
http://www.users.on.net/~hluc/myZaurus/custom.html#supertux (http://www.users.on.net/~hluc/myZaurus/custom.html#supertux)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=137312\"][{POST_SNAPBACK}][/a][/div]

Also that modificatoin of the sh script does not lead to success.
Strange.
Am I the only one who has this problem?

Maybe I'll try on a fresh Cacko install on my backup unit some day.

Thanks for your help so far. Please let me know if you have more ideas.
It's not that important for me to install a game, but especially supertux would be nice because these are the kinds of games I like to play from time to time.


daniel
Title: Supertux Game: "can't Load .."
Post by: climber on August 07, 2006, 05:28:37 am
dwagelaar,

please could you test your java applications if you have some? When I install libjpeg no java application will work.

thanks,
climber
Title: Supertux Game: "can't Load .."
Post by: dwagelaar on August 16, 2006, 06:12:52 am
Quote
dwagelaar,

please could you test your java applications if you have some? When I install libjpeg no java application will work.

thanks,
climber
[div align=\"right\"][a href=\"index.php?act=findpost&pid=137649\"][{POST_SNAPBACK}][/a][/div]

I'm using J2ME Personal Profile, which works without problems on Cacko 1.22, which has libjpeg built in.
Title: Supertux Game: "can't Load .."
Post by: agoodm on September 18, 2006, 07:13:39 pm
Was this ever resolved, I have this arctis error too
Title: Supertux Game: "can't Load .."
Post by: dwagelaar on September 19, 2006, 04:24:19 am
Quote
Was this ever resolved, I have this arctis error too
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141753\"][{POST_SNAPBACK}][/a][/div]
I don't think so. Perhaps daniel3000 managed to get it working with a fresh install? I'm still suspicious of libSDL-image and libjpeg. Perhaps things go wrong if libSDL-image is compiled on top of another version of libjpeg than the one that is installed? All I know is that the libSDL-mage_1.2.3-1 I use was built against libjpeg_6b: ldd gives the following:

Code: [Select]
$ ldd /opt/QtPalmtop/lib/libSDL_image-1.2.so.0.1.2
        libjpeg.so.62 => /home/QtPalmtop/lib/libjpeg.so.62 (0x40021000)
        libpng12.so.0 => /home/QtPalmtop/lib/libpng12.so.0 (0x40047000)
        libz.so.1 => /usr/lib/libz.so.1 (0x40483000)
        libSDL-1.2.so.0 => /home/QtPalmtop/lib/libSDL-1.2.so.0 (0x4049d000)
        libqpe.so.1 => /home/QtPalmtop/lib/libqpe.so.1 (0x404ea000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40673000)
        libc.so.6 => /lib/libc.so.6 (0x40691000)
        libm.so.6 => /lib/libm.so.6 (0x407ac000)
        libdl.so.2 => /lib/libdl.so.2 (0x407da000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x407e5000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
Title: Supertux Game: "can't Load .."
Post by: Cresho on September 19, 2006, 05:35:36 am
if you download all my snes emulator package and install everything in there exactly like i stated, it will run supertux.  it will also run billiards.

Here is the list

libmad_0.15.0b-zports-0_arm.ipk
libSDL_1.2.6-zports-5_arm.ipk      or      libsdl_1.2.5-slzaurus20050410_arm.ipk
libSDL-mixer_1.2.6-zports-0_arm.ipk
libSDL-image_1.2.5cvs-1_arm.ipk
libpng3_1.2.4-1_arm.ipk
Title: Supertux Game: "can't Load .."
Post by: Jon_J on September 19, 2006, 11:20:23 am
A bit off topic.
Anyone know what this file is used for?
supertux-0.1.2-fp.patch.gz

It's located here with supertux_0.1.2-3_arm.ipk
http://ssel.vub.ac.be/Members/DennisWagela...ownload/zaurus/ (http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/)

I'm not going to use it, but have downloaded it, in case it gets mentioned.

I just installed supertux, and I already have the libraries installed that Cresho mentioned above.
I installed the snes package properly. All the emulators work as they are supposed to work.
I have a C3100 running Cacko Lite 1.23
I'm getting this error:
I could not load icon image /home/QtPalmtop/bin/../data/images/icon.xpm
The simple DirectMedia error that occured was:
Couldn't open /home/QtPalmtop/bin/../data/images/icon.xpm

EDIT: I just found the location of icon.xpm here:
/home/QtPalmtop/share/supertux/images/icon.xpm
Maybe it's a permission issue? I'll try relaxing permissions in that directory.
That didn't work.
Also the directory under /home/QtPalmtop/share/ called /supertux, must be the cramfs image.
I couldn't change permissions there.

The supertux.cramfs image is mounted in 3 places, (in sysinfo).
/dev/loop3 cramfs ro
/dev/loop2 cramfs ro
/dev/loop1 cramfs ro
Could this be because of several failed attempts to get supertux to run?

EDIT2: A reboot unmounted the 3 instances of supertux.cramfs.
I'll do some more searching, (here in the forums), before I attempt to launch supertux again.

EDIT3: after searching..
dwagelaar
I read your post about my error mentioned above here:
https://www.oesf.org/forums/index.php?showt...indpost&p=67841 (https://www.oesf.org/forums/index.php?showtopic=9895&view=findpost&p=67841)
Supertux mounts the cramfs file, but it gives me the above error.
I used the console to launch supertux.sh
If I try to launch it from the icon, it mounts the cramfs file again, and nothing else happens.
Every instance of launching supertux causes one additional mount of /dev/loopx cramfs ro

EDIT4: I tried to unmount supertux manually, using the last line in supertux.sh
su
sudo umount ${BASE}share/supertux
mount: /home/zaurus/share: No such file or directory

I assume the reason the above won't unmount the cramfs, is because my "share" directory is here:
/home/QtPalmtop/share/
Supertux is mounted below there. (The cramfs file is also located there)
Title: Supertux Game: "can't Load .."
Post by: Cresho on September 19, 2006, 05:48:03 pm
Quote
if you download all my snes emulator package and install everything in there exactly like i stated, it will run supertux.  it will also run billiards.

Here is the list

libmad_0.15.0b-zports-0_arm.ipk
libSDL_1.2.6-zports-5_arm.ipk      or      libsdl_1.2.5-slzaurus20050410_arm.ipk
libSDL-mixer_1.2.6-zports-0_arm.ipk
libSDL-image_1.2.5cvs-1_arm.ipk
libpng3_1.2.4-1_arm.ipk
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141779\"][{POST_SNAPBACK}][/a][/div]



well, i was pissed off, so I figured I would reinstall the thing and try it.

IT WORKS!

J JON shed some light to me as well, and i figured out the extra libraries needed.

ontop of the ones posted up in addidion, you will need...
sudo_0.1_arm.ipk
zlib_1.2.3-1_arm.ipk

and DO NOT LAUNCH FROM THE TERMINAL!  launch from the application icon.
Title: Supertux Game: "can't Load .."
Post by: Jon_J on September 19, 2006, 06:01:11 pm
Quote
J JON shed some light to me as well, and i figured out the extra libraries needed.

ontop of the ones posted up in addidion, you will need...
sudo_0.1_arm.ipk
zlib_1.2.3-1_arm.ipk

and DO NOT LAUNCH FROM THE TERMINAL!  launch from the application icon.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141818\"][{POST_SNAPBACK}][/a][/div]

Cresho, I was informed that Cacko already has Sudo installed, (but is a scaled down version).
I have not installed Sudo.
The thread also mentioned NOT to install Sudo in Cacko. I think it is in Meanie's "X/QT jumbo package" thread.
I have zlib_1.2.3-1_arm.ipk installed

Thank you for your help,
Jon
Title: Supertux Game: "can't Load .."
Post by: Jon_J on September 19, 2006, 06:21:14 pm
I got it working!
Using Meanie's guide, (I followed this guide in latest zbook3k.pdf)
(I did not need to configure sudo, in Cacko)

Installing Supertux
Once you have installed supertux you need to change /home/QtPalmtop/bin/supertux.sh
(this assumes you already have sudo configured to allow you to mount and unmount, see sudo section):

Code: [Select]
#!/bin/sh -e
BASE=`grep "/QtPalmtop/$" /usr/lib/ipkg/info/supertux.list | tail -n 1`
#sudo mount ${BASE}share/supertux.cramfs ${BASE}share/supertux -o ro,loop
sudo mount ${BASE}share/supertux.cramfs ${BASE}data -o ro,loop
supertux
#sudo umount ${BASE}share/supertux
sudo umount ${BASE}data

the 2 lines that are changed/commented out, replaces:

share/supertux
with
data
Title: Supertux Game: "can't Load .."
Post by: Jon_J on September 19, 2006, 06:35:51 pm
Now that I have Supertux working, I would like to figure out how to move the 6MB "supertux.cramfs" from /home/QtPalmtop/share/ to somewhere on /hdd3
The supertux announcement thread mentions it can be run from a FAT volume.
https://www.oesf.org/forums/index.php?showt...895&hl=supertux (https://www.oesf.org/forums/index.php?showtopic=9895&hl=supertux)
post# 17
https://www.oesf.org/forums/index.php?showt...indpost&p=66952 (https://www.oesf.org/forums/index.php?showtopic=9895&view=findpost&p=66952)

I moved supertux.cramfs to /hdd3/ and made a symbolic link using the -s option, to /home/QtPalmtop/share/
The game still works, and the link seems to be OK
(Now when the game is launched, my HDD disk activity light indicates HDD activity).
I have one question about symbolic links..
In Tree!Explorer, my symbolic link that I created above shows as 6MB
Isn't a symbolic link created with the -s option supposed to be much smaller than a large 6MB file that it is linked to?

EDIT: Tree!Explorer must have some trouble reading the size of symlinks.
I cd'ed to that directory and did ls -l
supertux.cramfs is shown as a symlink and is only 21 bytes  
I need to memorize these basic Linux commands, sometimes GUI apps aren't always accurate.
Title: Supertux Game: "can't Load .."
Post by: Wildherb on December 28, 2006, 06:28:47 pm
I'd like to add my experience of Supertux, and extend my thanks to Meanie and Cresho for their contributions. Supertux is one of those "essential" zaurus programs yet can be notoriously difficult to get, an keep working.

Some other applications can "break" supertux, one such application is the kids favourite Tuxpaint.
ftp://ftp.billsgames.com/unix/x/tuxpaint/....9.14-z2.tar.gz (http://ftp://ftp.billsgames.com/unix/x/tuxpaint/builds/zaurus/tuxpaint_0.9.14-z2.tar.gz)

What I have found is that the ipk copies in a new libSDL_image-1.2.so.0.1.3 ( 198976 bytes) and a symlink to it from libSDL_image-1.2.so.0 (it also changes libpng but this does not appear to be a problem)

If you find Supertux has suddenly become broken make sure you have this symlink in /opt/QtPalmtop/lib/
libSDL_image-1.2.so.0 -> libSDL_image-1.2.so.0.1.2

where libSDL_image-1.2.so.0.1.2 is a binary of 28280 bytes

Hope this is of help to others.