linghu8812 / tensorrt_inference

696 stars 205 forks source link

crt/host_defines.h: No such file or directory #157

Open alicera opened 1 year ago

alicera commented 1 year ago

reproduce : build the docker

cmke ..
make -j4
compilation terminated.
compilation terminated.
yolov7/CMakeFiles/yolov7.dir/build.make:62: recipe for target 'yolov7/CMakeFiles/yolov7.dir/work/AI/YOLOv7/tensorrt_inference/code/src/common.cpp.o' failed
make[2]: *** [yolov7/CMakeFiles/yolov7.dir/work/AI/YOLOv7/tensorrt_inference/code/src/common.cpp.o] Error 1
arcface/CMakeFiles/arcface.dir/build.make:62: recipe for target 'arcface/CMakeFiles/arcface.dir/work/AI/YOLOv7/tensorrt_inference/code/src/common.cpp.o' failed
make[2]: *** [arcface/CMakeFiles/arcface.dir/work/AI/YOLOv7/tensorrt_inference/code/src/common.cpp.o] Error 1
alexnet/CMakeFiles/alexnet.dir/build.make:62: recipe for target 'alexnet/CMakeFiles/alexnet.dir/work/AI/YOLOv7/tensorrt_inference/code/src/common.cpp.o' failed
make[2]: *** [alexnet/CMakeFiles/alexnet.dir/work/AI/YOLOv7/tensorrt_inference/code/src/common.cpp.o] Error 1
CMakeFiles/Makefile2:1392: recipe for target 'yolov7/CMakeFiles/yolov7.dir/all' failed
make[1]: *** [yolov7/CMakeFiles/yolov7.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:237: recipe for target 'arcface/CMakeFiles/arcface.dir/all' failed
make[1]: *** [arcface/CMakeFiles/arcface.dir/all] Error 2
CMakeFiles/Makefile2:182: recipe for target 'alexnet/CMakeFiles/alexnet.dir/all' failed
make[1]: *** [alexnet/CMakeFiles/alexnet.dir/all] Error 2
In file included from /usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:19:0,
                 from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:16,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:16,
                 from /work/AI/YOLOv7/tensorrt_inference/project/../code/includes/model.h:9,
                 from /work/AI/YOLOv7/tensorrt_inference/project/../code/includes/classification.h:4,
                 from /work/AI/YOLOv7/tensorrt_inference/project/../code/includes/alexnet.h:4,
                 from /work/AI/YOLOv7/tensorrt_inference/project/../code/includes/build.h:8,
                 from /work/AI/YOLOv7/tensorrt_inference/code/src/build.cpp:5:
/usr/local/cuda/include/cuda_runtime_api.h:147:10: fatal error: crt/host_defines.h: No such file or directory
 #include "crt/host_defines.h"
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/factory.dir/build.make:62: recipe for target 'CMakeFiles/factory.dir/work/AI/YOLOv7/tensorrt_inference/code/src/build.cpp.o' failed
make[2]: *** [CMakeFiles/factory.dir/work/AI/YOLOv7/tensorrt_inference/code/src/build.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/factory.dir/all' failed
make[1]: *** [CMakeFiles/factory.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
heartworm1 commented 1 year ago

did you find solution?

alicera commented 1 year ago

not yet