nanmi / YOLOX-deepstream

deploy yolox algorithm use deepstream
89 stars 27 forks source link

nvdsparsebbox_yolox.cpp:26:10: fatal error: nvdsinfer_custom_impl.h: No such file or directory #3

Closed Abandon-ht closed 3 years ago

Abandon-ht commented 3 years ago

make

g++ -c -o nvdsparsebbox_yolox.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I../../includes -I/usr/local/cuda-10.2/include -I/home/nvidia/data/zhangbo/library/opencv-4.5.1/include/opencv4 -I/usr/lib/gcc/x86_64-linux-gnu/7/include/ -fopenmp nvdsparsebbox_yolox.cpp nvdsparsebbox_yolox.cpp:25:10: fatal error: opencv2/opencv.hpp: No such file or directory 25 | #include <opencv2/opencv.hpp> | ^~~~~~~~ compilation terminated. make: *** [Makefile:43: nvdsparsebbox_yolox.o] Error 1

Then i

sudo ln -s /usr/include/opencv4/opencv2 /usr/include/

but

g++ -c -o nvdsparsebbox_yolox.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I../../../includes -I/usr/local/cuda-10.2/include -I/home/nvidia/data/zhangbo/library/opencv-4.5.1/include/opencv4 -I/usr/lib/gcc/x86_64-linux-gnu/7/include/ -fopenmp nvdsparsebbox_yolox.cpp nvdsparsebbox_yolox.cpp:26:10: fatal error: nvdsinfer_custom_impl.h: No such file or directory 26 | #include "nvdsinfer_custom_impl.h" | ^~~~~~~~~ compilation terminated. make: *** [Makefile:43: nvdsparsebbox_yolox.o] Error 1

Abandon-ht commented 3 years ago

I try to compile with yolov5-deepstream's Makefile, Compiled successfully

tulbureandreit commented 2 years ago

@Abandon-ht can you provide details? I have the same problem right now.

tulbureandreit commented 2 years ago

@Abandon-ht probably the ../includes paths were not ok for you. inside the Makefile