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

I am trying to complie the library from the git repo.

DeepStream-Yolo/YOLOv7.md at master · marcoslucianops/DeepStream-Yolo · GitHub.

I am using the docker container deepstream6.1_samples. When try to complie the following command, I get the error.
CUDA_VER=11.6 make -C nvdsinfer_custom_impl_Yolo

Error

root@57dde0ad4ca3:/workspace# CUDA_VER=11.6 make -C nvdsinfer_custom_impl_Yolo
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'

Hi @kuppasaisriteja This topic is duplicated with Fatal error: crt/host_defines.h: No such file or directory, we’ll come back soon on that one.

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