OpenCV 相关报错

来源:互联网 发布:斯巴达英雄java游戏 编辑:程序博客网 时间:2024/06/12 09:24

一,  undefined reference to `cv::ocl::integral(cv::ocl::oclMat const&, cv::ocl::oclMat&)'


I solved this problem by change the order of target_link_libraries, like this:TARGET_LINK_LIBRARIES( test ${OpenCV_LIBS} ${catkin_LIBRARIES}OpenCV first, then catkin


change the order of target_link_libraries

把OpenCV lib 放在前面

target_link_libraries(homography ${OpenCV_LIBRARIES} ${catkin_LIBRARIES} )