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

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


Hi,

This patch is based on the original work done by Timo Rothenpieler, and his patch for static linking with libnpp:
[http://ffmpeg.org/pipermail/ffmpeg-devel/2016-June/195078.html](https://ffmpeg.org/pipermail/ffmpeg-devel/2016-June/195078.html)

Based in my recomendations now it's possible to link directly to libnpp* libraries without linking to the CUDA SDK:
[http://trac.ffmpeg.org/ticket/6405](https://trac.ffmpeg.org/ticket/6405)
http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=2d978d1c721ae69a9007b530153067736d4ddc79

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

Regards.
A.H.
-------------- 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