There was one thing that I have noticed. When I clear the cache of gstreamer-1.0 using rm ${HOME}/.cache/gstreamer-1.0/registry.x86_64.bin command, and then if I run I get some warnings but I am not sure if it’s because of those warnings that I am getting the error.
(gst-plugin-scanner:7497): GStreamer-WARNING **: 13:30:16.889: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so': libtritonserver.so: cannot open shared object file: No such file or directory
(gst-plugin-scanner:7497): GStreamer-WARNING **: 13:30:16.895: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_infer.so': libcublas.so.11: cannot open shared object file: No such file or directory
(gst-plugin-scanner:7497): GStreamer-WARNING **: 13:30:16.904: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferaudio.so': libcublas.so.11: cannot open shared object file: No such file or directory
(gst-plugin-scanner:7497): GStreamer-WARNING **: 13:30:16.909: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_deepstream_bins.so': libcublas.so.11: cannot open shared object file: No such file or directory
(gst-plugin-scanner:7497): GStreamer-WARNING **: 13:30:16.909: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so': librivermax.so.0: cannot open shared object file: No such file or directory
(gst-plugin-scanner:7497): GStreamer-WARNING **: 13:30:16.934: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_ucx.so': libucs.so.0: cannot open shared object file: No such file or directory
** ERROR: <create_primary_gie_bin:129>: Failed to create 'primary_gie'
** ERROR: <create_primary_gie_bin:193>: create_primary_gie_bin failed
** ERROR: <create_pipeline:1576>: create_pipeline failed
** ERROR: <main:697>: Failed to create pipeline
Quitting
nvstreammux: Successfully handled EOS for source_id=0
nvstreammux: Successfully handled EOS for source_id=1
App run failed
Please follow the link I posted earlier to install the relevant dependencies step by step. You can also use the ldd /opt/nvidia/deepstream/deepstream/lib/gst-plugins/libnvdsgst_infer.so command to verify which dependency libraries are missing.
I ran the command to check the missing libraries and it seems there’s this one library related to libcublas that is not found.
I had followed the exact same steps but I’m not sure how it got missed.
So, how do I fulfil this missing library. Like I have to download it and include it in some folder or there’s a direct command to do it??
Here’s the output of the command(ldd /opt/nvidia/deepstream/deepstream/lib/gst-plugins/libnvdsgst_infer.so) that I ran:
From the log above, it appears that you have not installed the cuda environment properly.
Please install the CUDA and driver step by step: install-cuda-toolkit-12-1.
But even while following the installations for CUDA and driver step by step for some reason these library files libcublas.so.11 and libcublasLt.so.11 were not getting downloaded.
So, to actually resolve this issue, I had to download the library files manually and then copy them to /usr/local/cuda/lib64/