安装完opencv和opencv-contrib,开心的编译darknet YOLOv4,发现出现了
obj/image_opencv.o:在函数‘load_image_mat_cv’中:
image_opencv.cpp:(.text+0x2fc):对‘cv::imread(cv::String const&, int)’未定义的引用
image_opencv.cpp:(.text+0x304):对‘cv::String::deallocate()’未定义的引用
image_opencv.cpp:(.text+0x10db):对‘cv::String::deallocate()’未定义的引用
obj/image_opencv.o:在函数‘create_window_cv’中:
image_opencv.cpp:(.text+0x2544):对‘cv::namedWindow(cv::String const&, int)’未定义的引用
...
image_opencv.cpp:(.text._ZN2cv6StringC2EPKc[_ZN2cv6StringC5EPKc]+0x30):对‘cv::String::allocate(unsigned long)’未定义的引用
obj/http_stream.o:在函数‘MJPG_sender::write(cv::Mat const&)’中:
http_stream.cpp:(.text._ZN11MJPG_sender5writeERKN2cv3MatE[_ZN11MJPG_sender5writeERKN2cv3MatE]+0x1d6):对‘cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&am