1 SDL2-2.0.3
下载 http://www.libsdl.org/
解压
配置安装环境(--prefix=/usr 安装到/usr下以便能直接调用) ./configure --prefix=/usr
安装 make && make install
2 freetype-2.3.11
下载 http://downloads.sourceforge.net/freetype/freetype-2.5.5.tar.bz2
解压
安装配置 ./configure --prefix=/usr
安装 make && make install
3 SDL2_image-2.0.0
下载 http://www.libsdl.org/projects/SDL_image/
解压
安装配置 ./configure --prefix=/usr
安装 make && make install
4 SDL2_gfx-1.0.1
下载 http://cms.ferzkopp.net/index.php/software/13-sdl-gfx
解压
安装配置 ./configure --prefix=/us
重新配置 autoreconf -ivf (如果没这不会报如下错误)
- libtool: Version mismatch error. This is libtool 2.4.2 Debian-2.4.2-1ubuntu1, but the
- libtool: definition of this LT_INIT comes from libtool 2.4.
- libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2 Debian-2.4.2-1ubuntu1
- libtool: and run autoconf again.
- make[5]: *** 1 Error 63
安装 make && make install