OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: jerrybme on April 24, 2006, 08:38:25 am
-
I'm trying to get ROTT to run. It's a old favorite 3D shooter for those that may not have played it. It was supposed to have been a sequel to Wolfenstien 3-D. Linux port source code can be found here: http://www.icculus.org/rott/ (http://www.icculus.org/rott/)
It compiles natively fine on my Z but when the binary runs it crashes with a not so helpful
# ./rott
Rise of the Triad Startup Version 1.4
Shareware Version
Z_INIT: 8950000 bytes
IN_Startup; Mouse Present
OH NO OH NO ROTT CRASHED!
Here is where:
Stack dump:
{
}
I've looked through the source code, but I'm no coder so nothing jumped out at me. I've tried running the ROTT ipk that's in OZ when I've flashed to OZ/GPE and that binary doesn't crash, rather it hangs while loading the wad file.
To add insult to injury, I tried compiling ROTT on my Ubuntu/Dapper box and it fails on the SDL-mixer portion of the compile.
Anybody ever got this puppy to run on a Z? Any help would be appreciated!
Cheers,
Jerry
-
Are you using SWAP ?
This maybe because of signed char bug in GCC/ARM, too ....
You can try use CFLAGS=-fsigned_char or change all variable declarations on source from char to signed char ...
-
Are you using SWAP ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124356\"][{POST_SNAPBACK}][/a][/div]
Yes, I've got 256 mg of swap. I'll try changing the CFLAGS to see if that helps.
Thanks!
Jerry
-
Hmm, I added -fsigned_char to the CFLAGS line in the MakeFile and it errored out:
gcc -fsigned_char -g -I/opt/native/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/SDL -D_REENTRANT -DUSE_SDL=1 -DPLATFORM_UNIX=1 -W -Wall -Wno-unused -DUSE_EXECINFO=1 -c -o cin_actr.o cin_actr.c
cc1: error: unrecognized command line option "-fsigned_char"
make: *** [cin_actr.o] Error 1
-
Hmm, I added -fsigned_char to the CFLAGS line in the MakeFile and it errored out:
gcc -fsigned_char -g -I/opt/native/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/SDL -D_REENTRANT -DUSE_SDL=1 -DPLATFORM_UNIX=1 -W -Wall -Wno-unused -DUSE_EXECINFO=1 -c -o cin_actr.o cin_actr.c
cc1: error: unrecognized command line option "-fsigned_char"
make: *** [cin_actr.o] Error 1
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124366\"][{POST_SNAPBACK}][/a][/div]
Try change all variable declarations on source from char to signed char ...
-
Crap, after all of the find & replacing, no joy: same error
I hope someone smarter than I takes a crack at this, it's a fun game. One of the things I like over doom is the anti-gravity pads that allow you to jump to areas of the map & collect items as you fly through the air
-
Crap, after all of the find & replacing, no joy: same error
I hope someone smarter than I takes a crack at this, it's a fun game. One of the things I like over doom is the anti-gravity pads that allow you to jump to areas of the map & collect items as you fly through the air
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124407\"][{POST_SNAPBACK}][/a][/div]
Still only trying to do blind shot but try use -fpack-struct (never helped me, but they advice to do it), or use __attribute__ ((packed)) at structures. These old dos fps games have problems with ARM porting. I've tried:
dukenukem3d - compiles runs OK but has problem with save/load (corrupted).
descent d1x rebirth - compiles OK but segfault on run.
descent d2x cvs or rebirth - compiles, runs OK till you get hit. Then some memory is overwriten and of course segfault.
I want to try also heretic and hexen, but i am frustrated right now from unsuccesfull attempts. Problem can be ARM signed/unsigned chars and structure alignment. But I am not rael c/c++ programmer to easy solve thous problems.
BTW: Don't you know how our version of gcc handles structure alignment in ARM by default?
-
Still only trying to do blind shot but try use -fpack-struct (never helped me, but they advice to do it), or use __attribute__ ((packed)) at structures. These old dos fps games have problems with ARM porting. I've tried:
dukenukem3d - compiles runs OK but has problem with save/load (corrupted).
descent d1x rebirth - compiles OK but segfault on run.
descent d2x cvs or rebirth - compiles, runs OK till you get hit. Then some memory is overwriten and of course segfault.
I want to try also heretic and hexen, but i am frustrated right now from unsuccesfull attempts. Problem can be ARM signed/unsigned chars and structure alignment. But I am not rael c/c++ programmer to easy solve thous problems.
BTW: Don't you know how our version of gcc handles structure alignment in ARM by default?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124448\"][{POST_SNAPBACK}][/a][/div]
Well, sorry I'm even less of a c/c++ coder than you. You're way ahead of me as I don't know what a structure alignment is
Also bummed to hear about Dukenukem, another of my old favorites, I'd love to have that on my Z too. Even though it doesn't Save/load, would you mind posting it somewhere? I'd love o see it run on my Z.
BTW, I did finally get ROTT to compile & run in Ubuntu.
Cheers,
Jerry
-
Still only trying to do blind shot but try use -fpack-struct (never helped me, but they advice to do it), or use __attribute__ ((packed)) at structures. These old dos fps games have problems with ARM porting. I've tried:
dukenukem3d - compiles runs OK but has problem with save/load (corrupted).
descent d1x rebirth - compiles OK but segfault on run.
descent d2x cvs or rebirth - compiles, runs OK till you get hit. Then some memory is overwriten and of course segfault.
I want to try also heretic and hexen, but i am frustrated right now from unsuccesfull attempts. Problem can be ARM signed/unsigned chars and structure alignment. But I am not rael c/c++ programmer to easy solve thous problems.
BTW: Don't you know how our version of gcc handles structure alignment in ARM by default?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=124448\")
Well, sorry I'm even less of a c/c++ coder than you. You're way ahead of me as I don't know what a structure alignment is
Also bummed to hear about Dukenukem, another of my old favorites, I'd love to have that on my Z too. Even though it doesn't Save/load, would you mind posting it somewhere? I'd love o see it run on my Z.
BTW, I did finally get ROTT to compile & run in Ubuntu.
Cheers,
Jerry
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124488\"][{POST_SNAPBACK}][/a][/div]
I did't know too what is structure alignment .... I searched ... but it didn't help me still to fix problem. I posted duke nukem binaris here [a href=\"https://www.oesf.org/forums/index.php?showtopic=18105&hl=duke+nukem]https://www.oesf.org/forums/index.php?showt...5&hl=duke+nukem[/url]
enjoy
Who will fix save/load problem?