OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: kbranch on October 25, 2005, 01:55:20 am

Title: Port Of An Open Source Bejeweled Clone
Post by: kbranch on October 25, 2005, 01:55:20 am
I've finally gotten around to making a port (if you can call a simple recompile a port, anyway) of a Bejeweled clone I made a few months ago called Gem Heist.  I got fed up with the Palm OS and trying to get SDL and GCC to cooperate with it, so I figured I'd take a stab at a Zaurus version.

Anyway, I'd appreciate it if somebody could download this (http://stevensaysno.com/gemheist.tar.gz) file, extract it somewhere and see what happens if you run the 'gemheistarm' executable.  You'll need libSDL installed.  I don't have any kind of ARM Linux device to test this on at the moment, so this is entirely untested.  Everything seems to compile fine, though, so I think it should stand a chance of working.  If it fails for some reason, please post the error it gives, if any.
Title: Port Of An Open Source Bejeweled Clone
Post by: Hrw on October 25, 2005, 03:06:08 am
Could you provide source? Not everyone run 2.95 based enviroment on Zaurus.
Title: Port Of An Open Source Bejeweled Clone
Post by: kbranch on October 25, 2005, 03:11:00 am
I knew I was forgetting something.  You can get the source from here (http://stevensaysno.com/gemheist-src.tar).  This was my first attempt at compiling for the Zaurus, so I forgot about the different versions of GCC.

Edit: Which ROMs use the newer GCC versions these days?  It's been a while since I've had a Zaurus, but is it still just OZ with the new stuff?
Title: Port Of An Open Source Bejeweled Clone
Post by: kbranch on October 25, 2005, 12:50:10 pm
So... does the binary I linked to work for anybody?  This was mainly a test of my cross compiler, not of the game itself.  I just want a simple yes or no here.
Title: Port Of An Open Source Bejeweled Clone
Post by: raybert on October 25, 2005, 01:39:01 pm
I just tried it but apparently I'm missing one of the SDL libs: libSDL_image-1.2.so.0

I'll have to try again later when I have time to find that lib...

~ray
Title: Port Of An Open Source Bejeweled Clone
Post by: kbranch on October 25, 2005, 02:35:17 pm
Well, I guess that means that I compiled it for the right platform at least.  I should probably just use bitmaps and remove the libSDL_image requirement, but for now I've hosted the version of it that I compiled this against.  You can get it here (http://stevensaysno.com/libSDL_image.tar.gz).  I'm not entirely sure on where the Zaurus would want that extracted, but /usr/lib/ is a good bet.
Title: Port Of An Open Source Bejeweled Clone
Post by: kbranch on October 28, 2005, 03:26:38 pm
I have to say that I'm losing interest in writing Zaurus games pretty quickly here.  I know that this particular forum doesn't get that much traffic, but there have been well over 100 views and at least 10 people have downloaded the game.  If I can't get people to even tell me if it works or not, then why should I bother to write more?

Did I post this in the wrong place or something?  Is the problem that people don't know what to do with the file since it's not a pretty IPK?  Are people just not interested in new Zaurus games?
Title: Port Of An Open Source Bejeweled Clone
Post by: chal on October 28, 2005, 06:32:15 pm
Quote
I have to say that I'm losing interest in writing Zaurus games pretty quickly here.  I know that this particular forum doesn't get that much traffic, but there have been well over 100 views and at least 10 people have downloaded the game.  If I can't get people to even tell me if it works or not, then why should I bother to write more?

Did I post this in the wrong place or something?  Is the problem that people don't know what to do with the file since it's not a pretty IPK?  Are people just not interested in new Zaurus games?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101181\"][{POST_SNAPBACK}][/a][/div]

The "pretty ipk," thing is my problem with it. I really don't know what to do with anything else, unless there are detailed and clear step by step instructions of what to do and where to do it. I'm not a newbie to the Z or to Linux, but I'm not a programmer or developer and I do need some place to start. I was watching and hoping someone with a little more knowledge would provide a clue to that starting place. Thanks for the effort.
Title: Port Of An Open Source Bejeweled Clone
Post by: waalkman on October 28, 2005, 06:51:21 pm
Quote
Did I post this in the wrong place or something?  Is the problem that people don't know what to do with the file since it's not a pretty IPK?  Are people just not interested in new Zaurus games?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101181\"][{POST_SNAPBACK}][/a][/div]

That leads me to a question/request/complaint(?)

When I see a new program for the Z that I would like to try out, it usually ends up being for the ROM that I'm not currently using. That's not so bad, I don't expect people to cater to me.

But as a general rule, what stops me from even trying out new programs is that I usually end up with something that was never intended for my ROM in the first place (and therefore doesn't work).

So, what ROM does this work under and what libs will I need? (just libSDL?).


And, sincerely, many thanks for your efforts
Title: Port Of An Open Source Bejeweled Clone
Post by: bluedevils on October 28, 2005, 09:12:11 pm
and another reason less people are trying might be because there is another bejeweled clone called  "same".  It works for all sharp roms and is reasonably entertaining.
Title: Port Of An Open Source Bejeweled Clone
Post by: kbranch on October 28, 2005, 10:09:03 pm
Well, that clarifies some things.  I guess I incorrectly assumed that most Zaurus users are comfortable with the command line.  To test this out, you have to extract the .tar.gz (tar xzf gemheist.tar.gz) to a directory (doesn't matter which) and run the 'gemheistarm' executable (./gemheistarm while in the directory).  This version should just need libSDL and libSDL_image.  It should work on any ROM that uses GCC 2.95 (any Sharp based ROMs and older OZ ROMS as far as I know, although things could have changed since I last had a Z).

I also wasn't aware of another Bejeweled clone, so I guess that explains some of the lack of interest too.  This was mainly just a test to see what it would take to get a full SDL game ported to the Zaurus.  I'm planning on writing a space shooter (similar to Tyrian) and perhaps porting the RTS I'm working on (the link in my sig is broken at the moment).

Edit: A report on whether this works or not would still be much appreciated.  
Title: Port Of An Open Source Bejeweled Clone
Post by: lardman on October 29, 2005, 06:40:03 am
Quote
should work on any ROM that uses GCC 2.95

This is the issue for me, I've not used a 'ROM' built with GCC 2.95.3 for a long time.

When I have a bit of time, I'll look at adding it to OE (unless hrw's already doing that) or building it with a newer toolchain and then try it out.

Don't get dis-heartened we need people writing new things for the Zaurus.


Si

P.S. Part of the reason I've not tried it yet, is that bejewelled is horribly addictive and I really need to finish writing my thesis...
Title: Port Of An Open Source Bejeweled Clone
Post by: bluedevils on October 29, 2005, 09:54:36 am
I agree with lardman and keep up the effort.  If you keep it up, there will be return.
Title: Port Of An Open Source Bejeweled Clone
Post by: Hrw on October 29, 2005, 03:46:12 pm
sorry - I dont have time currently to chek it - too much other projects.
Title: Port Of An Open Source Bejeweled Clone
Post by: kbranch on October 29, 2005, 05:13:32 pm
So is it still just OZ that's built with newer versions of GCC or have things like Cacko switched now? (does Sharp even give you the source so that you can rebuild it?)

And where can I find newer versions of the cross compiler?  The links I found in the "Getting Started" sticky under the OE development forum are broken.  Would the generic ARM link at the bottom of this (http://arm.nihilisme.ca/) page work?  I've played around with cross compilation a bit, but the only time I've compiled GCC is through Gentoo (where you just say 'emerge gcc').
Title: Port Of An Open Source Bejeweled Clone
Post by: lardman on October 31, 2005, 06:48:36 am
Looks like openembedded.org is down at the moment. Or it might just be really slow. In any case it's a re-direct to here: http://oe.handhelds.org/ (http://oe.handhelds.org/) so have a go with that too (which works for me).

I'll have a dig around and find the URLs for the pre-built Opie and GPE toolchains.


Si
Title: Port Of An Open Source Bejeweled Clone
Post by: kbranch on October 31, 2005, 01:03:36 pm
Thanks, I'll take a look around there.
Title: Port Of An Open Source Bejeweled Clone
Post by: waalkman on November 01, 2005, 08:36:27 pm
Quote
Well, that clarifies some things.  I guess I incorrectly assumed that most Zaurus users are comfortable with the command line.



Okay, so somehow I manage to get beyond the nearly insurmountable task of unpacking the tarball and here's what happened next (from my notes):

Download Gem Heist. Unpack it. "./gemheistarm" on the ever-tricky commandline returns:

No libSDL, abort.

Go find libSDL... Seems that onscripter-lib_20031201_arm.ipk is a good place to get it, download onscripter.

"ipkg install onscripter-lib_20031201_arm.ipk" bitches about me not being root. As root it bitches about feeds.

That's nothing compared to the way I bitch about it. It installs anyways. Hurray for ipkg...

Okay, so I'm ready to try again!  ./gemheistarm gives me:

"QPaintDevice: Must construct a QApplication before QPaintDevice" Aborted.

WTF??


Okay, so search the forums. So, into the search box goes:

"QPaintDevice: Must construct a QApplication before a QPaintDevice"


It returns:

"Sorry, but we did not find any matches to display. Try again and broaden your search crite..."

Searching for just "QPaintDevice" gets me to

https://www.oesf.org/forums/index.php?showt...hl=qpaintdevice (https://www.oesf.org/forums/index.php?showtopic=4841&hl=qpaintdevice)

Which has the entire line just as I had originally asked for it. Déjà WTF?


So anyways, it seems that it's a rather trivial problem. As long as I recompile it. Groan...

So now I need to compile it? Anybody got links to a compiler? I'd hate to give up now that I'm so close to success...


Quote
Edit: A report on whether this works or not would still be much appreciated. 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101214\"][{POST_SNAPBACK}][/a][/div]

Be careful what you wish for
Title: Port Of An Open Source Bejeweled Clone
Post by: kbranch on November 01, 2005, 09:51:47 pm
Thanks, that's exactly the type of error I was afraid of (not that specific error, but something to do with Qtopia).  I'll see what I can do about it.
Title: Port Of An Open Source Bejeweled Clone
Post by: kbranch on November 02, 2005, 12:37:23 am
Alright, I've recompiled it.  Hopefully this version will at least start.

http://stevensaysno.com/gemheist-11-1-05.tar.gz (http://stevensaysno.com/gemheist-11-1-05.tar.gz)

Edit: I've updated it to remove the libSDL_image requirement and fixed a bug where it tried to load the wrong background image.
Title: Port Of An Open Source Bejeweled Clone
Post by: waalkman on November 03, 2005, 06:45:05 pm
Quote
Alright, I've recompiled it.  Hopefully this version will at least start.[div align=\"right\"][a href=\"index.php?act=findpost&pid=101809\"][{POST_SNAPBACK}][/a][/div]


Okay, I just downloaded it and tried to run it. It still gives me a "QPaintDevice: Must construct a QApplication before a QPaintDevice" error.

Would there be anything leftover from the previous attempt that might be messing things up?

FWIW, I'm running it in QKonsole.
Title: Port Of An Open Source Bejeweled Clone
Post by: kbranch on November 04, 2005, 10:40:59 pm
Well, that's rather strange.  Without a Zaurus to fiddle around with myself, I'm not really sure what I can do.  I guess I'll do some Googling.

The only thing I can think of is that it might not like making a window that's larger than the screen (which would only happen on a 5x00 since it's still set up for the 320x320 of the Palm OS).  Which model are you running this on?
Title: Port Of An Open Source Bejeweled Clone
Post by: waalkman on November 05, 2005, 12:41:33 am
Quote
Well, that's rather strange.  Without a Zaurus to fiddle around with myself, I'm not really sure what I can do.  I guess I'll do some Googling.

The only thing I can think of is that it might not like making a window that's larger than the screen (which would only happen on a 5x00 since it's still set up for the 320x320 of the Palm OS).  Which model are you running this on?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=102378\")

It's a C860, I'll add that to my sig.


Did you look at this?

[a href=\"https://www.oesf.org/forums/index.php?showtopic=4841&hl=qpaintdevice]https://www.oesf.org/forums/index.php?showt...hl=qpaintdevice[/url]
Title: Port Of An Open Source Bejeweled Clone
Post by: kbranch on November 05, 2005, 01:36:50 am
Yeah, I did.  I'm pretty sure I did that in the recompile, but I'll check again.