enazoe / yolo-tensorrt

TensorRT8.Support Yolov5n,s,m,l,x .darknet -> tensorrt. Yolov4 Yolov3 use raw darknet *.weights and *.cfg fils. If the wrapper is useful to you,please Star it.
MIT License
1.18k stars 313 forks source link

Error while linking libdetector.so #40

Closed xNeorem closed 4 years ago

xNeorem commented 4 years ago

Hello, I got this error in compiling :

../../src_file/libdetector.so: undefined reference to `cv::dnn::dnn4_v20190621::blobFromImages(cv::InputArray const&, double, cv::Size, cv::Scalar_ const&, bool, bool, int)'

I think that I am linking wrong the library in my own project, how can I link correctly?

I am using a MakeFile not cmake...Can you give me an example of how to import and use the library and use it in your project?

enazoe commented 4 years ago

@xNeorem sry, I know little about makefile. I think you could reference this cmake file https://github.com/enazoe/yolo-tensorrt/blob/master/scripts/CMakeLists.txt .It is a example of use libdetector.so in your own project through set the lib path.

xNeorem commented 4 years ago

Thanks, i used your cmakelist and it worked