# apt-get install build-essential libgtk2.0-dev libgnome2-dev libsdl1.2-dev libxv-dev libxv1
接下來開始 xmame 的部份:
$ mkdir xmame && cd xmame $ wget http://caltaxcn.googlecode.com/files/xmame-0.106.tar.bz2 $ tar xfva xmame-0.106.tar.bz2 $ cd xmame-0.106建立好環境之後要編輯它的 make 檔
Make_File 1. ./src/unix/unix.mak
( to X11 / SDL ):
CFLAGS.risc_lsb = -DALIGN_INTS -DALIGN_SHORTS -DLSB_FIRST to CFLAGS.arm = -DALIGN_INTS -DALIGN_SHORTS -DLSB_FIRSTMake_File 2. ./makefile.unix
( to X11 / SDL ):
CFLAGS = to #CFLAGS = CFLAGS = -O2 to #CFLAGS = MY_CPU = i386 to MY_CPU = arm
音效設定:
# SOUND_ESOUND = 1 SOUND_ALSA = 1 # SOUND_ARTS_TEIRA = 1 # SOUND_ARTS_SMOTEK = 1 SOUND_SDL = 1 # SOUND_WAVEOUT = 1
SDL joystick support.:
JOY_SDL = 1
輸出模式(擇一)
# X11 (including Glide & OpenGL if enabled below):
DISPLAY_METHOD = x11
# SDL library:
DISPLAY_METHOD = SDL
再來就可以 make 了,編譯結束後會在 xmame-0.106 的資料夾中出現 xmame.x11 或 xmame.SDL 的執行檔,最後跟 mame 一樣只要做 Soft Link 給系統就完成了,指令如下:
# ln -s ./xmame.x11 or SDL /usr/bin/xmame.x11 or SDL # ln -s ./xmame.x11 or SDL /usr/local/bin/xmame.x11 or SDL # ln -s ./xmame.x11 or SDL /usr/game/xmame.x11 or SDL
沒有留言:
張貼留言