zoukankan      html  css  js  c++  java
  • ubuntu 11.10 (64bit) install opencv 2.4.8 and run in Qtcreator

    install gtk2+ sudo apt-get install libgtk2.0*
    sudo apt-get install cmake-qt-gui

    tar xzvf opencv-2.4.8.tar.gz

    mkdir build in the ~ dir the opencv-2.4.8 in the same ~ dir run cmake-qt-gui

    cd to the build dir run make if the error (2.4.8)error:   /opencv248/opencv-2.4.8/cmake/cl2cpp.cmake:50 (string):   string does not recognize sub-command MD5 occur

    just uncommentthe cl2cpp.cmake file in line 50 and  make again sudo make install

    make a new file named opencv.conf

    nano /etc/ld.so.conf.d/opencv.conf

    and add the content

    /usr/local/lib

    run the following commend

    sudo ldconfig

    add the follow to the end of your ~/.bashrc file
    PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
    export PKG_CONFIG_PATH

    and run commend

    source ~/.bashrc

    wget http://download.qt-project.org/official_releases/qt/5.0/5.0.2/qt-linux-opensource-5.0.2-x86-offline.run chmod +x qt-linux-opensource-5.0.2-x86-offline.run ./qt-linux-opensource-5.0.2-x86-offline.run

    sudo apt-get install build-essential

    sudo apt-get install mesa-common-dev

    sudo apt-get install libglu1-mesa-dev -y

    sudo apt-get install mesa-common-dev

     

    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    作业
    awk 简单用法小结
    R/SAS/Matab数据相互转换
    Xargs 批量处理命令
    线性表
    C plus 笔记(一 )
    C plus 内存管理
    Skyeye学习(一)—— 安装与使用测试例子
    mongoDB基本操作
    《Algorithms Unlocked》读书笔记3——计数排序
  • 原文地址:https://www.cnblogs.com/yuliyang/p/4077968.html
Copyright © 2011-2022 走看看