[Libav-user] statically linking x264 and x265 into ffmpeg

Peter Steinbach steinbach at scionics.de
Tue Sep 6 15:18:33 EEST 2016


Alright, so this
```
./configure --prefix=/tmp/ffmpeg --disable-programs --enable-pic 
--enable-static --enable-libx264 --enable-libx265 --enable-gpl 
--extra-ldflags="/home/steinbac/software/x264/master-static/lib/libx264.a 
/home/steinbac/software/x265/master-static/lib/libx265.a"
```

generates the static libraries I wanted and it contains x264/x265 symboles.

I checked libavcodec with nm, and I see stuff like this:
$ nm libavcodec.a|grep ff_hevc_transform_add16_10_sse2
0000000000002810 T ff_hevc_transform_add16_10_sse2
                  U ff_hevc_transform_add16_10_sse2

Which I found a bit weird as the function call is declared as undefined 
and as found in the .text section. I'll check downstream now, if my 
project can such that up without having to link against libx264/libx265 
as well.

Let me do some more checks, before I sign this thread off. ;)
Thanks for the help so far.

Best,
Peter


More information about the Libav-user mailing list