INCLUDEPATH+=D:\useropencvqt\include\opencv D:\useropencvqt\include\opencv2 D:\useropencvqt\include LIBS+=D:\useropencvqt\lib\libopencv_calib3d2411.dll.a D:\useropencvqt\lib\libopencv_contrib2411.dll.a D:\useropencvqt\lib\libopencv_core2411.dll.a D:\useropencvqt\lib\libopencv_features2d2411.dll.a D:\useropencvqt\lib\libopencv_flann2411.dll.a D:\useropencvqt\lib\libopencv_gpu2411.dll.a D:\useropencvqt\lib\libopencv_highgui2411.dll.a D:\useropencvqt\lib\libopencv_imgproc2411.dll.a D:\useropencvqt\lib\libopencv_legacy2411.dll.a D:\useropencvqt\lib\libopencv_ml2411.dll.a D:\useropencvqt\lib\libopencv_objdetect2411.dll.a D:\useropencvqt\lib\libopencv_video2411.dll.a
#include <QCoreApplication> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> using namespace cv; int main() { Mat src = imread("lena.jpg",1); imshow("src",src); waitKey(0); return 0; }
win7 Qt-5.3.1 cmake-2.8.11.2 opencv-2.4.11平台搭建
原文地址:http://blog.csdn.net/dopamy_busymonkey/article/details/44857427