Eclipse - Eclipse CDT配置OpenCV项目

时间:2023-01-20 10:29:02

Eclipse CDT配置OpenCV项目


本文地址: http://blog.csdn.net/caroline_wendy/article/details/23944033


Eclipse CDT配置OpenCV的步骤, 有以下三步:


1. 添加C++2011支持:

修改编译器参数;

Eclipse - Eclipse CDT配置OpenCV项目


添加检测符号:

Eclipse - Eclipse CDT配置OpenCV项目


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


Eclipse - Eclipse CDT配置OpenCV项目


3. 修改头文件查找位置:

头文件:

D:\OpenCV2.4.7\opencv\build\include

D:\OpenCV2.4.7\opencv\build\include\opencv

D:\OpenCV2.4.7\opencv\build\include\opencv2


Eclipse - Eclipse CDT配置OpenCV项目


Eclipse - Eclipse CDT配置OpenCV项目