Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alicera opened this issue Oct 28, 2022 · 2 comments
Open

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

alicera opened this issue Oct 28, 2022 · 2 comments

Comments

@alicera
Copy link

alicera commented Oct 28, 2022

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
Copy link

did you find solution?

@alicera
Copy link
Author

alicera commented Feb 28, 2023

not yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants