freetype安装

2130阅读 0评论2016-06-16 三点水兽
分类:嵌入式

安装freetype最新库文件

步骤一:进入软件源码包所在目录/usr/local/src/中,解压软件包freetype-2.3.5.tar.gz到当前目录freetype-2.3.5下,并进入freetype-2.3.5目录。命令行如下所示。

  1. [root@localhost root]# cd /usr/local/src/         //进入软件源码包所在目录  
  2. [root@localhost src]# tar zxvf freetype-2.3.5.tar.gz     //解包解压到freetype-2.3.5目录  
  3. [root@localhost src]# cd  freetype-2.3.5        //进入目录freetype-2.3.5中 

步骤二:使用"configure"命令检查并配置安装需要的系统环境,并生成安装配置文件。命令行如下。

  1. [root@localhost freetype-2.3.5]# ./ configure --prefix=/usr/local/freetype 

选项--prefix=/usr/local/freetype,是在安装时将软件安装到/usr/local/freetype目录下

步骤三:使用"make"命令编译源代码文件并生成安装文件,命令行如下。

  1. [root@localhost freetype-2.3.5]# make     //对软件源代码文件进行编译 

步骤四:使用"make install"命令进行安装,命令行如下:

  1. [root@localhost freetype-2.3.5]# make install     //开始安装freetype库文件 

如果安装成功将会在/usr/local/freetype目录下存在bin、include、lib和share 4个目录。并在安装GD2库时,通过configure命令的选项中加上"--with-freetype=/usr/local/freetype/"选项,指定freetype库文件的位置

上一篇:shell脚步切换到root用户
下一篇:比较详细的ffmpeg参数功能