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

     

    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    XidianOJ 1073 Nunchakus
    XidianOJ 1024 2的幂次表示
    XidianOJ 1072 National Disaster
    XidianOJ 1093 一元三次方程
    中国剩余定理
    bzoj2818(欧拉函数递推)
    poj2311(博弈论,sg函数)
    contesthunter#46-A(分块)
    Tree,点分治
    poj3580(splay 毒瘤题)
  • 原文地址:https://www.cnblogs.com/yuliyang/p/4077968.html
Copyright © 2011-2022 走看看