I am trying to compile the libva library with nVideo Codec SDK support according to the instructions at: https://developer.nvidia.com/ffmpeg
I installed the nvidia-396 driver and the CUDA according to the instructions. I found I also needed to install nvidia-cuda-dev as it wasn’t already installed. I also had to modify the configure command to include the nvidia-396 library directory. The command I am using is:
./configure --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags='-L/usr/local/cuda/lib64 -L/usr/lib/nvidia-396'
However, it gives me the error:
ERROR: NVENCAPI_MAJOR_VERSION >= 6 not satisfied
In the config.log it reports
fatal error: nvEncodeAPI.h: No such file or directory
Any idea how to proceed from here? I am building on Ubuntu 16.04.