I’m trying to compile a static binary of ffmpeg, using a nvidia/cuda:10.0-devel-ubuntu18.04 docker image.
I can successfully compile a dynamically-linked version, using:
--extra-cflags="-I/usr/local/cuda/include/" \ --extra-ldflags="-L/usr/local/cuda/lib64/"
But when I try to compile statically, with the arguments below…
--extra-cflags="-I/usr/local/cuda/include/ --static" \ --extra-ldflags="-L/usr/local/cuda/lib64/ --static"
Then ./configure fails with:
ERROR: cuda_sdk not found
https://hub.docker.com/r/nvidia/cuda/ says that the “devel” tag includes static headers, should I have expected this compile to work, or am I missing something?