OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Rott Problem Compiles Fine But...., Rise of the Triad
jerrybme
post Apr 24 2006, 04:38 AM
Post #1





Group: Members
Posts: 639
Joined: 4-September 03
From: Chicago
Member No.: 401



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/

It compiles natively fine on my Z but when the binary runs it crashes with a not so helpful
CODE
# ./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. sad.gif

Anybody ever got this puppy to run on a Z? Any help would be appreciated!

Cheers,
Jerry
Go to the top of the page
 
+Quote Post
anunakin
post Apr 24 2006, 05:13 AM
Post #2





Group: Members
Posts: 340
Joined: 22-August 04
From: Belem, Brasil
Member No.: 4,358



Are you using SWAP ? ph34r.gif
This maybe because of signed char bug in GCC/ARM, too .... blink.gif
You can try use CFLAGS=-fsigned_char or change all variable declarations on source from char to signed char ...
Go to the top of the page
 
+Quote Post
jerrybme
post Apr 24 2006, 06:28 AM
Post #3





Group: Members
Posts: 639
Joined: 4-September 03
From: Chicago
Member No.: 401



QUOTE(anunakin @ Apr 24 2006, 07:13 AM)
Are you using SWAP ?  ph34r.gif
*

Yes, I've got 256 mg of swap. I'll try changing the CFLAGS to see if that helps.
Thanks!
Jerry
Go to the top of the page
 
+Quote Post
jerrybme
post Apr 24 2006, 06:51 AM
Post #4





Group: Members
Posts: 639
Joined: 4-September 03
From: Chicago
Member No.: 401



Hmm, I added -fsigned_char to the CFLAGS line in the MakeFile and it errored out:
CODE
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
Go to the top of the page
 
+Quote Post
anunakin
post Apr 24 2006, 08:01 AM
Post #5





Group: Members
Posts: 340
Joined: 22-August 04
From: Belem, Brasil
Member No.: 4,358



QUOTE(jerrybme @ Apr 24 2006, 02:51 PM)
Hmm, I added -fsigned_char to the CFLAGS line in the MakeFile and it errored out:
CODE
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

*


Try change all variable declarations on source from char to signed char ...
Go to the top of the page
 
+Quote Post
jerrybme
post Apr 24 2006, 11:31 AM
Post #6





Group: Members
Posts: 639
Joined: 4-September 03
From: Chicago
Member No.: 401



Crap, after all of the find & replacing, no joy: same error sad.gif

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 smile.gif
Go to the top of the page
 
+Quote Post
merli
post Apr 24 2006, 10:37 PM
Post #7





Group: Members
Posts: 227
Joined: 27-April 05
Member No.: 7,008



QUOTE(jerrybme @ Apr 24 2006, 09:31 PM)
Crap, after all of the find & replacing, no joy: same error sad.gif

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 smile.gif
*


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?
Go to the top of the page
 
+Quote Post
jerrybme
post Apr 25 2006, 04:28 AM
Post #8





Group: Members
Posts: 639
Joined: 4-September 03
From: Chicago
Member No.: 401



QUOTE(merli @ Apr 25 2006, 12:37 AM)
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?
*


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 blink.gif

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
Go to the top of the page
 
+Quote Post
merli
post Apr 25 2006, 05:08 AM
Post #9





Group: Members
Posts: 227
Joined: 27-April 05
Member No.: 7,008



QUOTE(jerrybme @ Apr 25 2006, 02:28 PM)
QUOTE(merli @ Apr 25 2006, 12:37 AM)
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?
*


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 blink.gif

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
*



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 http://www.oesf.org/forums/index.php?showt...5&hl=duke+nukem

enjoy

Who will fix save/load problem?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th May 2013 - 04:38 AM