[FFmpeg-user] ffmpeg built static, yet "libopenjp2.so.7: cannot open shared object file"

Reindl Harald h.reindl at thelounge.net
Sun Aug 13 01:00:30 EEST 2017



Am 12.08.2017 um 22:27 schrieb Moritz Barsnick:
> On Fri, Aug 11, 2017 at 16:27:16 -0700, tlum wrote:
>> I'm having trouble adding OpenJPEG to my ffmpeg build. I'm doing a static
>> build, still I'm getting:
>>
>> ffmpeg: error while loading shared libraries: libopenjp2.so.7: cannot open shared object file: No such file or directory
> 
> So apparently, ffmpeg isn't static after all

it's nearly impossible to get it completly static, most distributions 
just don't ship the needed static bits of libraries

that below is a "static" ffmpeg while x264 is in fact static linked 
because built so at my own but doing that for the rest is more or less 
impossible or not worth the work

people really should stick at distribution packages or when build at 
their own get some basics right

[harry at srv-rhsoft:~]$ ldd /usr/local/bin/ffmpeg
         linux-vdso.so.1 (0x00007ffc4f3c9000)
         libdl.so.2 => /lib64/libdl.so.2 (0x00007f599217c000)
         libvdpau.so.1 => /lib64/libvdpau.so.1 (0x00007f5991f78000)
         libva.so.1 => /lib64/libva.so.1 (0x00007f5991d58000)
         libva-x11.so.1 => /lib64/libva-x11.so.1 (0x00007f5991b52000)
         libX11.so.6 => /lib64/libX11.so.6 (0x00007f5991813000)
         libva-drm.so.1 => /lib64/libva-drm.so.1 (0x00007f5991610000)
         libssl.so.10 => /lib64/libssl.so.10 (0x00007f599139e000)
         libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f5990f3d000)
         libx265.so.79 => /lib64/libx265.so.79 (0x00007f59909ea000)
         libvpx.so.4 => /lib64/libvpx.so.4 (0x00007f59905e1000)
         libm.so.6 => /lib64/libm.so.6 (0x00007f59902d8000)
         libtheoraenc.so.1 => /lib64/libtheoraenc.so.1 (0x00007f5990097000)
         libtheoradec.so.1 => /lib64/libtheoradec.so.1 (0x00007f598fe7c000)
         libmp3lame.so.0 => /lib64/libmp3lame.so.0 (0x00007f5994132000)
         liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f598fc56000)
         libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f598fa46000)
         libz.so.1 => /lib64/libz.so.1 (0x00007f598f830000)
         libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f598f619000)
         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f598f3fb000)
         libc.so.6 => /lib64/libc.so.6 (0x00007f598f035000)
         /lib64/ld-linux-x86-64.so.2 (0x00007f5993fde000)
         libXext.so.6 => /lib64/libXext.so.6 (0x00007f598ee23000)
         libXfixes.so.3 => /lib64/libXfixes.so.3 (0x00007f598ec1d000)
         libdrm.so.2 => /lib64/libdrm.so.2 (0x00007f598ea0c000)
         libxcb.so.1 => /lib64/libxcb.so.1 (0x00007f598e7e4000)
         libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 
(0x00007f598e597000)
         libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f598e2b1000)
         libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f598e0ad000)
         libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f598de7c000)
         librt.so.1 => /lib64/librt.so.1 (0x00007f598dc74000)
         libnuma.so.1 => /lib64/libnuma.so.1 (0x00007f598da69000)
         libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f598d6e1000)
         libogg.so.0 => /lib64/libogg.so.0 (0x00007f598d4da000)
         libmvec.so.1 => /lib64/libmvec.so.1 (0x00007f598d2b0000)
         libgomp.so.1 => /lib64/libgomp.so.1 (0x00007f598d082000)
         libXau.so.6 => /lib64/libXau.so.6 (0x00007f598ce7e000)
         libkrb5support.so.0 => /lib64/libkrb5support.so.0 
(0x00007f598cc6f000)
         libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f598ca6b000)
         libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f598c850000)
         libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f598c629000)
         libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f598c3b7000)


More information about the ffmpeg-user mailing list