Author Topic: Rise of the Triad for Zaurus  (Read 3151 times)

Corona_B

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
Rise of the Triad for Zaurus
« 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/

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/

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
SL-5600 Clocked up to 471mhz, Zynnergy Rom. Linksys WCF12 Wifi, Sandisk 256 mb CF, Toshiba 256 mb SD, Ratoc CFU1U USB Host CF card,  2X Radioshack 23-047 Battery ExtendersChargers.

blakeyez

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
Rise of the Triad for Zaurus
« Reply #1 on: August 30, 2004, 08:04:38 pm »
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

Xumbi

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Rise of the Triad for Zaurus
« Reply #2 on: August 30, 2004, 08:52:31 pm »
Oooh, I love ROTT!  I was hoping someone was going to try this at some point.  I hope it works with pdaxrom.

Good luck!

Corona_B

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
Rise of the Triad for Zaurus
« Reply #3 on: August 30, 2004, 09:28:42 pm »
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/
(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.
« Last Edit: August 31, 2004, 10:46:08 am by Corona_B »
SL-5600 Clocked up to 471mhz, Zynnergy Rom. Linksys WCF12 Wifi, Sandisk 256 mb CF, Toshiba 256 mb SD, Ratoc CFU1U USB Host CF card,  2X Radioshack 23-047 Battery ExtendersChargers.

dino

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://
Rise of the Triad for Zaurus
« Reply #4 on: August 31, 2004, 02:14:38 pm »
Try installing the libraries from here:
Zaurus Page
There are several SDL libraries including SDL-mixer.

I might try to compile this also.  Looks like a cool game!  
SL5500, Open Zaurus 3.5.2, 128MB SD

edo

  • Newbie
  • *
  • Posts: 18
    • View Profile
Rise of the Triad for Zaurus
« Reply #5 on: August 31, 2004, 06:52:23 pm »
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

Corona_B

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
Rise of the Triad for Zaurus
« Reply #6 on: September 01, 2004, 11:34:04 am »
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
SL-5600 Clocked up to 471mhz, Zynnergy Rom. Linksys WCF12 Wifi, Sandisk 256 mb CF, Toshiba 256 mb SD, Ratoc CFU1U USB Host CF card,  2X Radioshack 23-047 Battery ExtendersChargers.

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Rise of the Triad for Zaurus
« Reply #7 on: September 01, 2004, 12:40:02 pm »
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.
« Last Edit: September 01, 2004, 12:41:03 pm by Mickeyl »
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

Corona_B

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
Rise of the Triad for Zaurus
« Reply #8 on: September 02, 2004, 12:57:14 am »
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
SL-5600 Clocked up to 471mhz, Zynnergy Rom. Linksys WCF12 Wifi, Sandisk 256 mb CF, Toshiba 256 mb SD, Ratoc CFU1U USB Host CF card,  2X Radioshack 23-047 Battery ExtendersChargers.