I have downloaded and compiled the source code from the repository, there are some bits missing from the makefile, here is a diff:
Code: Select all
diff --git a/makefile.rpi b/makefile.rpi
index caef7c3..4511418 100644
@@ -33,7 +33,7 @@ DEFS = -DGP2X -DLSB_FIRST -DALIGN_INTS -DALIGN_SHORTS -DINLINE="static __inline"
CFLAGS = -fsigned-char $(DEVLIBS) \
-Isrc -Isrc/$(MAMEOS) -Isrc/zlib \
- -I$(SDKSTAGE)/opt/vc/include -I$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads \
+ -I$(SDKSTAGE)/opt/vc/include -I$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -I$(SDKSTAGE)/opt/vc/include/interface/vmcs_host/linux \
-march=armv6 -mfpu=vfp -mfloat-abi=hard \
-O3 -ffast-math -fomit-frame-pointer -fstrict-aliasing \
-mstructure-size-boundary=32 -fexpensive-optimizations \
@@ -43,7 +43,7 @@ CFLAGS = -fsigned-char $(DEVLIBS) \
LDFLAGS = $(CFLAGS)
-LIBS = -lm -lpthread -lSDL -L$(SDKSTAGE)/opt/vc/lib -lGLESv2 -lEGL
+LIBS = -lm -lpthread -lSDL -L$(SDKSTAGE)/opt/vc/lib -lGLESv2 -lEGL -lasound
OBJ = obj_$(TARGET)_$(MAMEOS)
OBJDIRS = $(OBJ) $(OBJ)/cpu $(OBJ)/sound $(OBJ)/$(MAMEOS) \
Also make sure you have installed libasound2-dev.
The emulator runs very well, unfortunately my roms collection seems too new for it (I'm using xmame 0.106 on my desktop PC) and very few games are working, well, few of the games I like most, haven't tried all the others.
One thing I have noticed is a lag on the command response from the keyboard. I mean, when your character is running there is a small but noticiable lag between when you relese the arrow key and when the character actually stops. Tried with ladybug and burgertime. I'm using a wireless keyword, it works well on Windows but maybe it has some problems with the Raspberry Pi.