Ubuntu上编译安装Freetype/Freetype-py
1.安装freetype
FreeType 2 is a software font engine that is designed to be small, efficient, highly customizable, and portable while capable of producing high-quality output (glyph images). It can be used in graphics libraries, display servers, font conversion tools, text
image generation tools, and many other products as well.
官方网站:http://freetype.sourceforge.net/freetype2/index.html
安装:
1.cd ~/Downloads
2.wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.10.tar.gz
3.tar zxvf freetype-2.4.10.tar.gz
4.cd freetype-2.4.10/
5…/configure
6.make
7.sudo make install
2.安装freetype-py
wget http://freetype-py.googlecode.com/files/freetype-py-0.4.1.tar.gz
tar xvzf freetype-py-0.4.1.tar.gz
cd freetype-py-0.4.1
sudo ./setup.py install
注:安装后需要重启系统后方可使用。
3.Android中的Freetype
系统版本4.2.2_r1
Freetype是字显示在屏幕上过程中的一个小阶段,看到freetype官方介绍说Android系统也使用了freetype,但是我似乎丝毫没有看到相关信息。最后在系统上亲自编译一下才探得究竟。源码位置是在./external/freetype,编译过后会产生一个静态库文件libft2.a存在obj目录下。这么说来它只是用于被其它链接而并没有最终直接放到Android系统的文件系统/system/lib中。然后以libft2为关键字搜索一下发现./frameworks/rs ./external/skia和./external/harfbuzz使用了这个库。
Freetype安装时提示 make: Nothing to be done for ‘unix’
[Software-Freetype] Freetype 安装时提示 make: Nothing to be done for `unix’
官网下载的第三方软件包,编译安装会报以下错误,解决办法如下:
第一种:
make: Nothing to be done for `all’ 解决方法
1.这句提示是说明你已经编译好了,而且没有对代码进行任何改动。
若想重新编译,可以先删除以前编译产生的目标文件:
make clean
然后再
make
实在不行就:
#ldconfig
上面所说的方法并不能解决题目上的错误,看下面的方法。
第二种方法:
make: Nothing to be done for `unix’.
centos5.8下安装freetype出错处理
configure: creating ./config.status
config.status: creating unix-cc.mk
config.status: creating unix-def.mk
config.status: creating freetype-config
config.status: creating freetype2.pc
config.status: creating ftconfig.h
www.2cto.com
FreeType build system – automatic system detection
make: Nothing to be done for `unix’.
处理办法:
builds/unix在freetype下载解压的目录下。
先进入 builds/unix目录,然后在里边运行./configure命令,运行该命令不会出现上边错误。
#cd /usr/local/src/freetype-2.5.3/builds/unix
#./configure --prefix=/usr/local/freetype --enable-shared