undefined reference to `cv::resize
undefined reference to `cv::resize
../../dependencies/OpenCV348/lib/libopencv_imgcodecs.so: undefined reference to `cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, double, double, int)'
../../dependencies/OpenCV348/lib/libopencv_imgcodecs.so: undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
原因:
缺少 libopencv_imgproc.so
解决方法:
${OpenCV_DIR}/lib/libopencv_imgproc.so
SET(OpenCV_LIB
${OpenCV_DIR}/lib/libopencv_core.so
#${OpenCV_DIR}/lib/libopencv_highgui.so
${OpenCV_DIR}/lib/libopencv_imgcodecs.so
${OpenCV_DIR}/lib/libopencv_imgproc.so
)
文章来源: blog.csdn.net,作者:网奇,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/jacke121/article/details/116658325
- 点赞
- 收藏
- 关注作者
评论(0)