5409
- 收藏
- 点赞
- 分享
- 举报
freetype+SDL+SDL_ttf的安装问题
在3519A上绘制字符打算用freetype+SDL+SDL_ttf的方案,但安装后测试程序编译不过。整个流程参考https://blog.csdn.net/simonforfuture/article/details/78629905
编译测试程序:
arm-himix200-linux-gcc test.c `sdl-config --cflags --libs` -I/opt/sdl_lib/include -I/opt/sdl_lib/include/SDL -L/opt/sdl_lib/lib -lSDL -lSDL_ttf -Wl,-rpath -o test.o
报错:
/opt/hisi-linux/x86-arm/arm-himix200-linux/host_bin/../lib/gcc/arm-linux-gnueabi/6.3.0/../../../../arm-linux-gnueabi/bin/ld: warning: libfreetype.so.6, needed by /usr/local/lib/libSDL_ttf.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Outline_Transform'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Load_Glyph'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Get_Kerning'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Set_Pixel_Sizes'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Stroker_Done'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Open_Face'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Done_Face'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Done_FreeType'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Init_FreeType'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Set_Charmap'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Stroker_Set'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Done_Glyph'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Glyph_To_Bitmap'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Stroker_New'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Get_Glyph'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Get_Char_Index'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Render_Glyph'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Set_Char_Size'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Glyph_Stroke'
collect2: error: ld returned 1 exit status
但freetype,SDL和SDL_ttf已经在/usr/local/lib/路径下装好了啊,是不是我还需要安装什么库?
系统是ubuntu16.04 64位.
编译测试程序:
arm-himix200-linux-gcc test.c `sdl-config --cflags --libs` -I/opt/sdl_lib/include -I/opt/sdl_lib/include/SDL -L/opt/sdl_lib/lib -lSDL -lSDL_ttf -Wl,-rpath -o test.o
报错:
/opt/hisi-linux/x86-arm/arm-himix200-linux/host_bin/../lib/gcc/arm-linux-gnueabi/6.3.0/../../../../arm-linux-gnueabi/bin/ld: warning: libfreetype.so.6, needed by /usr/local/lib/libSDL_ttf.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Outline_Transform'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Load_Glyph'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Get_Kerning'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Set_Pixel_Sizes'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Stroker_Done'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Open_Face'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Done_Face'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Done_FreeType'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Init_FreeType'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Set_Charmap'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Stroker_Set'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Done_Glyph'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Glyph_To_Bitmap'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Stroker_New'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Get_Glyph'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Get_Char_Index'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Render_Glyph'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Set_Char_Size'
/usr/local/lib/libSDL_ttf.so: undefined reference to `FT_Glyph_Stroke'
collect2: error: ld returned 1 exit status
但freetype,SDL和SDL_ttf已经在/usr/local/lib/路径下装好了啊,是不是我还需要安装什么库?
系统是ubuntu16.04 64位.
我来回答
回答2个
时间排序
认可量排序
认可1
认可1
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2016-03-05 10:53:40
-
2016-09-14 16:58:48
-
2019-04-23 11:47:53
-
2021-04-29 17:49:55
-
2021-05-08 17:27:49
-
2016-07-19 21:15:51
-
2016-06-22 18:03:34
-
2016-09-19 21:03:20
-
712016-05-30 20:13:54
-
2018-09-26 11:09:56
-
2021-06-03 07:50:06
-
2016-06-03 16:44:20
-
2018-09-26 11:48:56
-
02019-11-29 10:01:19
-
2016-06-28 12:11:24
-
2020-11-20 16:06:08
-
2019-02-03 14:47:48
-
2020-10-29 11:32:21
-
2016-06-28 20:12:08
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
10svp nnn目标检测不全
-
10hi35169dv500平台使用http协议推拉流UVC摄像头,帧率问题
-
10hi3516cv610关于YOLO优化和调优问题
-
10hi_mpi_vpss_get_chn_frame err:0xa0078016报错
-
5gk7205v200(hisi3516ev200)如何接入b656?
-
30pipe管道创建失败
-
10atc转换模型失败
-
20拍摄静止画面显示正常,拍摄运动的画面出现马赛克显示
-
100hi3516cv610 通过易百纳官方SDK中编译出的uboot env kernel,移植到自己的工程中,MPP初始化时出现内核拷贝数据到用户端时出现错误导致内核进入pain模式进而时内核重启
-
5hisi3519 gs2972 bt1120 转sdi 无法正常显示问题
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认

微信扫码分享
QQ好友