Fatal error: crt/host_defines.h: No such file or directory

I am trying to implement and run yolov7 from the github repo.

I am running this command inside the docker of deepstream-6.1-samples.

when i try to complie the lib with command.

CUDA_VER=11.6 make -C nvdsinfer_custom_impl_Yolo

I get the error

make: Entering directory '/workspace/nvdsinfer_custom_impl_Yolo'
g++ -c  -o utils.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I/opt/nvidia/deepstream/deepstream/sources/includes -I/usr/local/cuda-11.6/include utils.cpp
In file included from /usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:56,
                 from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from utils.h:36,
                 from utils.cpp:26:
/usr/local/cuda-11.6/include/cuda_runtime_api.h:147:10: fatal error: crt/host_defines.h: No such file or directory
  147 | #include "crt/host_defines.h"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:70: utils.o] Error 1
make: Leaving directory '/workspace/nvdsinfer_custom_impl_Yolo'

Please use image deepstream:6.1-devel.

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