Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt qmake and OpenCV Load Issue

Qt qmake and OpenCV Load Issue

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 358 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.
  • F Offline
    F Offline
    Freshta
    wrote on 6 Dec 2023, 03:32 last edited by
    #1

    Hello,
    I am having issues with loading opencv to Qt creator with qmake as build project. The error: Cannot find -lopencv_world480d.

    Qt creator 11.0.2
    Opencv 4.8.0
    Operating systems - windows 11

    I have the includes in the .pro file correctly and the opencv is running on visual studio with the same path but in Qt it does not run and gives me errors. Based on my research it could be with the qmake.
    I tried switching to Cmake as the build project but somehow CMake is not working either. It is weird once I close the project then I can’t run it or make changes to it. CMake has always been the same for all qt projects which is why I always used qmake. However, now qmake seems to not be working with opencv.
    I would appreciate the help if there is any way to run this project on qmake and get it to work with opencv.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Dec 2023, 21:32 last edited by
      #2

      Hi and welcome to devnet,

      From experience you are missing one -L parameter with the path to where the OpenCV libraries can be found in your LIBS variable.

      If that's not that, then please share your .pro file.

      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

      2/2

      6 Dec 2023, 21:32

      • Login

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