View Full Version : xMAME runtime error - please help
I am trying to compile xmame-0.58.1. It compiles just fine, but every time I run xmame.SDL, I get the following error message:
"error: compiled byte ordering doesn't match machine byte ordering"
"are you sure you choose the right arch?"
"compiled for msb-first, are you sure you choose the right cpu in makefile.unix"
I have set the MY_CPU to both arm926 and arm, but still get the same results. I have also tried turning on and off many of the CFLAGS, and tried forcing little endian compile in gcc. I modified the makefile.unix values based on the values found in the Makefile found at http://mame770.mysticserver.com/. I've also compiled xmame-0.103 using the mysticserver 0.103 Makefile and get the same error message when I try to run it. I get the same error message when I run xmess-0.58.1.
I've gotten Frodo (Commodore 64 emulator) as well as Stella (Atari 2600 emulator) compiled for ARM and working on the 770, so I don't understand why I am having so much trouble with xMAME. All are being compiled under the same Ubuntu 5.10 environment. Any ideas? Thanks.
You need a response from Tak for the mame stuff as he's done it; I presume you've checked to see if tak uploaded the source to the xmame garage site. My roms (from around .100 ish) work fine in the main.
Hey tts, any chance of making your other things garage (or something) and uploading them?
Another big boost for the 770 emu scene.
Did you get input working for frodo?
Don't suppose you're thinking about a NES emu too? Apparently the best Elite version (according to bell or braben, can't remember which) is on the NES; would be good to lose some hours playing Elite.
10-02-2006, 06:01 PM
Hi, I am formerly geekdoc,
I remember having the same error.
I think the deal was that you needed to have the msb or lsb flag set when you cc.
Did you look at the makefile for how I compiled?
I have been off site and out of scene for at least 6 months.
I am glad someone was able to take up where I left off
10-02-2006, 06:03 PM
Furthermore, this boards spam eater killed a previous username that I tried to
post from this morning. I forgot the password for my original account.
Yes, I checked the xmame garage site, but couldn't find the source for xmame, only for xmaeme.
I could put Frodo and Stella up on my website. I don't think they are Garage worthy since I didn't do any porting. I simply compiled them. They are not Hildonized or in .deb packages, so it would be up to the user to extract them to a folder on the 770 and run them as root. I can post the diff or patch files and some of my notes so that someone who has free time can develop them further. I wish I had more time to spend on it, but I have a 14-month old baby. Babies keep you busy.
I haven't been able to test the input for Frodo yet. I just got it compiled and it brings up the C64 startup screen. I need to get another keyboard. I bought the Think Ahead Shasta for Blackberry, but didn't realize that it wouldn't work with the 770. Actually, the keyboard works, but not reliably.
I haven't tried any NES emulators. I just saw your mention of FCE Ultra on the other thread. I downloaded that, compiled, and tried running Elite. It seems to work, but has some graphics weirdness on the bottom of the screen. I'll throw that up on my page as well.
Here are a few other things that I compiled.
Sylpheed for OS 2006. It is listed on Maemo.org as an OS 2006 work-in-progress, but appears to only be compiled for OS 2005.
Rise of the Triad running under the i386 Maemo 2.0 scratchbox environment in Xephyr, but it doesn't run on the 770. On the 770 I get a stack dump in /lib/libpthread.so.0.
Since Doom was only compiled for OS 2005, I compiled Prboom for OS 2006. It is supposed to be able to play Doom, Doom 2, Ultimate Doom, and Final Doom. I haven't tried all of them yet. It seems to run Doom quite fast, but it has some weird graphics artifacts.
Yes, I used the makefile that you posted on your server to compile the 0.103 (slow) xmame. It gave me the same error message.
Here are the different ways that I have tried to compile (without success):
Tried compiling with -mcpu=arm926ej-s
Tried switching -Os to -O2
Tried compiling without -O2
Tried compiling with -fno-strict-aliasing instead of -fstrict-aliasing
Tried compiling with -O2 -mbig-endian -Wall ( fails on compile)
Tried compiling with -mlittle-endian
When I run the Unix file command on the files, I get:
xmame.SDL: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Lunix 2.4.17, dynamically linked (uses shared libs), not stripped
That looks to be correct since it is an LSB executable. I get the same message when I run file on other executables that work properly on the 770.
Do you still have the Makefile that you used for fastMAME?
@tts - yes I know the problem. 21 months and 3 years here. Spent most of my computer hacking time for this year (i.e. time when my wife is out in the evening visiting friends!!) getting chaos strikes back going :)
Note that Tak looks like he's picking up FCEUltra too.
10-04-2006, 03:24 PM
Yeah, somewhere give me half a bit to look for the makefile.
I am currently in travelinh and haven't unpacked my hard drives yet...
and do you blame me
10-04-2006, 06:08 PM
My files are too big to post.
I will try to pm them to you, or pm me your email address.
10-05-2006, 01:35 PM
So did the makefiles work? What was the issue?
Yes, finally got xmame to run. It was the unix.mak. I didn't realize that need to be changed as well as the Makefile. Adding this line to unix.mak fixed it.
CFLAGS.arm = -DALIGN_INTS -DALIGN_SHORTS -DLSB_FIRST
I also had to set MY_CPU = arm in Makefile.
BTW - that also got xMESS running as well. I was able to bring up the C64, C128, and Apple II on the 770. I'm working on cleaning up my notes. I'll post them to my website soon. I'll try to add some screenshots as well.
Thanks a bunch,
I was able to clean up my notes a bit. Here you go if you want to do some 770 hacking. I still need to post executables, patch files, and screenshots.
10-06-2006, 11:34 AM
I am actually sans nokia now. I will probably get it sent to me here.
(A friend has it in New York, and I am in Brazil :)
But, when I get it... mame gets updated first !!!
How is the speed?
Does it run anywhere near as quick with sound as it does without?
Also, I could never get the SDL sound to work. In the notes it says that you weren't
able to get it running either. Do you know why it doesn't work?
@both of you - I suggested to Tak that he try ESD for sound, and that's what he did; it seems fine on stuff like pacman, amidar, that kind of thing.
Tak's 0.58 build is fine for those older roms; rtype is slow, but runs, as is puzlbobl.
I couldn't get defender to run :(
All works very nicely with bluetooth gamepad :) which allows two buttons to be pressed at once
10-07-2006, 02:19 PM
You know... I think I had defender running... but I can't remember.
I think you had to rotate the screen and change the size of the display.
I really wish the processor had more juice.
Thanks for the update :)
The speed for MAME is about 75% for the few games that I tested. Without sound, Donkey Kong was running at 100%. I used SDL for sound, and can hear it on Donkey Kong, and Congo Bongo. I didn't do anything special to get SDL sound to work, so I am guessing that the Nokia development team updated it in OS 2006? The sound does work, but it is a bit choppy. I am guessing it is because the CPU is maxed out.
I update the website. It now has the executables, patches, and some screenshots.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.