准备工作,若未安装参照:http://blog.youkuaiyun.com/xiaoxiong345064855/article/details/7585422
http://docs.opencv.org/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.html
1. gtk版本
查询方法: pkg-config --modversion gtk+-2.0
ppeix:~$ pkg-config --modversion gtk+-2.0
2.24.10
2. cmake版本
查询方法:
ppeix:~$ cmake --version
cmake version 2.8.7
3. 下载版本: git clone git://code.opencv.org/opencv.git 需要多等一会。
这里采用源码安装方式
3.1 cd ~/opencv
3.2mkdir release
3.3 cd release
3.4 cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
4. cd release make sudo make install
本文详细介绍了在Linux环境下使用CMake进行OpenCV源码安装的过程,包括检查依赖库版本、配置CMake参数、执行编译和安装步骤。
9万+

被折叠的 条评论
为什么被折叠?



