1.
错误
CMakeFiles/opencv_example.dir/example.cpp.o:在函数‘main’中:
example.cpp:(.text+0x12c):对‘cv::imshow(cv::String const&, cv::_InputArray const&)’未定义的引用
example.cpp:(.text+0x21d):对‘cv::imshow(cv::String const&, cv::_InputArray const&)’未定义的引用
CMakeFiles/opencv_example.dir/example.cpp.o:在函数‘drawText(cv::Mat&)’中:
example.cpp:(.text+0x3fe):对‘cv::putText(cv::InputOutputArray const&, cv::String const&, cv::Point, int, double, cv::Scalar_, int, int, bool)’未定义的引用
CMakeFiles/opencv_example.dir/example.cpp.o:在函数‘cv::String::String(char const*)’中:
example.cpp:(.text._ZN2cv6StringC2EPKc[_ZN2cv6StringC5EPKc]+0x4d):对‘cv::String::allocate(unsigned long)’未定义的引用
CMakeFiles/opencv_example.dir/example.cpp.o:在函数‘cv::String::~String()’中:
example.cpp:(.text._ZN2cv6StringD2Ev[_ZN2cv6StringD5Ev]+0x14)
cmake编译opencv报错
最新推荐文章于 2024-07-08 00:07:50 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)