yolo-tensorrt icon indicating copy to clipboard operation
yolo-tensorrt copied to clipboard

fatal error: Nvinfer.h: No such file or directory

Open calmhlynn opened this issue 4 years ago • 4 comments

i'm trying to branch TRT8 with Jetson Xavier NX(jetpack 4.6)

Scanning dependencies of target detector [ 4%] Building CXX object CMakeFiles/detector.dir/modules/calibrator.cpp.o In file included from /home/user/yolo-tensorrt/modules/trt_utils.h:47:0, from /home/user/yolo-tensorrt/modules/ds_image.h:28, from /home/user/yolo-tensorrt/modules/calibrator.h:29, from /home/user/yolo-tensorrt/modules/calibrator.cpp:26: /home/user/yolo-tensorrt/modules/plugin_factory.h:35:10: fatal error: Nvinfer.h: No such file or directory #include "Nvinfer.h" ^~~~~~~~~~~ compilation terminated.

this error occurs when i build it. how can i fix it?

calmhlynn avatar Aug 18 '21 08:08 calmhlynn

You must install the libnvinfer-plugin-dev : sudo apt install libnvinfer-plugin-dev -y

adrianosantospb avatar Aug 20 '21 14:08 adrianosantospb

#include "Nvinfer.h" -> #include "NvInfer.h" "I" changed lower case to upper case

It works, thank u

bkykent avatar Sep 02 '21 08:09 bkykent

@bkykent I tried as you said, but I meet a new problem, Could you please give me some advice? The problem is show as below: IMG_20211101_144123 IMG_20211101_144201

electronicYH avatar Nov 01 '21 06:11 electronicYH

@bkykent it works, thank u

MHGL avatar Nov 05 '21 07:11 MHGL