title: Unable to compile ffmpeg to support NVIDIA hardware acceleration
body: <p>I am trying to compile ffmpeg to support NVIDIA hardware acceleration. But I am getting the following errors:</p>
  
  <pre><code>libavcodec/cuvid.c: In function ‘check_cu’:
  libavcodec/cuvid.c:83:5: error: implicit declaration of function ‘cuGetErrorName’ [-Werror=implicit-function-declaration]
       cuGetErrorName(err, &amp;err_name);
       ^
  libavcodec/cuvid.c:84:5: error: implicit declaration of function ‘cuGetErrorString’ [-Werror=implicit-function-declaration]
       cuGetErrorString(err, &amp;err_string);
  </code></pre>
  
  <p>I have installed CUDA by following the instruction on NVIDIA Developer forum. The configuration I used is:</p>
  
  <pre><code>./configure --enable-nonfree --enable-nvenc --enable-cuda --enable-cuvid --enable-libx264 --enable-gpl
  </code></pre>
  
  <p>The GPU on my laptop is NVIDIA Corporation GM108M [GeForce 840M].</p>