ros找不到OpenCV,路径/ usr / local / [英] ros can't find OpenCV , the path /usr/local/

查看:3136
本文介绍了ros找不到OpenCV,路径/ usr / local /的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与ros和OpenCV合作。我在默认路径 / usr / local 中安装了OpenCV,但是当我在我的工作站中使用catkin_make构建程序时,它显示Project cv_bridge 指定 / usr / include / opencv 为未找到的include dir。

I am working with ros and OpenCV. I installed OpenCV in the default path /usr/local, but when I build programs with catkin_make in my workstation, it shows Project cv_bridge specifies /usr/include/opencv as an include dir, which is not found.

你能告诉我我该如何解决这个问题?谢谢。

Can you show me what can I do to solve the problem? Thank you.

推荐答案

我发现你说你使用catkin_make,所以在新版本的ROS中,opencv和pcl不再集成在ROS中,所以你需要找到你opencv自己。例如,在您的工作区中的 CMakeLists.txt 文件中,应该添加 find_package(OpenCV REQUIRED),并添加include dir和libs到您的项目。如果您也遇到问题,请粘贴您的错误详细信息。

I found you said you use catkin_make, so in new version of ROS, opencv and pcl are no longer integrate in ROS, so you need find you opencv yourself. For example, in your workspace, the CMakeLists.txt file, you should add something like find_package(OpenCV REQUIRED), and add include dir and libs to your project. If you also have problems, please paste your details of errors.

这篇关于ros找不到OpenCV,路径/ usr / local /的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆