Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Qt with OpenCV deployment
Forum Updated to NodeBB v4.3 + New Features

Qt with OpenCV deployment

Scheduled Pinned Locked Moved Solved 3rd Party Software
6 Posts 2 Posters 2.1k 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.
  • D Offline
    D Offline
    DAST
    wrote on last edited by
    #1

    I have a Qt application which uses OpenCV.
    OpenCV works fine if I run the application within Qt Creator. If I try to deploy it to a Windows computer, all the Qt parts work fine but the Video playback doesn't work (and therefore I guess also all the other OpenCV functions).
    My depends output has a few errors (API-MS-WIN-CORE-WINRT...) but the OpenCV dll's are ok.
    Could it be because of these missing API-MS-WIN-CORE dll's? Or do I need to specify something specific for 3rd Party software prior to building it in Qt creator?
    Thank you!

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

      Hi and welcome to devnet,

      What video format are you trying to load on your other machine ?

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

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        What video format are you trying to load on your other machine ?

        D Offline
        D Offline
        DAST
        wrote on last edited by
        #3

        @SGaist Hey, I've tried with mp4 and avi files but both don't work.

        To clarify: I've installed Qt Creator on the Windows machine and there everything works fine but on the same machine when I try to launch the app outside Qt Creator the OpenCV parts don't work. I've also tried to save a frame from the videocapture to check if any OpenCV function works but that doesn't work either. Therefore it's not just the video playback.
        The app doesn't crash but it seems that all the opencv functions are not executed.

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

          When executing your application outside Qt Creator, you have to follow the same deployment step as you would to distribute your application.

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

          D 1 Reply Last reply
          0
          • SGaistS SGaist

            When executing your application outside Qt Creator, you have to follow the same deployment step as you would to distribute your application.

            D Offline
            D Offline
            DAST
            wrote on last edited by DAST
            #5

            @SGaist I know, but the fact that there is no error that dll's are missing or something and that OpenCV should run on this computer seems awkward to me.

            Edit: I've solved the problem. The path variable to the opencv binaries was set to an old path. After I've installed Qt and compiled everything with mingw I didn't change the path variable but in the .pro file of the Qt Project the includepath was correct. Therefore the opencv functions worked inside Qt creator but not when I tried to start it outside. Thank you nevertheless ;)

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

              You may have another application in your PATH that is also using OpenCV

              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