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. Deploying a Qt project with OpenCV
Qt 6.11 is out! See what's new in the release blog

Deploying a Qt project with OpenCV

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 2.0k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    msucs13
    wrote on last edited by
    #1

    I'm having trouble deploying a Qt project that uses OpenCV. I followed the instructions given in the documentation "here":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html for creating an application package.

    The program will run until it encounters the first call to a OpenCV function then is simply quits, giving no error message - just terminates.

    I have included all OpenCV dll's in the same folder as the program but it doesn't seem to find them. Is there something else I need to do so my program can find the OpenCV dll's?

    Also, I can compile and run the program with no problems from the Qt Creator program IDE, only when I try to run the executable from outside the IDE does it not work.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Are you sure you are deploying the right OpenCV dlls (32/64bits, mvxc/mingw, release build) ? Also, are you sure that you are deploying all needed dlls ?

      Hope it helps

      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

      • Login

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