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
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: I also ran sudo apt-get install update
and sudo apt-get install pkg-config
without any change in the output. (OS = 12.04)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…