zoukankan      html  css  js  c++  java
  • opencv linux

    This link which you also mentioned describes the necessary steps to compile OpenCV on your machine. The version of OpenCV you install this way will be newer than the one installed with the ROS package, they usually have some delay. (Maybe not with Fuerte.)

    Using multiple versions of the same library on a machine might cause problems with linking and it will create a bit of headache for you so I would avoid it.

    Try running pkg-config opencv --libs to see if the ROS version pulled by Fuerte is available and you can use this with your projects later on.

    For a starter IDE I would recommend Qt Creator. The easy way to set OpenCV up with your project in Qt Creator is the following:

        Create a project
        Open the .pro file of the project
        Run pkg-config opencv --cflags
        Add this to the .pro file: INCLUDEPATH += __result__of__above
        pkg-config opencv --libs
        Add this to the .pro file: LIBS += __result__of__above

    In the end what you add should look something like this:

    INCLUDEPATH += -I/opt/ros/fuerte/include

    LIBS += -L/opt/ros/fuerte/lib -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_nonfree -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_ts -lopencv_video -lopencv_videostab

    脚本

    https://github.com/wzyuliyang/Install-OpenCV/blob/master/Ubuntu/2.4/opencv2_4_9.sh

    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    table中tr间距的设定table合并单元格 colspan(跨列)和rowspan(跨行)
    使用jquery触发a标签跳转
    真正的让iframe自适应高度 兼容多种浏览器随着窗口大小改变
    html5 data属性的使用
    jQuery取得select选择的文本与值
    jqueryui教程
    密码复杂度
    zabbix配置微信报警
    tomcat配置域名访问
    阿里云ecs禁止ping,禁止telnet
  • 原文地址:https://www.cnblogs.com/yuliyang/p/4002235.html
Copyright © 2011-2022 走看看