libavformat.so.57: cannot open shared object file: No such fil

ncnn/build/example/squeezenet

ffmpeg安装后第三方调用报错;error while loading shared libraries: libavformat.so.57: cannot open shared object file: No such fil

问题解决办法:

1. sudo ln -s lib/x86_64-linux-gnu/libavformat.so libavformat.so.57

2.sudo vim /etc/bash.bashrc

在文件末尾追加:

export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH

3.source /etc/bash.bashrc

4.ffmpeg --help

成功后执行第三方程序 ./squeezenet time.jpg 即可正确调用

你可能感兴趣的:(ffmepg,ncnn)