ffmpeg 2.1.3 run library link error

本文讨论了在Ubuntu系统中使用ffmpeg遇到的库链接错误问题,详细分析了问题产生的原因,并提供了移除旧库文件和调整ld.so.conf文件顺序以解决此问题的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. after configure and compile ffmpeg, run ffmpeg


The following error is reported.


3rdparty/ffmpeg-2.1.3/ffmpeg: relocation
error: /usr/local/ffmpeg/lib/libavfilter.so.3:
symbol sws_isSupportedEndiannessConversion,
version LIBSWSCALE_2 not defined in file libswscale.so.2
with link time reference


2. what cause above problem


The root cause producing this problem is that when

running ffmpeg,  the ffmpeg linking the relative ffmpeg

 library preinstalled on ubuntu system in /usr/lib/i386-linux-gnu/i686/cmov

or /usr/lib/i386-linux-gnu (libswscale.so.2 )

directory rather than expected ffmpeg library precompiling and

preinstalling on /usr/local/ffmpeg.


Therefore removing the old library will work.


 
ldd tool can be used to find which library to be linked.
 
 
Update:
 
This is searching order problem, if you move include /etc/ld.so.conf.d/*.conf
to tail in ld.so.conf, then rerun ldconfig, the problem will disappear.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值