如何加载正确的 libavcodec.so 共享库版本?(53) [英] How to load correct libavcodec.so shared library version? (53)

查看:37
本文介绍了如何加载正确的 libavcodec.so 共享库版本?(53)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中使用 libavcodec 和 libavformat,但是当我执行在另一台机器上构建的二进制文件时,我收到以下错误:

I am using libavcodec and libavformat in my project but when I execute a binary which was built on another machine, I get the following error:

error while loading shared libraries: libavcodec.so.53: cannot open shared object file: No such file or directory

我用 libav 安装了 ffmpeg 并尝试了以下命令:

I installed ffmpeg with libav and trying the following commands:

sudo apt-get install ffmpeg libavcodec-dev libavformat-dev
sudo apt-get install ffmpeg libavcodec-extra-53
sudo apt-get install libav-tools

当我在同一台机器上构建二进制文件时,错误没有出现,但在第二台机器上编译会快得多.

The error doesnt show up when I build the binary on the same machine, but it would be much faster to compile on a second machine.

UDPATE:我还运行了 sudo apt-get install updatesudo apt-get install pkg-config 输出没有任何变化.(操作系统 = 12.04)

UDPATE: I also ran sudo apt-get install update and sudo apt-get install pkg-config without any change in the output. (OS = 12.04)

推荐答案

https://sites.google.com/site/linuxencoding/builds

尝试从上述网站为 ffmpeg 安装 linux 二进制文件.

try installing the linux binary for ffmpeg from the above website.

为了让每个用户都能从这个答案中受益,我添加了可用于不同平台的 ffmpeg 二进制文件的链接

just so that every user benefits from this answer i am adding links to ffmpeg binaries available for different platforms

对于 centOS http://pkgs.repoforge.org/ffmpeg/

安装教程:

http://www.rackspace.com/knowledge_center/article/centos-安装-ffmpeg

对于 mac http://ffmpegmac.net/

对于 Windows http://ffmpeg.zeranoe.com/builds/

for windows http://ffmpeg.zeranoe.com/builds/

我还制作了一个安装二进制文件的视频教程.但这是在 mac 上.但我认为 linux 也是如此.

also i have made a video tutorial to install a binary. but this is on mac. but i assume its the same for linux to.

https://www.youtube.com/watch?v=wiLNqg2IOAQ

希望能帮到你

这篇关于如何加载正确的 libavcodec.so 共享库版本?(53)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆