RedHat下移植仙剑游戏到S3C6410(二)

2014-11-24 09:10:19 · 作者: · 浏览: 1
disable-video-dummy --disable-video-dga --disable-arts --disable-esd --disable-alsa --disable-video-x11 --disable-nasm --enable-joystick --enable-input-tslib --enable-video-fbcon --host=arm-linux --build=i386 CPPFLAGS="-I$PWD/../../output/arm-linux/include" LDFLAGS="-L$PWD/../../output/arm-linux/lib "
[root@localhost SDL-1.2.14]# make -j4
[root@localhost SDL-1.2.14]# make install
8.安装 SDL_image
[root@localhost lib]# tar -zxvf SDL_image-1.2.8.tar.gz
[root@localhost lib]# cd SDL_image-1.2.8
[root@localhost SDL_image-1.2.8]# ./configure --enable-shared --enable-static --host=arm-linux --prefix=$PWD/../../output/arm-linux --enable-bmp --enable-gif --enable-jpg --enable-png --enable-tif --enable-pnm --enable-xpm --disable-sdltest CC=arm-linux-gcc
[root@localhost SDL_image-1.2.8]# vim Makefile
把-L 后面的空格去掉
[root@localhost SDL_image-1.2.8]# make
[root@localhost SDL_image-1.2.8]# make install
9.安装 SDL_ttf
[root@localhost lib]# tar -zxvf SDL_ttf-2.0.9.tar.gz
[root@localhost lib]# cd SDL_ttf-2.0.9
[root@localhost SDL_ttf-2.0.9]# vim glfont.c
手工修改 glfont.c.全部清空,写入如下
void main() {}
[root@localhost SDL_ttf-2.0.9]# ./configure --host=arm-linux --prefix=$PWD/../../output/arm-linux --enable-shared --enable-static --disable-sdltest --with-freetype-prefix=$PWD/../../output/arm-linux/ --with-sdl-prefix=$PWD/../../output/arm-linux/ CFLAG="-I$PWD/../../output/arm-
linux/include" CC=arm-linux-gcc
[root@localhost SDL_ttf-2.0.9]# vim Makefile
手工修改 Makefile
123 行去 掉-I/usr/include -DHAVE_OPENGL
143 行 改成 GL_LIBS =
266 行 glfont_LDADD = libSDL_ttf.la -lm
[root@localhost SDL_ttf-2.0.9]# make -j4
[root@localhost SDL_ttf-2.0.9]# make install
10.安装 SDL_mixer
[root@localhost lib]# tar -zxvf SDL_mixer-1.2.9.tar.gz
[root@localhost lib]# cd SDL_mixer-1.2.9
[root@localhost lib]# ./configure --host=arm-linux --prefix=$PWD/../../output/arm-linux --enable-shared --enable-static --disable-sdltest --with-freetype-prefix=$PWD/../../output/arm-linux/ --with-sdl-prefix=$PWD/../../output/arm-linux/CFLAG="-I$PWD/../../output/arm-linux/include" LDFLAGS="-L$PWD/../../output/arm-linux/lib -lSDL -liconv -lfreetype" CC=arm-linux-gcc
[root@localhost lib]# make -j4
[root@localhost lib]# make install