Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Gaze project errors from Qt5 and openCV4 Computer Vision Projects book

    General and Desktop
    2
    5
    59
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      al072 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):
      errors.JPG

      Help me to find out the problem please, what additional information you need i will provide. Thank you !

      1 Reply Last reply Reply Quote 0
      • A
        al072 last edited by al072

        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)

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi,

          Just a wild guess but it looks like your are not linking the static backend.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply Reply Quote 1
          • A
            al072 @SGaist 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 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              See here for static plugins linking information.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply Reply Quote 0
              • First post
                Last post