[Libav-user] statically linking x264 and x265 into ffmpeg
Carl Eugen Hoyos
ceffmpeg at gmail.com
Tue Sep 6 13:00:19 EEST 2016
2016-09-06 10:14 GMT+02:00 Peter Steinbach <steinbach at scionics.de>:
> I then build ffmpeg with the following flags:
> $ ./configure --prefix=/tmp/master-x264-x265-minimal --enable-static
> --enable-pic --disable-everything --disable-programs --enable-libx264
> --enable-libx265 --enable-gpl
--enable-static has no effect and does not imply static linking.
Are you sure that you have no dynamic libraries for x264 or
x265 anywhere in the path: Most linkers will prefer them
over static libraries. An alternative is using "/path/to/lib.a" on
the linking line instead of "-L/path/to -llib".
You may want to use "ldd" to test for dynamic libraries.
Do you know what "--disable-everything" does?
It is a debug option, you should never use it for anything
that you distribute, use --disable-all instead (if you need
it), it implies --disable-programs.
Just curious: Does --enable-pic really have an effect?
Which platform is this?
Carl Eugen
More information about the Libav-user
mailing list