From 73dab9f28ba2bd2b74171022169c4c6a67c0eefa Mon Sep 17 00:00:00 2001 From: Naveen Date: Sun, 8 Jul 2018 12:46:47 +0530 Subject: [PATCH] Include OpenCV libraries using Qmake --- IntroductionOpenCV.pro | 43 +++--------------------------------------- 1 file changed, 3 insertions(+), 40 deletions(-) diff --git a/IntroductionOpenCV.pro b/IntroductionOpenCV.pro index ad4ff45..8b1aa8e 100755 --- a/IntroductionOpenCV.pro +++ b/IntroductionOpenCV.pro @@ -20,44 +20,7 @@ HEADERS += mainwindow.h \ FORMS += mainwindow.ui \ histogramwindow.ui -## SET THE CORRECT PATH HEREAFTER ## - -#OpenCV header files location (if you followed the tutorial, the include folder should be in ../build_with_Qt/release/include and ../build_with_Qt/debug/include) -INCLUDEPATH += /opencv/build_with_Qt/include \ - -#two configuration: release and debug -CONFIG(release, debug|release){ - LIBS += -L/opencv/build_with_Qt/release/lib \ - #if library name is lib[name].lib, you should write -l[name] - -lopencv_core243 \ - -lopencv_highgui243 \ - -lopencv_imgproc243 \ - -lopencv_features2d243 \ - -lopencv_calib3d243 \ - -lopencv_contrib243 \ - -lopencv_flann243 \ - -lopencv_gpu243 \ - -lopencv_legacy243 \ - -lopencv_ml243 \ - -lopencv_objdetect243 \ - -lopencv_ts243 \ - -lopencv_video243 -} - -CONFIG(debug, debug|release){ - LIBS += -L/opencv/build_with_Qt/debug/lib \ - #if library name is lib[name].lib, you should write -l[name] - -lopencv_core243d \ - -lopencv_highgui243d \ - -lopencv_imgproc243d \ - -lopencv_features2d243d \ - -lopencv_calib3d243d \ - -lopencv_contrib243d \ - -lopencv_flann243d \ - -lopencv_gpu243d \ - -lopencv_legacy243d \ - -lopencv_ml243d \ - -lopencv_objdetect243d \ - -lopencv_ts243d \ - -lopencv_video243d +unix:{ +CONFIG += link_pkgconfig +PKGCONFIG += opencv }