[FFmpeg-devel] [PATCH] configure: support static libnpp [v2]
h.leppkes at gmail.com
Fri Jun 2 12:04:20 EEST 2017
On Fri, Jun 2, 2017 at 10:56 AM, Andreas Håkon
<andreas.hakon at protonmail.com> wrote:
> This patch is based on the original work done by Timo Rothenpieler, and his patch for static linking with libnpp:
> Based in my recomendations now it's possible to link directly to libnpp* libraries without linking to the CUDA SDK:
> Then I created an updated version of the patch.
> By default the linking is the regular dynamic link (aka "--disable-libnpp-static" config).
> However, if you like to compile statically with "libnpp*_static.a" then add these parameters:
> $ configure ... --enable-nonfree --enable-libnpp --enable-libnpp-static --enable-cuda --extra-cflags="-I/usr/local/cuda/include/" --extra-ldflags="-L/usr/local/cuda/lib64/"
> This assumes the CUDA SDK is installed in "/usr/local/cuda".
I don't like that there is a separate configure option. We can link to
other libraries dynamically or statically depending on what is found,
without needing two configure options per library.
More information about the ffmpeg-devel