rv1126上进行编译和在虚拟机里面进行交叉编译ffmpeg都不行

解决办法查看

查看安装的ffmpeg链接的文件

ldd ./ffmpeg
root@EASY-EAI-NANO:/home/nano/ffmpeg-4.3.6# ldd ffmpeg linux-vdso.so.1 (0xaeebd000)libavdevice.so.58 => /lib/arm-linux-gnueabihf/libavdevice.so.58 (0xa6f1c000)libavfilter.so.7 => /lib/arm-linux-gnueabihf/libavfilter.so.7 (0xa6cdb000)libavformat.so.58 => /lib/arm-linux-gnueabihf/libavformat.so.58 (0xa6b19000)libavcodec.so.58 => /lib/arm-linux-gnueabihf/libavcodec.so.58 (0xa59dc000)libswresample.so.3 => /lib/arm-linux-gnueabihf/libswresample.so.3 (0xa59b9000)libswscale.so.5 => /lib/arm-linux-gnueabihf/libswscale.so.5 (0xa5954000)libavutil.so.56 => /lib/arm-linux-gnueabihf/libavutil.so.56 (0xa5847000)libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xa57de000)libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xa57b8000)libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xa56b9000)/lib/ld-linux-armhf.so.3 (0xa6fa4000)libraw1394.so.11 => /lib/arm-linux-gnueabihf/libraw1394.so.11 (0xa56a0000)libavc1394.so.0 => /lib/arm-linux-gnueabihf/libavc1394.so.0 (0xa568c000)librom1394.so.0 => /lib/arm-linux-gnueabihf/librom1394.so.0 (0xa5679000)libiec61883.so.0 => /lib/arm-linux-gnueabihf/libiec61883.so.0 (0xa5660000)libjack.so.0 => /lib/arm-linux-gnueabihf/libjack.so.0 (0xa5622000)libdrm.so.2 => /lib/arm-linux-gnueabihf/libdrm.so.2 (0xa5605000)libopenal.so.1 => /lib/arm-linux-gnueabihf/libopenal.so.1 (0xa5536000)libxcb.so.1 => /lib/arm-linux-gnueabihf/libxcb.so.1 (0xa550d000)libxcb-shm.so.0 => /lib/arm-linux-gnueabihf/libxcb-shm.so.0 (0xa54fa000)libxcb-shape.so.0 => /lib/arm-linux-gnueabihf/libxcb-shape.so.0 (0xa54e7000)libxcb-xfixes.so.0 => /lib/arm-linux-gnueabihf/libxcb-xfixes.so.0 (0xa54d1000)libcdio_paranoia.so.2 => /lib/arm-linux-gnueabihf/libcdio_paranoia.so.2 (0xa54bc000)libcdio_cdda.so.2 => /lib/arm-linux-gnueabihf/libcdio_cdda.so.2 (0xa54a6000)libdc1394.so.22 => /lib/arm-linux-gnueabihf/libdc1394.so.22 (0xa542f000)libasound.so.2 => /lib/arm-linux-gnueabihf/libasound.so.2 (0xa5386000)libcaca.so.0 => /lib/arm-linux-gnueabihf/libcaca.so.0 (0xa52ba000)libGL.so.1 => /lib/arm-linux-gnueabihf/libGL.so.1 (0xa51f5000)libpulse.so.0 => /lib/arm-linux-gnueabihf/libpulse.so.0 (0xa51af000)libSDL2-2.0.so.0 => /lib/arm-linux-gnueabihf/libSDL2-2.0.so.0 (0xa50d2000)libsndio.so.7.0 => /lib/arm-linux-gnueabihf/libsndio.so.7.0 (0xa50b6000)libXv.so.1 => /lib/arm-linux-gnueabihf/libXv.so.1 (0xa50a2000)libX11.so.6 => /lib/arm-linux-gnueabihf/libX11.so.6 (0xa4faf000)libXext.so.6 => /lib/arm-linux-gnueabihf/libXext.so.6 (0xa4f94000)libpostproc.so.55 => /lib/arm-linux-gnueabihf/libpostproc.so.55 (0xa4f7b000)libbs2b.so.0 => /lib/arm-linux-gnueabihf/libbs2b.so.0 (0xa4f67000)liblilv-0.so.0 => /lib/arm-linux-gnueabihf/liblilv-0.so.0 (0xa4f48000)libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xa4f35000)librubberband.so.2 => /lib/arm-linux-gnueabihf/librubberband.so.2 (0xa4eff000)libmysofa.so.1 => /lib/arm-linux-gnueabihf/libmysofa.so.1 (0xa4ee5000)libflite_cmu_us_awb.so.1 => /lib/arm-linux-gnueabihf/libflite_cmu_us_awb.so.1 (0xa4c28000)libflite_cmu_us_kal.so.1 => /lib/arm-linux-gnueabihf/libflite_cmu_us_kal.so.1 (0xa4abe000)libflite_cmu_us_kal16.so.1 => /lib/arm-linux-gnueabihf/libflite_cmu_us_kal16.so.1 (0xa46e0000)libflite_cmu_us_rms.so.1 => /lib/arm-linux-gnueabihf/libflite_cmu_us_rms.so.1 (0xa43b0000)libflite_cmu_us_slt.so.1 => /lib/arm-linux-gnueabihf/libflite_cmu_us_slt.so.1 (0xa40f2000)libflite.so.1 => /lib/arm-linux-gnueabihf/libflite.so.1 (0xa40c0000)libfribidi.so.0 => /lib/arm-linux-gnueabihf/libfribidi.so.0 (0xa4097000)libass.so.9 => /lib/arm-linux-gnueabihf/libass.so.9 (0xa406a000)libva.so.2 => /lib/arm-linux-gnueabihf/libva.so.2 (0xa403d000)libvidstab.so.1.1 => /lib/arm-linux-gnueabihf/libvidstab.so.1.1 (0xa4021000)libzmq.so.5 => /lib/arm-linux-gnueabihf/libzmq.so.5 (0xa3fb6000)libOpenCL.so.1 => /usr/lib/libOpenCL.so.1 (0xa3f49000)libfontconfig.so.1 => /lib/arm-linux-gnueabihf/libfontconfig.so.1 (0xa3f0c000)libfreetype.so.6 => /lib/arm-linux-gnueabihf/libfreetype.so.6 (0xa3e8c000)libxml2.so.2 => /lib/arm-linux-gnueabihf/libxml2.so.2 (0xa3d72000)libbz2.so.1.0 => /lib/arm-linux-gnueabihf/libbz2.so.1.0 (0xa3d56000)libgme.so.0 => /lib/arm-linux-gnueabihf/libgme.so.0 (0xa3d18000)libopenmpt.so.0 => /lib/arm-linux-gnueabihf/libopenmpt.so.0 (0xa3bb9000)libchromaprint.so.1 => /lib/arm-linux-gnueabihf/libchromaprint.so.1 (0xa3b9c000)libbluray.so.2 => /lib/arm-linux-gnueabihf/libbluray.so.2 (0xa3b57000)libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xa3b34000)libgnutls.so.30 => /lib/arm-linux-gnueabihf/libgnutls.so.30 (0xa39dd000)libssh-gcrypt.so.4 => /lib/arm-linux-gnueabihf/libssh-gcrypt.so.4 (0xa396b000)libvpx.so.6 => /lib/arm-linux-gnueabihf/vfp/neon/libvpx.so.6 (0xa37ef000)libwebpmux.so.3 => /lib/arm-linux-gnueabihf/libwebpmux.so.3 (0xa37d9000)libwebp.so.6 => /lib/arm-linux-gnueabihf/libwebp.so.6 (0xa378a000)liblzma.so.5 => /lib/arm-linux-gnueabihf/liblzma.so.5 (0xa3760000)librsvg-2.so.2 => /lib/arm-linux-gnueabihf/librsvg-2.so.2 (0xa3063000)libgobject-2.0.so.0 => /lib/arm-linux-gnueabihf/libgobject-2.0.so.0 (0xa3012000)libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0xa2f29000)libcairo.so.2 => /lib/arm-linux-gnueabihf/libcairo.so.2 (0xa2e6c000)libzvbi.so.0 => /lib/arm-linux-gnueabihf/libzvbi.so.0 (0xa2dff000)libsnappy.so.1 => /lib/arm-linux-gnueabihf/libsnappy.so.1 (0xa2de9000)libaom.so.0 => /lib/arm-linux-gnueabihf/libaom.so.0 (0xa2b52000)libcodec2.so.0.9 => /lib/arm-linux-gnueabihf/libcodec2.so.0.9 (0xa1d7f000)libgsm.so.1 => /lib/arm-linux-gnueabihf/libgsm.so.1 (0xa1d67000)libmp3lame.so.0 => /lib/arm-linux-gnueabihf/libmp3lame.so.0 (0xa1cf8000)libopenjp2.so.7 => /lib/arm-linux-gnueabihf/libopenjp2.so.7 (0xa1caf000)libopus.so.0 => /lib/arm-linux-gnueabihf/libopus.so.0 (0xa1c5e000)libshine.so.3 => /lib/arm-linux-gnueabihf/libshine.so.3 (0xa1c45000)libspeex.so.1 => /lib/arm-linux-gnueabihf/libspeex.so.1 (0xa1c24000)libtheoraenc.so.1 => /lib/arm-linux-gnueabihf/libtheoraenc.so.1 (0xa1bea000)libtheoradec.so.1 => /lib/arm-linux-gnueabihf/libtheoradec.so.1 (0xa1bc8000)libtwolame.so.0 => /lib/arm-linux-gnueabihf/libtwolame.so.0 (0xa1b9a000)libvorbis.so.0 => /lib/arm-linux-gnueabihf/libvorbis.so.0 (0xa1b69000)libvorbisenc.so.2 => /lib/arm-linux-gnueabihf/libvorbisenc.so.2 (0xa1ad7000)libwavpack.so.1 => /lib/arm-linux-gnueabihf/libwavpack.so.1 (0xa1aa9000)libx264.so.155 => /lib/arm-linux-gnueabihf/libx264.so.155 (0xa189e000)libx265.so.179 => /lib/arm-linux-gnueabihf/libx265.so.179 (0xa1672000)libxvidcore.so.4 => /lib/arm-linux-gnueabihf/libxvidcore.so.4 (0xa159f000)libsoxr.so.0 => /lib/arm-linux-gnueabihf/libsoxr.so.0 (0xa153b000)libva-drm.so.2 => /lib/arm-linux-gnueabihf/libva-drm.so.2 (0xa1529000)libva-x11.so.2 => /lib/arm-linux-gnueabihf/libva-x11.so.2 (0xa1515000)libvdpau.so.1 => /lib/arm-linux-gnueabihf/libvdpau.so.1 (0xa1502000)librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xa14ec000)libstdc++.so.6 => /lib/arm-linux-gnueabihf/libstdc++.so.6 (0xa13a3000)libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xa1378000)libXau.so.6 => /lib/arm-linux-gnueabihf/libXau.so.6 (0xa1365000)libXdmcp.so.6 => /lib/arm-linux-gnueabihf/libXdmcp.so.6 (0xa1351000)libcdio.so.18 => /lib/arm-linux-gnueabihf/libcdio.so.18 (0xa1326000)libusb-1.0.so.0 => /lib/arm-linux-gnueabihf/libusb-1.0.so.0 (0xa1304000)libslang.so.2 => /lib/arm-linux-gnueabihf/libslang.so.2 (0xa1144000)libncursesw.so.6 => /lib/arm-linux-gnueabihf/libncursesw.so.6 (0xa1112000)libtinfo.so.6 => /lib/arm-linux-gnueabihf/libtinfo.so.6 (0xa10e4000)libGLdispatch.so.0 => /lib/arm-linux-gnueabihf/libGLdispatch.so.0 (0xa0fad000)libGLX.so.0 => /lib/arm-linux-gnueabihf/libGLX.so.0 (0xa0f4a000)libpulsecommon-13.99.so => /usr/lib/arm-linux-gnueabihf/pulseaudio/libpulsecommon-13.99.so (0xa0ee3000)libdbus-1.so.3 => /lib/arm-linux-gnueabihf/libdbus-1.so.3 (0xa0ea3000)libXcursor.so.1 => /lib/arm-linux-gnueabihf/libXcursor.so.1 (0xa0e8c000)libXinerama.so.1 => /lib/arm-linux-gnueabihf/libXinerama.so.1 (0xa0e7a000)libXi.so.6 => /lib/arm-linux-gnueabihf/libXi.so.6 (0xa0e60000)libXrandr.so.2 => /lib/arm-linux-gnueabihf/libXrandr.so.2 (0xa0e49000)libXss.so.1 => /lib/arm-linux-gnueabihf/libXss.so.1 (0xa0e36000)libXxf86vm.so.1 => /lib/arm-linux-gnueabihf/libXxf86vm.so.1 (0xa0e22000)libwayland-egl.so.1 => /lib/arm-linux-gnueabihf/libwayland-egl.so.1 (0xa0e10000)libwayland-client.so.0 => /lib/arm-linux-gnueabihf/libwayland-client.so.0 (0xa0df7000)libwayland-cursor.so.0 => /lib/arm-linux-gnueabihf/libwayland-cursor.so.0 (0xa0de0000)libxkbcommon.so.0 => /lib/arm-linux-gnueabihf/libxkbcommon.so.0 (0xa0d9e000)libbsd.so.0 => /lib/arm-linux-gnueabihf/libbsd.so.0 (0xa0d7b000)libserd-0.so.0 => /lib/arm-linux-gnueabihf/libserd-0.so.0 (0xa0d58000)libsord-0.so.0 => /lib/arm-linux-gnueabihf/libsord-0.so.0 (0xa0d42000)libsratom-0.so.0 => /lib/arm-linux-gnueabihf/libsratom-0.so.0 (0xa0d2b000)libsamplerate.so.0 => /lib/arm-linux-gnueabihf/libsamplerate.so.0 (0xa0bb1000)libfftw3.so.3 => /lib/arm-linux-gnueabihf/libfftw3.so.3 (0xa0ad6000)libflite_usenglish.so.1 => /lib/arm-linux-gnueabihf/libflite_usenglish.so.1 (0xa0ab0000)libflite_cmulex.so.1 => /lib/arm-linux-gnueabihf/libflite_cmulex.so.1 (0xa0a10000)libharfbuzz.so.0 => /lib/arm-linux-gnueabihf/libharfbuzz.so.0 (0xa094e000)libgomp.so.1 => /lib/arm-linux-gnueabihf/libgomp.so.1 (0xa0915000)libsodium.so.23 => /lib/arm-linux-gnueabihf/libsodium.so.23 (0xa08cf000)libpgm-5.2.so.0 => /lib/arm-linux-gnueabihf/libpgm-5.2.so.0 (0xa087f000)libnorm.so.1 => /lib/arm-linux-gnueabihf/libnorm.so.1 (0xa0753000)libgssapi_krb5.so.2 => /lib/arm-linux-gnueabihf/libgssapi_krb5.so.2 (0xa0718000)libGAL.so => /usr/lib/libGAL.so (0xa0578000)libVSC.so => /usr/lib/libVSC.so (0x9f6e9000)libCLC.so => /usr/lib/libCLC.so (0x9f524000)libexpat.so.1 => /lib/arm-linux-gnueabihf/libexpat.so.1 (0x9f4fb000)libuuid.so.1 => /lib/arm-linux-gnueabihf/libuuid.so.1 (0x9f4e5000)libpng16.so.16 => /lib/arm-linux-gnueabihf/libpng16.so.16 (0x9f4b1000)libicuuc.so.66 => /lib/arm-linux-gnueabihf/libicuuc.so.66 (0x9f362000)libmpg123.so.0 => /lib/arm-linux-gnueabihf/libmpg123.so.0 (0x9f310000)libvorbisfile.so.3 => /lib/arm-linux-gnueabihf/libvorbisfile.so.3 (0x9f2f9000)libp11-kit.so.0 => /lib/arm-linux-gnueabihf/libp11-kit.so.0 (0x9f234000)libidn2.so.0 => /lib/arm-linux-gnueabihf/libidn2.so.0 (0x9f209000)libunistring.so.2 => /lib/arm-linux-gnueabihf/libunistring.so.2 (0x9f09d000)libtasn1.so.6 => /lib/arm-linux-gnueabihf/libtasn1.so.6 (0x9f080000)libnettle.so.7 => /lib/arm-linux-gnueabihf/libnettle.so.7 (0x9f044000)libhogweed.so.5 => /lib/arm-linux-gnueabihf/libhogweed.so.5 (0x9f00b000)libgmp.so.10 => /lib/arm-linux-gnueabihf/libgmp.so.10 (0x9efab000)libgcrypt.so.20 => /lib/arm-linux-gnueabihf/libgcrypt.so.20 (0x9eef8000)libgpg-error.so.0 => /lib/arm-linux-gnueabihf/libgpg-error.so.0 (0x9eed3000)libcairo-gobject.so.2 => /lib/arm-linux-gnueabihf/libcairo-gobject.so.2 (0x9eebd000)libgdk_pixbuf-2.0.so.0 => /lib/arm-linux-gnueabihf/libgdk_pixbuf-2.0.so.0 (0x9ee92000)libgio-2.0.so.0 => /lib/arm-linux-gnueabihf/libgio-2.0.so.0 (0x9ed62000)libpangocairo-1.0.so.0 => /lib/arm-linux-gnueabihf/libpangocairo-1.0.so.0 (0x9ed48000)libpango-1.0.so.0 => /lib/arm-linux-gnueabihf/libpango-1.0.so.0 (0x9ed05000)libffi.so.7 => /lib/arm-linux-gnueabihf/libffi.so.7 (0x9ecef000)libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0x9ec91000)libpixman-1.so.0 => /lib/arm-linux-gnueabihf/libpixman-1.so.0 (0x9ec06000)libxcb-render.so.0 => /lib/arm-linux-gnueabihf/libxcb-render.so.0 (0x9ebed000)libXrender.so.1 => /lib/arm-linux-gnueabihf/libXrender.so.1 (0x9ebd6000)libogg.so.0 => /lib/arm-linux-gnueabihf/libogg.so.0 (0x9ebbf000)libXfixes.so.3 => /lib/arm-linux-gnueabihf/libXfixes.so.3 (0x9ebab000)libudev.so.1 => /lib/arm-linux-gnueabihf/libudev.so.1 (0x9eb7f000)libsystemd.so.0 => /lib/arm-linux-gnueabihf/libsystemd.so.0 (0x9eafa000)libwrap.so.0 => /lib/arm-linux-gnueabihf/libwrap.so.0 (0x9eae3000)libsndfile.so.1 => /lib/arm-linux-gnueabihf/libsndfile.so.1 (0x9ea7b000)libasyncns.so.0 => /lib/arm-linux-gnueabihf/libasyncns.so.0 (0x9ea66000)libapparmor.so.1 => /lib/arm-linux-gnueabihf/libapparmor.so.1 (0x9ea49000)libgraphite2.so.3 => /lib/arm-linux-gnueabihf/libgraphite2.so.3 (0x9ea1f000)libkrb5.so.3 => /lib/arm-linux-gnueabihf/libkrb5.so.3 (0x9e984000)libk5crypto.so.3 => /lib/arm-linux-gnueabihf/libk5crypto.so.3 (0x9e950000)libcom_err.so.2 => /lib/arm-linux-gnueabihf/libcom_err.so.2 (0x9e93d000)libkrb5support.so.0 => /lib/arm-linux-gnueabihf/libkrb5support.so.0 (0x9e925000)libicudata.so.66 => /lib/arm-linux-gnueabihf/libicudata.so.66 (0x9ce57000)libgmodule-2.0.so.0 => /lib/arm-linux-gnueabihf/libgmodule-2.0.so.0 (0x9ce42000)libmount.so.1 => /lib/arm-linux-gnueabihf/libmount.so.1 (0x9cdf4000)libselinux.so.1 => /lib/arm-linux-gnueabihf/libselinux.so.1 (0x9cdca000)libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2 (0x9cdaa000)libpangoft2-1.0.so.0 => /lib/arm-linux-gnueabihf/libpangoft2-1.0.so.0 (0x9cd8c000)libthai.so.0 => /lib/arm-linux-gnueabihf/libthai.so.0 (0x9cd75000)liblz4.so.1 => /lib/arm-linux-gnueabihf/liblz4.so.1 (0x9cd4f000)libnsl.so.1 => /lib/arm-linux-gnueabihf/libnsl.so.1 (0x9cd2f000)libFLAC.so.8 => /lib/arm-linux-gnueabihf/libFLAC.so.8 (0x9ccfd000)libkeyutils.so.1 => /lib/arm-linux-gnueabihf/libkeyutils.so.1 (0x9cce8000)libblkid.so.1 => /lib/arm-linux-gnueabihf/libblkid.so.1 (0x9cca2000)libpcre2-8.so.0 => /lib/arm-linux-gnueabihf/libpcre2-8.so.0 (0x9cc2f000)libdatrie.so.1 => /lib/arm-linux-gnueabihf/libdatrie.so.1 (0x9cc1b000)

查看

发现链接的是编译器下面的,可能版本不是ffmpeg源码的版本,查看本机器有多少个这个

find / -name “libavformat*”

find / -name "libavformat*"/var/lib/dpkg/info/libavformat58:armhf.triggers/var/lib/dpkg/info/libavformat58:armhf.list/var/lib/dpkg/info/libavformat-dev:armhf.list/var/lib/dpkg/info/libavformat-dev:armhf.md5sums/var/lib/dpkg/info/libavformat58:armhf.md5sums/var/lib/dpkg/info/libavformat58:armhf.shlibs/var/lib/dpkg/info/libavformat58:armhf.symbolsfind: '/proc/969': No such file or directory/home/nano/ffmpeg-4.3.6/doc/libavformat.3/home/nano/ffmpeg-4.3.6/doc/examples/pc-uninstalled/libavformat-uninstalled.pc/home/nano/ffmpeg-4.3.6/doc/libavformat.pod.d/home/nano/ffmpeg-4.3.6/doc/libavformat.texi/home/nano/ffmpeg-4.3.6/doc/libavformat.pod/home/nano/ffmpeg-4.3.6/tests/fate/libavformat.mak/home/nano/ffmpeg-4.3.6/libavformat/home/nano/ffmpeg-4.3.6/libavformat/libavformat.so.58/home/nano/ffmpeg-4.3.6/libavformat/libavformat.pc/home/nano/ffmpeg-4.3.6/libavformat/libavformat.so/home/nano/ffmpeg-4.3.6/libavformat/libavformat.v/home/nano/ffmpeg-4.3.6/libavformat/libavformat.version/home/nano/ffmpeg-4.3.6/libavformat/libavformat.ver/home/nano/ffmpeg-4.3.6/libavformat/libavformat.a/usr/share/doc/libavformat-dev/usr/share/doc/libavformat58/usr/share/lintian/overrides/libavformat58/usr/lib/arm-linux-gnueabihf/libavformat.so.58/usr/lib/arm-linux-gnueabihf/libavformat.so/usr/lib/arm-linux-gnueabihf/libavformat.so.58.29.100/usr/lib/arm-linux-gnueabihf/pkgconfig/libavformat.pc/usr/lib/arm-linux-gnueabihf/libavformat.a/usr/include/arm-linux-gnueabihf/libavformat/usr/local/share/man/man3/libavformat.3/usr/local/lib/pkgconfig/libavformat.pc/usr/local/include/libavformat/opt/arm_ffmpeg/share/man/man3/libavformat.3/opt/arm_ffmpeg/lib/libavformat.so.58/opt/arm_ffmpeg/lib/libavformat.so/opt/arm_ffmpeg/lib/pkgconfig/libavformat.pc/opt/arm_ffmpeg/lib/libavformat.a/opt/arm_ffmpeg/lib/libavformat.so.58.45.100/opt/arm_ffmpeg/include/libavformat/opt/ffmpeg/share/man/man3/libavformat.3/opt/ffmpeg/lib/libavformat.so.58/opt/ffmpeg/lib/libavformat.so/opt/ffmpeg/lib/pkgconfig/libavformat.pc/opt/ffmpeg/lib/libavformat.a/opt/ffmpeg/lib/libavformat.so.58.45.100/opt/ffmpeg/include/libavformat

使用 objdumpnm 工具来检查 libavformat.so.58 中是否包含 avio_protocol_get_class 符号

查看交叉编译工具链接的如下,发现没有任何打印

nm -D /lib/arm-linux-gnueabihf/libavformat.so.58 | grep avio_protocol_get_class

查看源码编译下的,如下,发现有打印,

所以我的办法是把编译工具下的那个文件和源码下的文件做一个替换即可