20101220

20101220

0个粉丝

3

问答

0

专栏

0

资料

20101220  发布于  2019-07-23 09:59:21
采纳率 0%
3个问答
4815

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位.
我来回答
回答2个
时间排序
认可量排序

20101220

0个粉丝

3

问答

0

专栏

0

资料

20101220 2019-07-23 10:00:59
认可1
/usr/local/路径的tree如下,三个库应该已经安装好了的
├── bin
│   ├── freetype-config
│   └── sdl-config
├── etc
├── games
├── gundam
│   ├── gundam_client
│   └── install.sh
├── include
│   ├── freetype2
│   ├── ft2build.h
│   └── SDL
├── lib
│   ├── libfreetype.a
│   ├── libfreetype.la
│   ├── libfreetype.so -> libfreetype.so.6.9.0
│   ├── libfreetype.so.6 -> libfreetype.so.6.9.0
│   ├── libfreetype.so.6.9.0
│   ├── libSDL-1.2.so.0 -> libSDL-1.2.so.0.11.4
│   ├── libSDL-1.2.so.0.11.4
│   ├── libSDL.a
│   ├── libSDL.la
│   ├── libSDLmain.a
│   ├── libSDLmain.la
│   ├── libSDL.so -> libSDL-1.2.so.0.11.4
│   ├── libSDL_ttf-2.0.so.0 -> libSDL_ttf-2.0.so.0.10.1
│   ├── libSDL_ttf-2.0.so.0.10.1
│   ├── libSDL_ttf.a
│   ├── libSDL_ttf.la
│   ├── libSDL_ttf.so -> libSDL_ttf-2.0.so.0.10.1
│   ├── pkgconfig
│   ├── python2.7
│   └── python3.5
├── man -> share/man
├── sbin
├── sgd
│   ├── ags
│   ├── bin
│   ├── control
│   ├── log
│   ├── sgd-1.1.5_linux_amd64.tar.gz
│   ├── sgd-1.1.5_linux_amd64.tar.gz.md5
│   └── tar
├── share
│   ├── aclocal
│   ├── ca-certificates
│   ├── man
│   ├── sgml
│   └── xml
└── src

jugg

4个粉丝

15

问答

0

专栏

2

资料

jugg 2019-07-23 11:00:52
认可1
可以试试直接指定相应的动态库或静态库名称 不使用lib目录
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区