RetroGame

build chroma


編譯步驟如下:

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

$ wget https://github.com/steward-fu/rs97/releases/download/v1.0/chroma.7z
$ 7za x chroma.7z
$ cd chroma
$ FREETYPE_CONFIG=/opt/rs97/bin/freetype-config SDLCONFIG=/opt/rs97/mipsel-rs97-linux-uclibc/sysroot/usr/bin/sdl-config ./configure --host=$TARGETMACH --build=$BUILDMACH
  10 CFLAGS = -I/opt/rs97/mipsel-rs97-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/rs97/bin/../mipsel-rs97-linux-uclibc/sysroot/usr    /include/freetype2 -I/opt/rs97/bin/../mipsel-rs97-linux-uclibc/sysroot/usr/include  -DCHROMA_CURSES_HEADER=\ -DCHROMA_DATA_DIR=\"${datadir}/ch    roma/\"
  12 LDFLAGS =  -lintl -lSDL -lncurses

$ vim sdlshadowdisplay.c
  :1,$s/inline//g

$ make clean
$ make


返回上一頁