Eclipse CDT设置OpenCV项目
副标题#e#
Eclipse CDT设置OpenCV的步调, 有以下三步:
1. 添加C++2011支持:
修改编译器参数;
添加检测标记:
2. 添加OpenCV静态库(lib):
1. 添加路径: D:\OpenCV2.4.7\opencv\mingw\lib
2. 添加库:
opencv_calib3d247
opencv_contrib247
opencv_core247
opencv_features2d247
opencv_flann247
opencv_gpu247
opencv_haartraining_engine
opencv_highgui247
opencv_imgproc247
opencv_legacy247
opencv_ml247
opencv_nonfree247
opencv_objdetect247
opencv_ocl247
opencv_video247
opencv_videostab247
#p#副标题#e#
3. 修改头文件查找位置:
头文件:
D:\OpenCV2.4.7\opencv\build\include
D:\OpenCV2.4.7\opencv\build\include\opencv
D:\OpenCV2.4.7\opencv\build\include\opencv2
作者:csdn博客 Mystra