ubuntu下eclipse、cdt的安装,及配置opencv,openni

1 安装eclipse

sudo apt-get install eclipse

2 安装cdt插件
       1、启动eclipse,
      2、选择Help->Install New Software...,在Work with的框框下复制下面的地址:  http://download.eclipse.org/releases/galileo
      3、选择Collaboration->Mylyn Bridge: C/C++ Development,安装,重启eclipse。
      4、同上述2、3,选择Programming Languages->Eclipse C/C++ Development,都选上吧,现在硬盘不贵的。重启eclipse,试试吧,有tutorial的。

3 配置opencv

(1)右键工程属性-->c/c++ build-->Settings

编译器选项中选择目录,GCC C++ Compiler-->directorys-->include paths

/usr/include/opencv-2.3.1
/usr/include/opencv-2.3.1/opencv
/usr/include/opencv-2.3.1/opencv2
/usr/include/ni

连接器中添加:GCC C++ links-->libraries

加入库

OpenNI

opencv_core
opencv_highgui
opencv_calib3d
opencv_contrib
opencv_core
opencv_features2d
opencv_flann
opencv_gpu
opencv_highgui
opencv_imgproc
opencv_legacy
opencv_ml
opencv_objdetect
opencv_video

添加库目录

/usr/lib


你可能感兴趣的:(ubuntu下eclipse、cdt的安装,及配置opencv,openni)