Ffmpeg fails to build on ubuntu linux with cuda 11.2

When I try to build ffmpeg following this instruction:
https://developer.download.nvidia.com/designworks/ffmpeg/secure/Using_FFmpeg_with_NVIDIA_GPU_Hardware_Acceleration_v01.4.pdf?64ijjPUtWwEl6U_nUulM39q_O8qYO5liPrdpo-FLR-HdmwtCUYkk4uKhxlzQfmqkHT9yIOItPK2VwDKVjYNDbmqP6b92tpkWyOnL8WdboAS0e7wTjBVd7O0Tw-Xk1zlHAaymy5khbPtm7vNQi2i6OBIlbzgnFg1FJsxFbVO4FiW7aDJKYFa_Rh65Mv27QM0vUqO1AV4

I get this error:

stiv@gaidar:~/ffmpeg$ ./configure --enable-nonfree -–enable-cuda-sdk –enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
Unknown option "-–enable-cuda-sdk".

How can I fix that? My hardware info:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03    Driver Version: 460.32.03    CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GTX 108...  Off  | 00000000:1F:00.0 Off |                  N/A |
|  0%   40C    P8    11W / 260W |     18MiB / 11176MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1117      G   /usr/lib/xorg/Xorg                  9MiB |
|    0   N/A  N/A      1210      G   /usr/bin/gnome-shell                6MiB |
+-----------------------------------------------------------------------------+
1 Like

you should use

--enable-cuda-sdk

instead of

-–enable-cuda-sdk

also

--enable-libnpp

You’re using illegal characters instead of minus(-) signs…

1 Like

Yeah, thank you friend, copy-pasting from web site is dangerous because of these chars.

same here, dash-dash solved