Gaze project errors from Qt5 and openCV4 Computer Vision Projects book
-
wrote on 5 Feb 2021, 15:00 last edited by
Hi to everyone! I just recenty compiled the static version of Qt 5.15.2 library and try to run the sample project "Gaze" from the "Qt5 and openCV4 Computer Vision Projects" book. Here is a github for this project: https://github.com/PacktPublishing/Qt-5-and-OpenCV-4-Computer-Vision-Projects/tree/master/Chapter-03
I didn't change any code in this example except the linking a static library in the .pro file.
Here is a .pro file:
TEMPLATE = app TARGET = Gazer INCLUDEPATH += . QT += core gui multimedia network concurrent greaterThan(QT_MAJOR_VERSION, 4): QT += widgets # Input HEADERS += mainwindow.h capture_thread.h utilities.h SOURCES += main.cpp mainwindow.cpp capture_thread.cpp utilities.cpp # Using OpenCV or QCamera # DEFINES += GAZER_USE_QT_CAMERA=1 # QT += multimediawidgets win32: LIBS += -L$$PWD/../../../../../OpenCV/static/x64/vc16/staticlib/ \ -lopencv_core451 \ -lIlmImf \ -lippicvmt \ -lippiw \ -littnotify \ -llibopenjp2 \ -lopencv_imgcodecs451 \ -lopencv_imgproc451 \ -lopencv_videoio451 \ -lzlib \ -lopengl32 \ INCLUDEPATH += $$PWD/../../../../../OpenCV/static/include
When i build the project i have the following errrors (please take a look on screen shot):
Help me to find out the problem please, what additional information you need i will provide. Thank you !
-
wrote on 5 Feb 2021, 15:22 last edited by al072 2 May 2021, 15:23
During CMake configure and generate i used the following flags:
OFF: BUILD_SHARED_LIBS, BUILD_WITH_STATIC_CRT, ENABLE_PRECOMPILED_HEADERS
ON: WITH_OPENGL, WITH_Vulkan, OPENCV_EXTRA_MODULES_PATH
Other: is by default
MSVC2019 Compiler is used (x64)
-
Hi,
Just a wild guess but it looks like your are not linking the static backend.
-
wrote on 5 Feb 2021, 20:27 last edited by
@SGaist said in Gaze project errors from Qt5 and openCV4 Computer Vision Projects book:
Hi,
Just a wild guess but it looks like your are not linking the static backend.
Thank you for reply!!! Could you please clarify what do you mean by are not linking the static backend?
-
1/5