QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = cxxvision TEMPLATE = app CONFIG += c++20 # The following define makes your compiler emit warnings if you use # any feature of Qt which as been marked as deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if you use deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 LIBS += -LC:\Users\Sky\Downloads\opencv\build\install\x86\vc15\lib \ -lopencv_core430 \ -lopencv_highgui430 \ -lopencv_imgcodecs430 \ -lopencv_imgproc430 \ -lopencv_features2d430 \ -lopencv_calib3d430 \ -lopencv_video430 \ -lopencv_videoio430 \ -lopencv_stitching430 \ -lopencv_photo430 \ -lopencv_objdetect430 INCLUDEPATH += C:\Users\Sky\Downloads\opencv\build\install\include DEPENDPATH += C:\Users\Sky\Downloads\opencv\build\install\include # more correct variant, how set includepath and libs for mingw # add system variable: OPENCV_SDK_DIR=D:/opencv/opencv-build/install # read http://doc.qt.io/qt-5/qmake-variable-reference.html#libs #INCLUDEPATH += $$(OPENCV_SDK_DIR)/include #LIBS += -L$$(OPENCV_SDK_DIR)/x86/mingw/lib \ # -lopencv_core320 \ # -lopencv_highgui320 \ # -lopencv_imgcodecs320 \ # -lopencv_imgproc320 \ # -lopencv_features2d320 \ # -lopencv_calib3d320 SOURCES += \ main.cpp