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 989 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 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.

    jsulmJ 1 Reply Last reply
    0
    • B Bence991

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      0
      • jsulmJ jsulm

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

        B Offline
        B Offline
        Bence991
        wrote on 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.

        jsulmJ 1 Reply Last reply
        0
        • B Bence991

          @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.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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 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
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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
              0
              • SGaistS SGaist

                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 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
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 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

                  • Login

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