xyzhai-pro
xyzhai-pro
Look forward to your reply.
after:add #define OPENCV the question is below: CMakeFiles\helloworld.dir/objects.a(QtGuiDemo.cpp.obj): In function `ZN9QtGuiDemoD2Ev': [build] C:/Users/zxy/Desktop/test/Yolov4-QtGUI/QtGuiDemo/QtGuiDemo.cpp:31: undefined reference to `Detector::~Detector()' [build] CMakeFiles\helloworld.dir/objects.a(QtGuiDemo.cpp.obj): In function `ZN9QtGuiDemo13init_detectorEv': [build] C:/Users/zxy/Desktop/test/Yolov4-QtGUI/QtGuiDemo/QtGuiDemo.cpp:38: undefined reference to `Detector::Detector(std::__cxx11::basic_string, std::__cxx11::basic_string, int)'...
The Lib directory is a static link library。 When "target_link_libraries", we only link the bin or the lib, is right?