Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Gaze project errors from Qt5 and openCV4 Computer Vision Projects book
Forum Update on Monday, May 27th 2025

Gaze project errors from Qt5 and openCV4 Computer Vision Projects book

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 229 Views
  • 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 Offline
    A Offline
    al072
    wrote on 5 Feb 2021, 15:00 last edited by
    #1

    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
    0
    • A Offline
      A Offline
      al072
      wrote on 5 Feb 2021, 15:22 last edited by al072 2 May 2021, 15:23
      #2

      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
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 5 Feb 2021, 18:19 last edited by
        #3

        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 5 Feb 2021, 20:27
        1
        • S SGaist
          5 Feb 2021, 18:19

          Hi,

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

          A Offline
          A Offline
          al072
          wrote on 5 Feb 2021, 20:27 last edited by
          #4

          @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
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 5 Feb 2021, 22:36 last edited by
            #5

            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
            0

            1/5

            5 Feb 2021, 15:00

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved