5096
- 收藏
- 点赞
- 分享
- 举报
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. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
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
-
712016-05-30 20:13:54
-
2016-09-19 21:03:20
-
2021-06-03 07:50:06
-
2018-09-26 11:09:56
-
02019-11-29 10:01:19
-
2016-06-03 16:44:20
-
2018-09-26 11:48:56
-
2016-06-28 12:11:24
-
2020-11-20 16:06:08
-
2020-10-29 11:32:21
-
2016-06-28 20:12:08
-
02018-12-18 16:41:15
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认