ffmpeg在安装x264播放器的时候出现 ERROR: libx264 not found

zz12006345 2014-07-24 03:17:06
我查了config.log 里面显示是

gcc -L./x264 -Wl,--as-needed -o /tmp/ffconf.ZNG31130 /tmp/ffconf.xCt31136.o -lx264 -lm -lbz2 -lz -pthread -lrt
./x264/libx264.a(opencl.o): In function `x264_opencl_close_library':
opencl.c:(.text+0x572): undefined reference to `dlclose'
./x264/libx264.a(opencl.o): In function `x264_opencl_load_library':
opencl.c:(.text+0x5d7): undefined reference to `dlopen'
opencl.c:(.text+0x5f1): undefined reference to `dlsym'
opencl.c:(.text+0x60e): undefined reference to `dlsym'
opencl.c:(.text+0x62b): undefined reference to `dlsym'
opencl.c:(.text+0x648): undefined reference to `dlsym'
opencl.c:(.text+0x665): undefined reference to `dlsym'
./x264/libx264.a(opencl.o):opencl.c:(.text+0x682): more undefined references to `dlsym' follow
./x264/libx264.a(opencl.o): In function `x264_opencl_load_library':
opencl.c:(.text+0x8fd): undefined reference to `dlclose'
./x264/libx264.a(opencl.o): In function `x264_opencl_lookahead_init':
opencl.c:(.text+0x1841): undefined reference to `dlopen'
opencl.c:(.text+0x185b): undefined reference to `dlsym'
opencl.c:(.text+0x186d): undefined reference to `dlsym'
opencl.c:(.text+0x1881): undefined reference to `dlsym'
opencl.c:(.text+0x1895): undefined reference to `dlsym'
opencl.c:(.text+0x18d4): undefined reference to `dlclose'
collect2: ld returned 1 exit status

应该是编译这个问题的时候少了一个 -ldl 请问这个问题怎么解决?
...全文
1125 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
petersoap 2015-07-21
  • 打赏
  • 举报
回复
我是用楼主的方法,显示了Unknown option --extra-libs=-ldl, ignored请问这是为什么呢?
Frank范 2014-11-20
  • 打赏
  • 举报
回复
./configure --extra-libs=-ld 直接用这个命令
Frank范 2014-11-19
  • 打赏
  • 举报
回复
要在./configure 选项的哪个地方加上 --extra-libs=-ld 啊。我现在也出现这个问题了。怎么解决呢?
zz12006345 2014-07-27
  • 打赏
  • 举报
回复
引用 4 楼 zhao4zhong1 的回复:
./configure make su 输入root用户的密码 make install
解决了。。。只要在configure选项里面加上 --extra-libs=-ldl就可以了
赵4老师 2014-07-24
  • 打赏
  • 举报
回复
./configure make su 输入root用户的密码 make install
赵4老师 2014-07-24
  • 打赏
  • 举报
回复
引用 2 楼 zz12006345 的回复:
makefile使用shell写的。。找不到把路径加在哪里怎么办。。。
仔细找,应该能找到。
zz12006345 2014-07-24
  • 打赏
  • 举报
回复
makefile使用shell写的。。找不到把路径加在哪里怎么办。。。
赵4老师 2014-07-24
  • 打赏
  • 举报
回复
在GUI配置相应项或makefile里面的gcc命令行中添加-ldl

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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