OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: Corona_B on August 30, 2004, 07:01:44 pm
-
I'm trying to compile Rise of the Triad for my z
I got the source\data from http://icculus.org/rott/ (http://icculus.org/rott/)
if you remember Rise of the Triad (rott) is about the most bitchin doom clone ever
so anyways, im having some issues. i installed the dev packages for sdl from http://www.gnurou.org/software/zaurus/ (http://www.gnurou.org/software/zaurus/)
I also set the TMPDIR variable to my cf slot, so gcc would have plenty of room to work (it was bombing out when i was using the ram from running out of space)
when i run make it compiles for about X minutes or so before finally giving me the error
cannot find -lSDLmain
collect2: ld returned 1 exit status
make: ***[rott] Error 1
does anyone know what that file is or where it should be?
I apologize but i'm a (cough hack) windows programmer by day, and my linux coding is pretty much limited to java and shell scripting. Not that linux c is all that different from windows c, but i'd like to get rott compiled and running before i start learning the in's and outs of linux dev.
if i get this working then i'd also like to port abuse, and maybe star control 2 (all are availible at liberatedgames.com)
~Corona_B
-
The library SDLmain is a simple library that dynamically 'replaces' your program's (in this case, ROTT) main() function with a special main() that inits a bunch of SDL stuff, then calls your regular main function.
If you installed the sdl dev libraries, see if you can find any files called 'libSDLmain.a'. It's been a month or two since I compiled natively on the zaurus (have been experimenting with openembedded build system lately), but it SHOULD be located in /usr/lib, or there is a lib dir in /home/QtPalmtop somewhere as well.
Dave
-
Oooh, I love ROTT! I was hoping someone was going to try this at some point. I hope it works with pdaxrom.
Good luck!
-
OK i fixed the problems with the missing libs, all in all it couldnt find libSDLmain.a, libqpe.a, libqte.a, and libpthread.a.
i had all of those files on my z in some place or another, with the exception of libpthread.a, which i got from
http://paipai.org/~humorum/zaurus/develop/.../arm-linux/lib/ (http://paipai.org/~humorum/zaurus/develop/glibc-2.2.2/arm-linux/lib/)
(i hope there is no problem with using this copy of this file, it didnt appear to be complaining about it)
at this point it gets to the final step of the compilation (gcc something.o somethingelse.o rott)
anyways, now it's giving me some guff about some undefined constants in sdl mixer, so it appears i'm going to be delving into the source after all.
now my big question is, is the version of libpthread i used causing this error? it doesnt seem like they are related, but i guess i wont know until i get some time to delve into the source.
I'll post the output i'm getting as soon as i get back to my z.
-
Try installing the libraries from here:
Zaurus Page (http://www.gnurou.org/software/zaurus/)
There are several SDL libraries including SDL-mixer.
I might try to compile this also. Looks like a cool game!
-
Hi Corona_B,
Good luck with your Rise of the Triads compile. Would be interested in an ipk if you manage to finish it. Been sniffing around on www.liberatedgames.com and spotted Star Control 2 has been liberated. Now "that" is a game which is worthy of a Zaurus recompile.
Any takers?
Regards,
Edo.
Zaurus SL-C860, 256Mb sd card, Ambicom wlan cf, Rikaline GPS cf, Socket Bluetooth cf
Zaurus SL-5500, 256Mb sd card, Linksys WCF12 wlan cf
-
Yeah star control 2 is on my todo list to.
My goal at this point consists of rott, abuse, and starcontrol 2.
btw, dino, that is where i got the lib's from. the issue now isnt the lib's but rather from some constants in the sdl mixer...i'm workin on it.
I dunno if i'll go through making ipk's....i'll leave that to someone else if they want to. as soon as i get something working i'll post and make it availible somewhere for sure though.
the Error i'm getting is undefined reference to
SDL_ReadBE32 and SDL_ReadBE16
does anyone know why these constants are missing from the z port of sdl? I assume these are constants from the original from of SDL.
I'll be looking into it more tonight....just got season 2 of aqua teen hunger force on dvd, so it's hindering my productivity
-
fwiw, I just added this program to the OpenEmbedded repository. It compiles, though I didn't have a chance to try if it actually runs. I'm not much into this kind of games, so someone of you may give it a try.
-
Well that might be the incentive i need to finally switch from the sharp rom to oz. the only problem being.....im using a 5600.
is it possible to get oe 3.5.1 compiled and running on the 5600?
~Corona_B