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

Reindl Harald h.reindl at thelounge.net
Tue Aug 15 16:43:57 EEST 2017

Am 15.08.2017 um 04:00 schrieb Ted Lum:
> On 8/14/2017 4:49 AM, Carl Eugen Hoyos wrote:
>> If you want any of the external dependencies of FFmpeg (like
>> x264 or in your case libopenjpeg) linked statically, remove the
>> .so symlink from the x264/libopenjpeg or the /usr/local/lib*
>> directory.
>> Carl Eugen
> Thanks. The problem really is more with OpenJPEG. They were messing with 
> the build flags in response to a users "enhancement request". It seems 
> like you can't really disable building and installing the shared 
> libraries. So, if you want a static link you just have to delete them. 
> Everything is working as expected now.

well, and that's why building packages
go back in the thread where i showed you how to get x264 static linked

the way it's built it never collides with the system packages and the 
way it's linked in the ffmpeg build it's using the correct library

after that setup works you just replace the tarball and change versions 
in the spec files and build the stuff just in the right order, 
reproduceable forever

[root at buildserver:~]$ rpm -q --filesbypkg 
x264-latest               /usr/local/x264/libx264.a
x264-latest               /usr/local/x264/x264.h
x264-latest               /usr/local/x264/x264_config.h

More information about the ffmpeg-user mailing list