Unable to make libnvdsinfer_custom_impl_Yolo.so on Jetpack 4.6

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Xavier NX2
• DeepStream Version 6.0
• JetPack Version (valid for Jetson only) 4.6
• TensorRT Version 8
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs) bugs
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing) make the libnvdsinfer_custom_impl_Yolo.so in objectDetectorYolo/
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
I’m trying to make the libnvdsinfer_custom_impl_Yolo.so to run the YOLOv3 model but i’m getting this error :
g++ -c -o nvdsinfer_yolo_engine.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I…/…/includes -I/usr/local/cuda-10.2/include nvdsinfer_yolo_engine.cpp
In file included from yoloPlugins.h:28:0,
from nvdsinfer_yolo_engine.cpp:25:
/usr/local/cuda-10.2/include/cuda_runtime_api.h:138:10: fatal error: crt/host_defines.h: No such file or directory
#include “crt/host_defines.h”
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:51: recipe for target ‘nvdsinfer_yolo_engine.o’ failed
make: *** [nvdsinfer_yolo_engine.o] Error 1

If system is installed competely , there is /usr/local/cuda-10.2/targets/aarch64-linux/include/crt/host_defines.h .
You need to check if your system gets all components installed, e.g. CUDA

$ dpkg -l | grep -i cuda
ii cuda-command-line-tools-10-2 10.2.460-1 arm64 CUDA command-line tools
ii cuda-compiler-10-2 10.2.460-1 arm64 CUDA compiler
ii cuda-cudart-10-2 10.2.300-1 arm64 CUDA Runtime native Libraries
ii cuda-cudart-dev-10-2 10.2.300-1 arm64 CUDA Runtime native dev links, headers
ii cuda-cuobjdump-10-2 10.2.300-1 arm64 CUDA cuobjdump
ii cuda-cupti-10-2 10.2.300-1 arm64 CUDA profiling tools runtime libs.
ii cuda-cupti-dev-10-2 10.2.300-1 arm64 CUDA profiling tools interface.
ii cuda-documentation-10-2 10.2.300-1 arm64 CUDA documentation
ii cuda-driver-dev-10-2 10.2.300-1 arm64 CUDA Driver native dev stub library
ii cuda-gdb-10-2 10.2.300-1 arm64 CUDA-GDB
ii cuda-libraries-10-2 10.2.460-1 arm64 CUDA Libraries 10.2 meta-package
ii cuda-libraries-dev-10-2 10.2.460-1 arm64 CUDA Libraries 10.2 development meta-package
ii cuda-memcheck-10-2 10.2.300-1 arm64 CUDA-MEMCHECK
ii cuda-nvcc-10-2 10.2.300-1 arm64 CUDA nvcc
ii cuda-nvdisasm-10-2 10.2.300-1 arm64 CUDA disassembler
ii cuda-nvgraph-10-2 10.2.300-1 arm64 NVGRAPH native runtime libraries
ii cuda-nvgraph-dev-10-2 10.2.300-1 arm64 NVGRAPH native dev links, headers
ii cuda-nvml-dev-10-2 10.2.300-1 arm64 NVML native dev links, headers
ii cuda-nvprof-10-2 10.2.300-1 arm64 CUDA Profiler tools
ii cuda-nvprune-10-2 10.2.300-1 arm64 CUDA nvprune
ii cuda-nvrtc-10-2 10.2.300-1 arm64 NVRTC native runtime libraries
ii cuda-nvrtc-dev-10-2 10.2.300-1 arm64 NVRTC native dev links, headers
ii cuda-nvtx-10-2 10.2.300-1 arm64 NVIDIA Tools Extension
ii cuda-samples-10-2 10.2.300-1 arm64 CUDA example applications
ii cuda-toolkit-10-2 10.2.460-1 arm64 CUDA Toolkit 10.2 meta-package
ii cuda-tools-10-2 10.2.460-1 arm64 CUDA Tools meta-package
ii cuda-visual-tools-10-2 10.2.460-1 arm64 CUDA visual tools

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.