1 | initial version |
You headers are weird,please fix the typing errors
According to the jpg, looks like the windows can't find the runtime libraries of openCV(dll),make sure you add the path which include the dll.
My Qt5 .pro, treat it as reference
TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt
CONFIG += c++11
win32{
INCLUDEPATH += ../../../3rdLibs/openCV/OpenCV-2.4.5/build/include
#for mingw
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_calib3d245
LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_core245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_features2d245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_flann245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_gpu245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_highgui245
LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_imgproc245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_legacy245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_ml245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_nonfree245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_objdetect245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_ocl245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_photo245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_stitching245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_superres245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_ts245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_video245
#LIBS += -L../../../3rdLibs/openCV/OpenCV-2.4.5/builded/bin -lopencv_videostab245
#for vc series
#LIBS += -L../../3rdLibs/openCV/OpenCV-2.4.5/build/x86/vc11/lib -lopencv_core245 -lopencv_imgproc245
}
If you are using mingw rather than vc++(I prefer mingw since it has better c++11 support), you may need to build the openCV by yourself, the dll come with the openCV packages can't work with the mingw come with Qt5 binary(ABI break?).