Hi all,
I'm new to the forum so I hope I'm not off-topic here. This is actually not so much about Pandora but rather looking for advice from the experience that a Pandora developer might have gained when porting software to the platform. I am also hoping that cross-compiling linux code from other platforms is interesting for Pandora owners/developers so the help could go the other way some time in the future.
I am trying to compile MAME for a prototype of the upcoming XO 1.75 Laptop from the One Laptop per Child Organization. It is based on a Marvell Sheeva ARM CPU which is compatible with the ARMv7 architecture, and runs a slightly modified Fedora 14 distro. I understand the Pandora has a similar architecture, and I see that MAME is available for the platform, so I was wondering if anyone experienced in compiling MAME for ARM could help me.
First question: which MAME to use? I've seen people giving AdvanceMAME a try, but I wasn't able to make it work. I also gave MAME4ALL a try, but was unable to make it work either (I got some strange "Relocations in generic ELF" errors)... so I'm currently progressing with the standard MAME source, and more precisely with the SDLMAME version for *nix.
Can anyone let me know which version has been ported to Pandora, and potentially any compilation tricks used on the x86 code to make it work?
I've been working on this for some weeks now (I'm just an amateur, so bear with my "development speed" here) and have finally been able to get it to compile, but with some tricks:
- I had to stub the function osd_yield_processor in /src/osd/sdl/osinline.h as it wasn't being implemented if the system architecture was neither x86, x86_64 or PPC
- I have to compile with the OPTIMIZE=0 flag due to a casting warning error: "warning: cast from 'UINT8*' to 'UINT64*' increases required alignment of target type"
...but the result is not working (I'm currently debugging) and performance is probably going to suck due to the OPTIMIZE=0 flag.
Anyone out there who could shed some light?
Thanks a lot for your help and best regards
F
I'm new to the forum so I hope I'm not off-topic here. This is actually not so much about Pandora but rather looking for advice from the experience that a Pandora developer might have gained when porting software to the platform. I am also hoping that cross-compiling linux code from other platforms is interesting for Pandora owners/developers so the help could go the other way some time in the future.
I am trying to compile MAME for a prototype of the upcoming XO 1.75 Laptop from the One Laptop per Child Organization. It is based on a Marvell Sheeva ARM CPU which is compatible with the ARMv7 architecture, and runs a slightly modified Fedora 14 distro. I understand the Pandora has a similar architecture, and I see that MAME is available for the platform, so I was wondering if anyone experienced in compiling MAME for ARM could help me.
First question: which MAME to use? I've seen people giving AdvanceMAME a try, but I wasn't able to make it work. I also gave MAME4ALL a try, but was unable to make it work either (I got some strange "Relocations in generic ELF" errors)... so I'm currently progressing with the standard MAME source, and more precisely with the SDLMAME version for *nix.
Can anyone let me know which version has been ported to Pandora, and potentially any compilation tricks used on the x86 code to make it work?
I've been working on this for some weeks now (I'm just an amateur, so bear with my "development speed" here) and have finally been able to get it to compile, but with some tricks:
- I had to stub the function osd_yield_processor in /src/osd/sdl/osinline.h as it wasn't being implemented if the system architecture was neither x86, x86_64 or PPC
- I have to compile with the OPTIMIZE=0 flag due to a casting warning error: "warning: cast from 'UINT8*' to 'UINT64*' increases required alignment of target type"
...but the result is not working (I'm currently debugging) and performance is probably going to suck due to the OPTIMIZE=0 flag.
Anyone out there who could shed some light?
Thanks a lot for your help and best regards
F