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 5 OpenCV windows deployment error

Qt 5 OpenCV windows deployment error

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
8 Posts 3 Posters 987 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.
  • B Offline
    B Offline
    Bence991
    wrote on 13 Jul 2022, 10:06 last edited by
    #1

    Hello everyone.

    I am developing a image corrector app, using QT creator(Qt 5) and OpenCV libraries. I built OpenCV with Cmake, the works fine until try to deploy a release runnable version. For building I using MinGW and for deploying I am using the QT mingw deployment tool. This too,l works fine when I deploy non OpenCV based projects. I am an unexperienced developer and a bit confused where should I start to search the answer. When I try to run the executable in the release folder I got the following error message:The application was unable to start correctly (0xc000007b).
    I would be grateful any kind of help.

    J 1 Reply Last reply 13 Jul 2022, 12:15
    0
    • B Bence991
      13 Jul 2022, 10:06

      Hello everyone.

      I am developing a image corrector app, using QT creator(Qt 5) and OpenCV libraries. I built OpenCV with Cmake, the works fine until try to deploy a release runnable version. For building I using MinGW and for deploying I am using the QT mingw deployment tool. This too,l works fine when I deploy non OpenCV based projects. I am an unexperienced developer and a bit confused where should I start to search the answer. When I try to run the executable in the release folder I got the following error message:The application was unable to start correctly (0xc000007b).
      I would be grateful any kind of help.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 13 Jul 2022, 12:15 last edited by
      #2

      @Bence991 Did you try to copy OpenCV DLLs manualy into your app folder where the executable is?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply 13 Jul 2022, 12:34
      0
      • J jsulm
        13 Jul 2022, 12:15

        @Bence991 Did you try to copy OpenCV DLLs manualy into your app folder where the executable is?

        B Offline
        B Offline
        Bence991
        wrote on 13 Jul 2022, 12:34 last edited by
        #3

        @jsulm Yes I tried. About a year ago I deployed a simple webcamera app which also used OpenCV and I remembered that I had to copy these files that time also.

        J 1 Reply Last reply 13 Jul 2022, 12:35
        0
        • B Bence991
          13 Jul 2022, 12:34

          @jsulm Yes I tried. About a year ago I deployed a simple webcamera app which also used OpenCV and I remembered that I had to copy these files that time also.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 13 Jul 2022, 12:35 last edited by
          #4

          @Bence991 So, does it work now if you copy these DLLs manually?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • B Offline
            B Offline
            Bence991
            wrote on 13 Jul 2022, 12:54 last edited by
            #5

            No, I tried it before posted here the problem. I also tried to check the problem with the "Dependencies" program, and as much I understand the UI it did not find any missing dll. I got the same error message, it behaves like I did not used the deployment tool.
            deps.PNG
            dlls.PNG

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 13 Jul 2022, 18:11 last edited by
              #6

              Hi,

              The output looks good.

              Just in case, did you also check the OpenCV dlls to see if you have their dependencies as well ?

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

              B 1 Reply Last reply 14 Jul 2022, 06:01
              0
              • S SGaist
                13 Jul 2022, 18:11

                Hi,

                The output looks good.

                Just in case, did you also check the OpenCV dlls to see if you have their dependencies as well ?

                B Offline
                B Offline
                Bence991
                wrote on 14 Jul 2022, 06:01 last edited by
                #7

                @SGaist I got the same results If I check the Qt based dlls and the opencv dlls, but i am sure the OpenCV part is the key, because I can deploy other non OpenCV based projects with the same method. Just do not understand what is the problem and how to debug it.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 14 Jul 2022, 18:54 last edited by
                  #8

                  Did you try to replicate that with a minimal example that uses only a simple call from the OpenCV library ?

                  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/8

                  13 Jul 2022, 10:06

                  • Login

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