博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
OpenCV installation for Ubuntu 12.04 | Raben Systems, Inc.
阅读量:4980 次
发布时间:2019-06-12

本文共 1718 字,大约阅读时间需要 5 分钟。

To install OpenCV 2.4.2 or 2.4.3 on the Ubuntu 12.04 operating system, first install a developer environment to build OpenCV.

sudo apt-get -y install build-essential cmake pkg-config

Install Image I/O libraries

sudo apt-get -y install libjpeg62-dev     sudo apt-get -y install libtiff4-dev libjasper-dev

Install the GTK dev library

sudo apt-get -y install  libgtk2.0-dev

Install Video I/O libraries

sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev

Optional - install support for Firewire video cameras

sudo apt-get -y install libdc1394-22-dev

Optional - install video streaming libraries

sudo apt-get -y install libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev

Optional - install the Python development environment and the Python Numerical library

sudo apt-get -y install python-dev python-numpy

Optional - install the parallel code processing library (the Intel tbb library)

sudo apt-get -y install libtbb-dev

Optional - install the Qt dev library

sudo apt-get -y install libqt4-dev

Now download OpenCV 2.4 to wherever you want to compile the source.

mkdir xxx    cd xxx     wget or    wget     tar -xvf OpenCV-2.4.*.tar.bz2

Create and build directory and onfigure OpenCV with cmake. Don't forget the .. part at the end of cmake cmd !!

cd OpenCV-2.4.*    mkdir build    cd build    cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local    -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON     -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON     -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..

Now compile it

make

And finally install OpenCV

sudo make install

转载于:https://www.cnblogs.com/sunleecn/archive/2013/05/13/3075987.html

你可能感兴趣的文章
51nod_learn_greedy_活动安排2
查看>>
物联网架构成长之路(32)-SpringBoot集成MQTT客户端
查看>>
C++中构造函数的手动和自动调用方式
查看>>
重构----学习心得
查看>>
2018-2019-2 网络对抗技术 20165236 Exp2 后门原理与实践
查看>>
读《SQL优化核心思想》:你不知道的优化技巧
查看>>
查找算法总结
查看>>
10-4. 字符串循环左移(20)
查看>>
一个js验证类
查看>>
CListUI控件的认识
查看>>
通过单元测试理解spring容器以及dubbo+zookeeper单元测试异常处理
查看>>
接口测试自动化框架搭建
查看>>
IDEA如何打包可运行jar的一个问题
查看>>
单例模式的八种写法比较
查看>>
Gatling的进阶三
查看>>
js --基本语法3 函数,数组,堆棧
查看>>
protobuf 测试 & Makefile example
查看>>
理解Linux系统负荷
查看>>
angular 初学(二)ng-class ng-disabled
查看>>
android 检查网络连接状态实现步骤
查看>>