Hi,
The error comes from the missing header.
Please add the TensorRT path into the include parameter.
And the path should be end in …/lib or …/inlcude.
For example
CUDA_VER:=10.0
CC:= g++
CFLAGS:= -Wall -Werror -std=c++11 -shared -fPIC
CFLAGS+= -I../../includes -I/usr/local/cuda-$(CUDA_VER)/include <b>-I/home/nvidia/TensorRT-5.1.3.6/include</b>
LIBS:= -lnvinfer -lnvparsers -L/usr/local/cuda-$(CUDA_VER)/lib64 -lcudart -lcublas <b>-L/home/nvidia/TensorRT-5.1.3.6/lib</b>
LFLAGS:= -Wl,--start-group $(LIBS) -Wl,--end-group
SRCFILES:= nvdsparsebbox_ssd.cpp nvdsiplugin_ssd.cpp
TARGET_LIB:= libnvdsinfer_custom_impl_ssd.so
all: $(TARGET_LIB)
$(TARGET_LIB) : $(SRCFILES)
$(CC) -o $@ $^ $(CFLAGS) $(LFLAGS)
clean:
rm -rf $(TARGET_LIB)
Thanks.