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

Qt with OpenCV deployment

Scheduled Pinned Locked Moved Solved 3rd Party Software
6 Posts 2 Posters 2.1k 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.
  • D Offline
    D Offline
    DAST
    wrote on 27 Sept 2016, 07:17 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 27 Sept 2016, 21:49 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 29 Sept 2016, 13:06
      0
      • S SGaist
        27 Sept 2016, 21:49

        Hi and welcome to devnet,

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

        D Offline
        D Offline
        DAST
        wrote on 29 Sept 2016, 13:06 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 29 Sept 2016, 19:58 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 3 Oct 2016, 08:36
          0
          • S SGaist
            29 Sept 2016, 19:58

            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 3 Oct 2016, 08:36 last edited by DAST 10 Mar 2016, 11:33
            #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
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 3 Oct 2016, 21:22 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

              1/6

              27 Sept 2016, 07:17

              • Login

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