[求助]请教一个freetype的问题。
时间:2007-01-27
来源:互联网
交叉编译freetype-2.1.10,步骤如下:
./configure --prefix=/usr/local/arm/2.95.3/arm-linux --host=arm-linux
CC=/usr/local/arm/2.95.3/bin/arm-linux-gcc
make
make install[/COLOR]
编译完freetype-2.1.10后,/usr/local/arm/2.95.3/arm-linux/lib下多了
libfreetype.so.6.3.8
libfreetype.so.6
libfreetype.so
libfreetype.la
libfreetype.a
共5个文件。
/usr/local/arm/2.95.3/arm-linux/include下多了个目录freetype2,fretype2下有个目录freetype,freetype下是几个目录和些头文件,看时间应该是编译后生成的。
然后编译ft2demos-2.1.10,一个示例程序包,步骤如下:
make
提示:Please compile the library before the demo programs!
请问什么原因???
还有,如果单独编译freetype-doc-2.1.10中的一个名为example1.c的文件,步骤如下:
arm-linux-gcc -o example1 example1.c
提示如下:
[root@haha infotest]# arm-linux-gcc -o exa exa.c
/tmp/ccmdcBgl.o: In function `main':
/tmp/ccmdcBgl.o(.text+0x2e0): undefined reference to `FT_Init_FreeType'
/tmp/ccmdcBgl.o(.text+0x308): undefined reference to `FT_New_Face'
/tmp/ccmdcBgl.o(.text+0x32c): undefined reference to `FT_Set_Char_Size'
/tmp/ccmdcBgl.o(.text+0x34c): undefined reference to `cos'
/tmp/ccmdcBgl.o(.text+0x368): undefined reference to `sin'
/tmp/ccmdcBgl.o(.text+0x388): undefined reference to `sin'
/tmp/ccmdcBgl.o(.text+0x3a4): undefined reference to `cos'
/tmp/ccmdcBgl.o(.text+0x418): undefined reference to `FT_Set_Transform'
/tmp/ccmdcBgl.o(.text+0x438): undefined reference to `FT_Load_Char'
/tmp/ccmdcBgl.o(.text+0x4f0): undefined reference to `FT_Done_Face'
/tmp/ccmdcBgl.o(.text+0x4f8): undefined reference to `FT_Done_FreeType'
collect2: ld returned 1 exit status
请问是什么原因呢???
请各位帮忙解答,谢谢!!![/COLOR]
./configure --prefix=/usr/local/arm/2.95.3/arm-linux --host=arm-linux
CC=/usr/local/arm/2.95.3/bin/arm-linux-gcc
make
make install[/COLOR]
编译完freetype-2.1.10后,/usr/local/arm/2.95.3/arm-linux/lib下多了
libfreetype.so.6.3.8
libfreetype.so.6
libfreetype.so
libfreetype.la
libfreetype.a
共5个文件。
/usr/local/arm/2.95.3/arm-linux/include下多了个目录freetype2,fretype2下有个目录freetype,freetype下是几个目录和些头文件,看时间应该是编译后生成的。
然后编译ft2demos-2.1.10,一个示例程序包,步骤如下:
make
提示:Please compile the library before the demo programs!
请问什么原因???
还有,如果单独编译freetype-doc-2.1.10中的一个名为example1.c的文件,步骤如下:
arm-linux-gcc -o example1 example1.c
提示如下:
[root@haha infotest]# arm-linux-gcc -o exa exa.c
/tmp/ccmdcBgl.o: In function `main':
/tmp/ccmdcBgl.o(.text+0x2e0): undefined reference to `FT_Init_FreeType'
/tmp/ccmdcBgl.o(.text+0x308): undefined reference to `FT_New_Face'
/tmp/ccmdcBgl.o(.text+0x32c): undefined reference to `FT_Set_Char_Size'
/tmp/ccmdcBgl.o(.text+0x34c): undefined reference to `cos'
/tmp/ccmdcBgl.o(.text+0x368): undefined reference to `sin'
/tmp/ccmdcBgl.o(.text+0x388): undefined reference to `sin'
/tmp/ccmdcBgl.o(.text+0x3a4): undefined reference to `cos'
/tmp/ccmdcBgl.o(.text+0x418): undefined reference to `FT_Set_Transform'
/tmp/ccmdcBgl.o(.text+0x438): undefined reference to `FT_Load_Char'
/tmp/ccmdcBgl.o(.text+0x4f0): undefined reference to `FT_Done_Face'
/tmp/ccmdcBgl.o(.text+0x4f8): undefined reference to `FT_Done_FreeType'
collect2: ld returned 1 exit status
请问是什么原因呢???
请各位帮忙解答,谢谢!!![/COLOR]
作者: alldying 发布时间: 2007-01-27
不同的编译器有自己的环境和路径
你的直接make install不一定符合他的默认值
你的直接make install不一定符合他的默认值
作者: 魔芋 发布时间: 2007-01-27
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28