I have compiled Advmame 0.106.0 and 0.106.1 consistently with this method using image 2012-09-18-wheezy-raspbian (And two previous versions), my RPi is over clocked to 900MHz. The problem seems to be the SH2 processor emulator core using the 4.6 compiler.
1. Compile STRAIGHT from Terminal (DON’T go into X)
2. Make sure you have the RAM split set up attributing ALL the RAM to the ARM (Use the config (sudo raspi-config))
3. Compile as ROOT (Set up a root password for this if you haven’t already! (sudo passwd root)
4. Install libsdl1.2-dev dependencies (apt-get install libsdl1.2-dev)
5. Install the GCC 4.7 Compiler (apt-get install gcc-4.7)
6. Change over to the 4.7 Compiler -
Now just CD into the directory where you uncompressed the source code
make install (Optional, but useful in this case as running straight from Terminal (Not in X) gives a significant performance increase!)
7. Once it has completed compiling (It will take a few hour’s!!!) exit ROOT
8. Now start the executable so it sets up all the correct folders -
advmame (Hopefully it will give you a message telling you its set these up!)
9. Start X
10. There should now be a hidden folder .advance
11. Put any ROMS you have in the appropriate folder (rom)
12. In the advmame.rc add the line -
device_video_clock 5 - 50 / 15.62 / 50 ; 5 - 50 / 15.73 / 60
(This will force the correct output to HDMI)
13. Save it
14. Exit X
15. Now just type advmame “Name of ROM”
16. Hopefully it should now work!
I started a thread (Best Emulators for Pi) viewtopic.php?f=78&t=21458 for some guidance and help on emulators from what I have discovered so far. There is information there on Advmame, Advmess, Atari++, FBZX, GNGEO, Mednafen, PSX Rearmed, Stella and UAE!
Hope that helps!
"The list of things I have heard now contains everything!"