Having trouble with deploying Qt programs?
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....
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.
Well, I am using Qt 5.3, the newest version.
[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
I got it! Thanks JKSH! You were right.
For anybody else having this problem, I found all the DLLs in this file path:
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