OpenCV 实践程序18—— Ubuntu14.04配置CodeBlocks+opencv3.1.0
2015-12-29 15:39
621 查看
一,安装CodeBlocks
在Ubuntu软件中心中找到CodeBlocks软件,直接安装;
二,配置opencv
apt-cache search opencv #输入此行命令,下面为系统查询结果
三、codeblocks+opencv的配置
1、相关文件位置
输入命令~# pkg-config --cflags opencv # opencv 头文件(.h) 位置
输出:-I/usr/include/opencv
输入命令:~# pkg-config --libs opencv # opencv 库文件
![](https://img-blog.csdn.net/20151229153249686?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
2、codeBlocks链接库配置: Project -> Build Options,添加:
/usr/lib/x86_64-linux-gnu/libopencv_core.so
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so
![](https://img-blog.csdn.net/20151229153529836?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
3、 codeBlocks 头文件目录配置(pkg-config --cflags opencv 结果)
添加:
/usr/include/opencv
在Ubuntu软件中心中找到CodeBlocks软件,直接安装;
二,配置opencv
apt-cache search opencv #输入此行命令,下面为系统查询结果
libcv-dev - Translation package for libcv-dev libcv2.3 - computer vision library - libcv* translation package libcvaux-dev - Translation package for libcvaux-dev libcvaux2.3 - computer vision library - libcvaux translation package libhighgui-dev - Translation package for libhighgui-dev libhighgui2.3 - computer vision library - libhighgui translation package libopencv-calib3d-dev - development files for libopencv-calib3d libopencv-calib3d2.3 - computer vision Camera Calibration library libopencv-contrib-dev - development files for libopencv-contrib libopencv-contrib2.3 - computer vision contrib library libopencv-core-dev - development files for libopencv-core libopencv-core2.3 - computer vision core library libopencv-dev - development files for opencv libopencv-features2d-dev - development files for libopencv-features2d libopencv-features2d2.3 - computer vision Feature Detection and Descriptor Extraction library libopencv-flann-dev - development files for libopencv-flann libopencv-flann2.3 - computer vision Clustering and Search in Multi-Dimensional spaces library libopencv-gpu-dev - development files for libopencv-gpu libopencv-gpu2.3 - computer vision GPU Processing library libopencv-highgui-dev - development files for libopencv-highgui libopencv-highgui2.3 - computer vision High-level GUI and Media I/O library libopencv-imgproc-dev - development files for libopencv-imgproc libopencv-imgproc2.3 - computer vision Image Processing library libopencv-legacy-dev - development files for libopencv-legacy libopencv-legacy2.3 - computer vision legacy library libopencv-ml-dev - development files for libopencv-ml libopencv-ml2.3 - computer vision Machine Learning library libopencv-objdetect-dev - development files for libopencv-objdetect libopencv-objdetect2.3 - computer vision Object Detection library libopencv-video-dev - development files for libopencv-video libopencv-video2.3 - computer vision Video analysis library opencv-doc - OpenCV documentation and examples python-opencv - Python bindings for the computer vision library
三、codeblocks+opencv的配置
1、相关文件位置
输入命令~# pkg-config --cflags opencv # opencv 头文件(.h) 位置
输出:-I/usr/include/opencv
输入命令:~# pkg-config --libs opencv # opencv 库文件
2、codeBlocks链接库配置: Project -> Build Options,添加:
/usr/lib/x86_64-linux-gnu/libopencv_core.so
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so
3、 codeBlocks 头文件目录配置(pkg-config --cflags opencv 结果)
添加:
/usr/include/opencv
相关文章推荐
- Eclipse配置tomcat发布路径的问题
- 互斥量--linux多线程的运用
- 【NanoPi2试用体验】编译系统
- Vmware 安装CentOS7时连不上网问题的解决
- 启动HDFS遇到问题
- 深入理解RunLoop
- opencv入门01(visual studio2010)--20151229
- 无网不通,有网则顺:OpenStack Neutron解析
- nginx-image模块和fastdfs module的协作
- linux shell 初学 变量 循环 分支
- Linux下mysql5.7安装
- linux消耗CPU的shell脚本
- 设置Chrome,Firefox打开新的标签页的时候打开指定的网站
- Centos7-NFS server - 笔记
- Hadoop dfs 常用命令行
- Linux下Tomcat的安装配置
- [笔记]shell脚本中的流程控制
- 归纳整理一些工作学习中发现的不错的网站、博客地址等
- Desktop Entry,关于Linux如何创建桌面快捷方式
- popToViewController返回到指定页面