linx上安装sdl_ttf2.0.11库

qq_40366394 2018-03-18 11:50:48
/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -I/usr/local/include/freetype2 -I/usr/local/include -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL -o showfont showfont.o libSDL_ttf.la -L/usr/local/lib -lfreetype -lz -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread
libtool: link: gcc -g -O2 -I/usr/local/include/freetype2 -I/usr/local/include -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL -o .libs/showfont showfont.o -Wl,-rpath -Wl,/usr/local/lib ./.libs/libSDL_ttf.so -L/usr/local/lib /usr/local/lib/libfreetype.so -lz /usr/local/lib/libSDL.so -lm -ldl -lpthread
/usr/local/lib/libSDL.so: undefined reference to `_XGetRequest'
collect2: error: ld returned 1 exit status
Makefile:368: recipe for target 'showfont' failed
执行make后就出现这个问题,不知道怎么改,那位大神帮帮忙,着急!!!
...全文
427 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhxianbin 2018-03-20
  • 打赏
  • 举报
回复
undefined reference to `_XGetRequest' 是不是有什么文件没编译,或者没有加入链接

23,120

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧