Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Having trouble with deploying Qt programs?
QtWS25 Last Chance

Having trouble with deploying Qt programs?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.2k 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.
  • A Offline
    A Offline
    acedawg45
    wrote on last edited by
    #1

    I recently posted a thread about this, a long time ago, but I couldn't get it to work. I moved away from Qt for a while, but now I am back. So, I include all the .DLLs in my "build" path (in "Debug") and then, after that, I get "libgcc_s_dw2-1.dll" is missing from my computer. I don't even see that in Qt Creators "bin" filepath...

    Anyway, I have had a lot of help with this forum before, so I am optimistic about getting a solution. Thanks!

    EDIT: After adding 9 .DLLs to the debug folder, I am now getting an error that I don't know how to fix.
    "The application was unable to start correctly (0xc000007b). Click OK to close the application" I did some googling, and that code is supposed to mean INVALID_IMAGE_FORMAT. I don't know what that means, exactly....

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      which version of Qt you are using to build the binaries ? This is the perfect case of invalid binary format of the executable. Which version of Qt build dlls you are using to execute ?

      It is better to ensure that dlls versions and qt libraries you used to build are same.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • A Offline
        A Offline
        acedawg45
        wrote on last edited by
        #3

        Well, I am using Qt 5.3, the newest version.

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          Hi,

          [quote author="acedawg45" date="1408151060"]I get "libgcc_s_dw2-1.dll" is missing from my computer. I don't even see that in Qt Creators "bin" filepath...[/quote]Do not take any DLLs from Qt Creator's "bin" path. Those DLLs are for Qt Creator to use only; they are probably incompatible with your application!

          You need to take DLLs from your Qt library's "bin" path (this is different from Qt Creator's "bin" path). See http://qt-project.org/wiki/Deploy_an_Application_on_Windows

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • A Offline
            A Offline
            acedawg45
            wrote on last edited by
            #5

            I got it! Thanks JKSH! You were right.

            For anybody else having this problem, I found all the DLLs in this file path:

            C:\Qt_Stuff\5.3\mingw482_32\bin

            Oh, and be sure to not drag them to the project folder. That removes it from the original directory. Just copy and paste them into the project

            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