OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: dwagelaar on January 06, 2005, 11:04:11 am

Title: Supertux On Sl-c860
Post by: dwagelaar on January 06, 2005, 11:04:11 am
SuperTux (http://super-tux.sourceforge.net/) 0.1.2 has been ported to the Zaurus SL-C860 (and perhaps works on other 640x480 zauruses).

For the binary package, use the feed (http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/) (also contains all the dependencies).

For people who are interested in the source code: This patch (http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/supertux-0.1.2-fp.patch.gz) should be applied to the 0.1.2 release version of the source code.

Best regards,
Dennis Wagelaar
Title: Supertux On Sl-c860
Post by: iamasmith on January 30, 2005, 01:56:19 pm
Quote
SuperTux (http://super-tux.sourceforge.net/) 0.1.2 has been ported to the Zaurus SL-C860 (and perhaps works on other 640x480 zauruses).

For the binary package, use the feed (http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/) (also contains all the dependencies).

For people who are interested in the source code: This patch (http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/supertux-0.1.2-fp.patch.gz) should be applied to the 0.1.2 release version of the source code.

Best regards,
Dennis Wagelaar
[div align=\"right\"][a href=\"index.php?act=findpost&pid=60935\"][{POST_SNAPBACK}][/a][/div]

The version of SDL_image on your feed seems to be linked to libpng.so.3 your libpng12 IPK doesn't carry this file (or indeed a link). Therefore supertux fails on trying to load libpng.so.3.

Creating a symlink as follows...

ln -s /usr/lib/libpng12.so.0.1.2.5 /usr/lib/libpng.so.3
ldconfig

Does seem to fix the issue. I would suggest relinking SDL-image after removing libpng.so.3 or adding the link to libpng12.

- Andy
Title: Supertux On Sl-c860
Post by: shreks on February 01, 2005, 05:34:21 pm
Quote
The version of SDL_image on your feed seems to be linked to libpng.so.3 your libpng12 IPK doesn't carry this file (or indeed a link). Therefore supertux fails on trying to load libpng.so.3.

Creating a symlink as follows...

ln -s /usr/lib/libpng12.so.0.1.2.5 /usr/lib/libpng.so.3
ldconfig

Does seem to fix the issue. I would suggest relinking SDL-image after removing libpng.so.3 or adding the link to libpng12.

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

Andy, try this out: [a href=\"http://www.gelhaus.net/zaurus/libpng-devel_1.2_arm.ipk]http://www.gelhaus.net/zaurus/libpng-devel_1.2_arm.ipk[/url]
Title: Supertux On Sl-c860
Post by: soundwave106 on February 02, 2005, 03:37:04 pm
6MB, and it needs temp space on the Sharp memory. Yikes!

Not that I can't unpack it manually , but in the future I wonder if you could keep all temp files on the card if one exists?
Title: Supertux On Sl-c860
Post by: clofland on February 04, 2005, 04:47:56 pm
Cool game, thanks! Very smooth on the Z.

FYI: I have Cacko ROM 1.22, and here is what I did to install:

Installed these packages:
supertux_0.1.2-2_arm.ipk (from above links)
libSDL-image_1.2.3-0_arm.ipk (gotten from here http://ssel.vub.ac.be/Members/DennisWagela.../zaurus/cacko/) (http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/cacko/))
libSDL-mixer_1.2.6-zports-1_arm.ipk (from Cacko's own feed)

Then ran these commands:

ln -s /usr/QtPalmtop.rom/lib/libpng12.so.0.1.2.5 /usr/lib/libpng.so.3
ldconfig

Didn't have to install anything else.
Title: Supertux On Sl-c860
Post by: dwagelaar on February 07, 2005, 02:56:03 am
Quote
The version of SDL_image on your feed seems to be linked to libpng.so.3 your libpng12 IPK doesn't carry this file (or indeed a link). Therefore supertux fails on trying to load libpng.so.3.

Creating a symlink as follows...

ln -s /usr/lib/libpng12.so.0.1.2.5 /usr/lib/libpng.so.3
ldconfig

Does seem to fix the issue. I would suggest relinking SDL-image after removing libpng.so.3 or adding the link to libpng12.

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

You're right, thanks! I suppose I already created that link when testing the package and never thought about it again   . I've recompiled libSDL_image with -lpng12 now, which should link against libpng12.so. Here's the updated package:
[a href=\"http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/libSDL-image_1.2.3-1_arm.ipk]libSDL-image_1.2.3-1_arm.ipk[/url]

I'm afraid I can't test it myself anymore: I've been mugged and they stole my zaurus  
/edit
Got a new zaurus now, so I'm back on track  
/edit
Title: Supertux On Sl-c860
Post by: dwagelaar on February 07, 2005, 03:04:46 am
Quote
6MB, and it needs temp space on the Sharp memory. Yikes!

Not that I can't unpack it manually , but in the future I wonder if you could keep all temp files on the card if one exists?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65205\"][{POST_SNAPBACK}][/a][/div]

Actually, SuperTux is 11MB when installed... And that is after I compressed all the level files (the original game takes 14MB). Those temp files you're referring to are probably created by the ipkg installer? I'm afraid that's not really under my control... Perhaps it's possible to install SuperTux itself on a card, but I haven't ever tried it. I used the Cacko 1.22 ROM and never really ran below 30MB of free space on the internal flash (this ROM takes approx. 30MB less than the Sharp ROM).
Title: Supertux On Sl-c860
Post by: mandjab on February 07, 2005, 09:07:49 am
Hello All,

I'm not able to make it run. My display freeze when i put it in landscape and When it'in portrait mode, nothing append.

Any Ideas?
Title: Supertux On Sl-c860
Post by: clofland on February 07, 2005, 10:10:24 am
You say, "Nothing appeared"

I assume you mean a blank screen? How long did you wait? On my 760 when I start SuperTux (and I start it in landscape mode) the first thing that happens is I get a blank screen and it stays that way for like 30 to 60 seconds and then SuperTux comes up.

Run it from the console and see what messages it gives. This can be helpful too, especially with missing prerequisites.
Title: Supertux On Sl-c860
Post by: soundwave106 on February 07, 2005, 11:43:59 am
dwagelaar: Yeah, unfortunately Cacko isn't available for the SL-6000L yet. Lousy bulky Sharp ROM.

I personally couldn't run it from a card because my card is unfortunately formatted FAT. A few of the files (the credits file and a couple music files) are upper-case and thus Supertux can't find them. EXT2 formatted cards however should be able to run the program just fine.
Title: Supertux On Sl-c860
Post by: dwagelaar on February 10, 2005, 04:55:37 am
Quote
dwagelaar: Yeah, unfortunately Cacko isn't available for the SL-6000L yet. Lousy bulky Sharp ROM.

I personally couldn't run it from a card because my card is unfortunately formatted FAT. A few of the files (the credits file and a couple music files) are upper-case and thus Supertux can't find them. EXT2 formatted cards however should be able to run the program just fine.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65997\"][{POST_SNAPBACK}][/a][/div]
I deduct that you did actually manage to get the game running? In that case I can mark that it also works on the SL-6000 in ELSI  
Title: Supertux On Sl-c860
Post by: soundwave106 on February 10, 2005, 11:04:58 pm
Yeah, it ran, though I didn't play with it. Too much room!  Unfortunately us 6000 users don't have an alternate ROM so that we can get rid of Sharp bloat yet. I should go in and re-format my card as ext2 sometime.
Title: Supertux On Sl-c860
Post by: xjqian on February 11, 2005, 12:42:28 am
i used add/remove to install the supertux ipk. but it always complains about "some of the files can not be extracted". and the installed portion is only about 5mb
Title: Supertux On Sl-c860
Post by: dwagelaar on February 11, 2005, 04:09:29 am
Quote
i used add/remove to install the supertux ipk. but it always complains about "some of the files can not be extracted". and the installed portion is only about 5mb
[div align=\"right\"][a href=\"index.php?act=findpost&pid=66570\"][{POST_SNAPBACK}][/a][/div]
That means you didn't have enough storage to complete the installation: you first need 6 MB to download the .ipk file. Then the .ipk will be unpacked to three other files (control.tar.gz, data.tar.gz and debian-binary), which takes another 6 MB. Only then the actual game will be installed from data.tar.gz, taking up 11 MB. After this, the first two 6 MB will be cleared up. End of the line is that you need at least 23 MB of free space to perform the installation the normal way  

soundwave106 got it to run by unpacking manually, meaning unpacking the .ipk file somewhere else and then just unpack the data.tar.gz file onto the zaurus.
Title: Supertux On Sl-c860
Post by: dwagelaar on February 11, 2005, 04:11:45 am
Quote
Yeah, it ran, though I didn't play with it. Too much room!  Unfortunately us 6000 users don't have an alternate ROM so that we can get rid of Sharp bloat yet. I should go in and re-format my card as ext2 sometime.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=66560\"][{POST_SNAPBACK}][/a][/div]
When I get some time for it, I may check what needs to be done in order to install the game onto a FAT formatted card...
Title: Supertux On Sl-c860
Post by: xjqian on February 11, 2005, 05:26:36 am
Supertux works great on 6k (although the usual 6K problem up/down & left/right are all reversed) when I installed it into internal memory (i had about 21mb free befroe installation). However, the installation to my ext2 sd causes the add/remove application hang. I watched in the system info how the installation goes. interestingly, even though I instructed it to be installed into ext2 sd, the program still installes itself into the internal memory.  I guess that's why it confuses the ipkg gui at the end of the installation, when ipkg tried to link and create the desktop icon.
Title: Supertux On Sl-c860
Post by: dwagelaar on February 14, 2005, 06:43:38 am
Quote
Supertux works great on 6k (although the usual 6K problem up/down & left/right are all reversed) when I installed it into internal memory (i had about 21mb free befroe installation). However, the installation to my ext2 sd causes the add/remove application hang. I watched in the system info how the installation goes. interestingly, even though I instructed it to be installed into ext2 sd, the program still installes itself into the internal memory.  I guess that's why it confuses the ipkg gui at the end of the installation, when ipkg tried to link and create the desktop icon.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=66585\")
I've been disecting the qinstall/ipkg setup mechanism for a bit: qinstall actually installs an ipkg to the /home/tmp/ipkg/inst directory in the main flash and then copies each installed file to the SD card. It then removes the tmp files in the main flash. I also found out that ipkg does not unpack the ipk to the file system, but it pipes the contents. This way, ipkg can directly access the data.tar.gz file inside the ipk. It seems that qinstall enforces some sort of timeout on copying the files from the tmp install directory to the SD card, because installation to SD failed when the package contained above a certain number of files...

I worked around the whole thing by putting the shared supertux data inside a cramfs image: this way you won't need your SD/CF card to be ext2 formatted and qinstall won't trip over it's own clumsiness . I put a new version of the package online (0.1.2-3): see [a href=\"http://www.elsix.org/index.php?w=project&p=supertux]the ELSIX supertux page[/url].

You will still need 6 MB (for the ipk) + 7 MB (for the installed files) of temp space on your internal flash.
Title: Supertux On Sl-c860
Post by: soundwave106 on February 14, 2005, 11:50:43 pm
Hmm, it's not working for me. For one thing, the download had a bad CRC in the control. That probably is what caused the installer to blow.

When I tried to install it manually, I'm hampered by the lack of sudo on the Sharp ROMs. A standard mount gives me the error "can't find /home/zaurus/card/QtPalmtop/share/supertux.cramfs in /etc/fstab", so that's not working. Guess I need to find a sudo package?
Title: Supertux On Sl-c860
Post by: dwagelaar on February 15, 2005, 09:10:30 am
Quote
Hmm, it's not working for me. For one thing, the download had a bad CRC in the control. That probably is what caused the installer to blow.

When I tried to install it manually, I'm hampered by the lack of sudo on the Sharp ROMs. A standard mount gives me the error "can't find /home/zaurus/card/QtPalmtop/share/supertux.cramfs in /etc/fstab", so that's not working. Guess I need to find a sudo package?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67075\"][{POST_SNAPBACK}][/a][/div]
That CRC problem is odd: that should have happened to me as well, but apparently it didn't... I've scouted down a recent sudo ipk, which is now in my feed. I've re-packed the control file with sudo added as a dependency. This should solve both of your problems
Title: Supertux On Sl-c860
Post by: Allen Tsang on February 16, 2005, 09:41:23 am
I just installed the Supertux but I cannot started it.

I found if I run the supertux in console mode, it give out the following message

'Qt/Embedded data directory is not owned by user 0
Aborted'

Any one know what is happening?  Can any help me?  

Thank you in advance!
Title: Supertux On Sl-c860
Post by: dwagelaar on February 16, 2005, 02:53:27 pm
Quote
I just installed the Supertux but I cannot started it.

I found if I run the supertux in console mode, it give out the following message

'Qt/Embedded data directory is not owned by user 0
Aborted'

Any one know what is happening?  Can any help me?   

Thank you in advance!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67302\"][{POST_SNAPBACK}][/a][/div]
Hmm, that error message seems hardly related to supertux... Could you tell which zaurus model you use and what ROM is on it?
Title: Supertux On Sl-c860
Post by: Stubear on February 16, 2005, 09:05:29 pm
Quote
I just installed the Supertux but I cannot started it.

I found if I run the supertux in console mode, it give out the following message

'Qt/Embedded data directory is not owned by user 0
Aborted'

Any one know what is happening?  Can any help me?   

Thank you in advance!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67302\"][{POST_SNAPBACK}][/a][/div]

You are trying to run it as root, that won't work, you must be user zaurus for qtopia apps to run

If your prompt has a # then you are root, if it has $ then you are most probably zaurus.

You can check by running whoami at the prompt

Stu
Title: Supertux On Sl-c860
Post by: Allen Tsang on February 17, 2005, 03:53:40 am
Thank you for dwagelaar and Stubear reply!

I am using C3000 and the special kernal from here (http://tetsu.homelinux.org/zaurus/kernel/).

It is no problem to run spertux from the user 'zaurus' in console mode.  I don't know why I can't start supertux normally.  Anyone have idea?

Thank in advance!
Title: Supertux On Sl-c860
Post by: silvio on February 17, 2005, 07:41:03 am
Hi,

will not work on my C860 (Cacko 1.22 lite):

supertux: error while loading shared libraries: supertux: undefined symbol: gzungetc

regards,
Silvio
Title: Supertux On Sl-c860
Post by: dwagelaar on February 17, 2005, 01:47:38 pm
Quote
Hi,

will not work on my C860 (Cacko 1.22 lite):

supertux: error while loading shared libraries: supertux: undefined symbol: gzungetc

regards,
Silvio
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67463\"][{POST_SNAPBACK}][/a][/div]
Sounds like you have a problem with your zlib. That's odd, though, since Cacko (lite and full) already include this. Can you find out whether you accidentally have a zlib ipk installed on your zaurus and/or whether the symlinks to your initial libz.so are still there? They should be in /usr/lib and point to /usr/lib.rom/libz.so.1.2.2
Title: Supertux On Sl-c860
Post by: silvio on February 17, 2005, 04:29:15 pm
Quote
Quote
Hi,
will not work on my C860 (Cacko 1.22 lite):
supertux: error while loading shared libraries: supertux: undefined symbol: gzungetc
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67463\"][{POST_SNAPBACK}][/a][/div]
Sounds like you have a problem with your zlib.[div align=\"right\"][a href=\"index.php?act=findpost&pid=67532\"][{POST_SNAPBACK}][/a][/div]

OK, now the following error:
Error: I could not load the icon image: /usr/mnt.rom/card/QtPalmtop/bin/../share/supertux/images/icon.xpm
The Simple DirectMedia error that occured was:
Couldn't open /usr/mnt.rom/card/QtPalmtop/bin/../share/supertux/images/icon.xpm

there is no icon.xpm on my Z.

regards,
Silvio
Title: Supertux On Sl-c860
Post by: dwagelaar on February 19, 2005, 07:34:29 am
Quote
Quote
Quote
Hi,
will not work on my C860 (Cacko 1.22 lite):
supertux: error while loading shared libraries: supertux: undefined symbol: gzungetc
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67463\"][{POST_SNAPBACK}][/a][/div]
Sounds like you have a problem with your zlib.[div align=\"right\"][a href=\"index.php?act=findpost&pid=67532\"][{POST_SNAPBACK}][/a][/div]

OK, now the following error:
Error: I could not load the icon image: /usr/mnt.rom/card/QtPalmtop/bin/../share/supertux/images/icon.xpm
The Simple DirectMedia error that occured was:
Couldn't open /usr/mnt.rom/card/QtPalmtop/bin/../share/supertux/images/icon.xpm

there is no icon.xpm on my Z.

regards,
Silvio
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67564\"][{POST_SNAPBACK}][/a][/div]
Yes, well, that's the error you would get if you run 'supertux' from the command line, instead of 'supertux.sh'. If you run supertux via the icon in the Games tab, it should directly invoke 'supertux.sh'. This 'supertux.sh' is a script that first mounts the supertux.cramfs image, which contains all the data files (including the icon.xpm). After running the game, the script again unmounts the data image file. Hope this solves your problem
Title: Supertux On Sl-c860
Post by: silvio on February 21, 2005, 06:16:49 am
Quote
Quote
Quote
Quote
Hi,
will not work on my C860 (Cacko 1.22 lite):
supertux: error while loading shared libraries: supertux: undefined symbol: gzungetc
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67463\"][{POST_SNAPBACK}][/a][/div]
Sounds like you have a problem with your zlib.[div align=\"right\"][a href=\"index.php?act=findpost&pid=67532\"][{POST_SNAPBACK}][/a][/div]

OK, now the following error:
Error: I could not load the icon image: /usr/mnt.rom/card/QtPalmtop/bin/../share/supertux/images/icon.xpm
The Simple DirectMedia error that occured was:
Couldn't open /usr/mnt.rom/card/QtPalmtop/bin/../share/supertux/images/icon.xpm

there is no icon.xpm on my Z.

regards,
Silvio
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67564\"][{POST_SNAPBACK}][/a][/div]
Yes, well, that's the error you would get if you run 'supertux' from the command line, instead of 'supertux.sh'. If you run supertux via the icon in the Games tab, it should directly invoke 'supertux.sh'. This 'supertux.sh' is a script that first mounts the supertux.cramfs image, which contains all the data files (including the icon.xpm). After running the game, the script again unmounts the data image file. Hope this solves your problem
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67841\"][{POST_SNAPBACK}][/a][/div]

No - the game starts but when it switches to graphic output the screen looks terrible and there is no way to repair it instead of doing a reboot.

Other SDL programms (CrimsonFields, Quake) works fine on my device.

By the way - does anybody know how to implement a hotkey for killing qpe?
Title: Supertux On Sl-c860
Post by: silvio on February 21, 2005, 10:09:36 am
Quote
No - the game starts but when it switches to graphic output the screen looks terrible and there is no way to repair it instead of doing a reboot.

Other SDL programms (CrimsonFields, Quake) works fine on my device.

By the way - does anybody know how to implement a hotkey for killing qpe?

Fixed - more libs was overwritten
regards,
Silvio
Title: Supertux On Sl-c860
Post by: spartan on February 24, 2005, 01:16:11 am
Could someone perhaps post a sudo package? It's no longer being hosted by any English sources (basically the same source) and it's evidently necessary on the C3000.

Edit:

To run Supertux, sudo is required. Here is a link pulled off the forum for the package:
http://www.zaurususergroup.com/modules.php...q=getit&lid=184 (http://www.zaurususergroup.com/modules.php?op=modload&name=UpDownload&file=index&req=getit&lid=184)
Title: Supertux On Sl-c860
Post by: xjqian on March 14, 2005, 02:49:52 am
I flashed my rom and did it again. So here's a run-down for 6000 stock rom, install in order to avoid dependency warnings.

  zlib_1.2.2-1_arm.ipk (internal only)
  ligpng12_1.2.8-0 (internal only)
  libSDLimage_1.2.3-1 (internal only)
  libSDLMixer_1.2.6-zport (1.2.6 from the cacko feed, btw 1.2.5_cvs works as well)
  libSDL_1.2.6_cvs  this one works or better off replace libSDL-1.2.so.0.0.6 (/mnt/card/QtPalmtop/lib) with gulhem's libSDL-1.2.so.0.0.7 in the fast kernel thread for 6000, then fix links for libSDL-1.2.so.0 and libSDL.so in /home/QtPalmtop/lib
Code: [Select]
assume you installed libSDL to the sd card
 su
 cp [/mnt/cf]/libSDL-1.2.so.0.0.7 /mnt/card/QtPalmtop/lib
 rm /home/QtPalmtop/lib/libSDL.so
 rm /home/QtPalmtop/lib/libSDL-1.2.so.0
 rm /home/QtPalmtop/lib/libSDL-1.2.so.0.0.6
 ln -s /mnt/card/QtPalmtop/lib/libSDL-1.2.so.0.0.7 /home/QtPalmtop/lib/libSDL-1.2.so.0.0.7
 ln -s /home/QtPalmtop/lib/libSDL-1.2.so.0.0.7 /home/QtPalmtop/lib/libSDL-1.2.so.0
 ln -s /home/QtPalmtop/lib/libSDL-1.2.so.0.0.7 /home/QtPalmtop/lib/libSDL.so

  sudo-0.1 (internal only)
  supertux 0.1.2-3

edit: added zlib, thanks scheck.r
Title: Supertux On Sl-c860
Post by: scheck.r on March 16, 2005, 08:46:26 pm
Thanks for the detailed HOW-TO

It works great on my 6K especially with the fast kernel and guylhem's libSDL-1.2.so.0.0.7
It didn't work at first because I didn't have the good zlib library. The one working for me is zlib_1.2.2-1_arm.ipk from http://xqt.sourceforge.jp/feed-testing/ (http://xqt.sourceforge.jp/feed-testing/) .