[FFmpeg-devel] [PATCH] configure: support static libnpp [v2]

Andreas HÃ¥kon andreas.hakon at protonmail.com
Fri Jun 2 11:56:41 EEST 2017


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".

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-configure-support-static-libnpp-v2.patch.txt
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170602/0a3ef6ec/attachment.txt>

More information about the ffmpeg-devel mailing list