Miyoo

build dosbox


編譯步驟如下:

$ cd
$ wget https://github.com/steward-fu/miyoo/releases/download/v1.0/toolchain.7z
$ 7za x toolchain.7z
$ sudo cp -a miyoo /opt/
$ export PATH=$PATH:/opt/miyoo/bin
$ export TARGETMACH=arm-linux
$ export BUILDMACH=i686-pc-linux-gnu
$ export CROSS=arm-linux
$ export CC=${CROSS}-gcc
$ export LD=${CROSS}-ld
$ export AS=${CROSS}-as
$ export CXX=${CROSS}-g++

$ wget https://github.com/steward-fu/miyoo/releases/download/v1.2/dosbox.7z
$ 7za x dosbox.7z
$ cd dosbox
$ SDL_CONFIG=/opt/miyoo/arm-miyoo-linux-uclibcgnueabi/sysroot/usr/bin/sdl-config ./configure --host=$TARGETMACH
$ vim config.h
  97 //#define C_X11_XKB 1

$ vim src/gui/Makefile
  217 LIBS = -lSDL_sound -lasound -lm -ldl -lpthread -L/opt/miyoo/arm-miyoo-linux-uclibcgnueabi/sysroot/usr/lib -lSDL -lpng -lz -lSDL_net -lX11 -lGL -lSDL_gfx

$ vim src/Makefile
  245 LIBS = -lSDL_sound -lasound -lm -ldl -lpthread -L/opt/miyoo/arm-miyoo-linux-uclibcgnueabi/sysroot/usr/lib -lSDL -lpng -lz -lSDL_net -lX11 -lGL -lSDL_gfx -lSDL_image

$ make clean
$ make


返回上一頁