Gst-plugins Make fails

Please provide complete information as applicable to your setup.

**• Hardware Platform dGPU)
**• DeepStream Version 5.0 (docker)
• TensorRT Version
**• NVIDIA GPU Driver Version 440.64

I am trying to build gst-plugins / gst-dsexample

export CUDA_VER=10.2
> gstdsexample.h:33:10: fatal error: cuda.h: No such file or directory
> #include <cuda.h>

nvidia-smi
Tue Jun 16 20:30:09 2020
±----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64.00 Driver Version: 440.64.00 CUDA Version: 10.2 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce RTX 208… On | 00000000:65:00.0 Off | N/A |
| 0% 34C P8 12W / 300W | 26MiB / 11016MiB | 0% Default |
±------------------------------±---------------------±---------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+

bump

I faced a similar issue but it turned out I was using the base image. The base version does not have the libraries required to make the plugins.
Instead when I used the development image nvcr.io/nvidia/deepstream:5.0-dp-20.04-devel it all worked fine.

Have you tried this?

1 Like

Can you find cuda.h under
/usr/local/cuda/include/cuda.h

I can only find (/usr/local/cuda/ :
LICENSE README compat doc lib64 targets version.txt

Can you find /usr/local/cuda/targets/x86_64-linux/include? if can, you could create one soft link,
sudo ln -s /usr/local/cuda/targets/x86_64-linux/include /usr/local/cuda/include
if you can not, you need to reinstall cuda.

I never installed cuda in the docker image , do I have to ?
May be we need to update README for the same

You can use nvcr.io/nvidia/deepstream:5.0-dp-20.04-devel for direct use,
different docker have different purpose.

1 Like