linux 下 SDL2 安装

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 (如果没这不会报如下错误)

  1. libtool: Version mismatch error.  This is libtool 2.4.2 Debian-2.4.2-1ubuntu1, but the  
  2. libtool: definition of this LT_INIT comes from libtool 2.4.  
  3. libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2 Debian-2.4.2-1ubuntu1  
  4. libtool: and run autoconf again.  
  5. make[5]: *** 1 Error 63  

安装 make && make install


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值