Deploying a Qt 5 Gui application on Windows
-
Dependency Walker has a 'Profile' option, which works perfectly for me to get runtime (plugin) dependencies, too.
-
oh, nice hint ... I'm using the tool for so many years now, but haven't recognized the Profile-menu (probably because it only appears after loading a binary)
interesting ... custom-plugins (loaded via QtCore utilities) also appear under QtCore ... not at the binary that really uses them
-
I know I'm coming late to the party here. But why don't we make a "redist" installable that will take care of all this stuff for any number of QT apps that might run on a desktop rather than having every program carry along the long and growing list of DLLs required to make it work?
I built installers back in the heady days of Qt 4.x and it was no where nearly so cumbersome. But now there are about twice as many DLLs as there used to be.
Sure, sure, flexibility is all well and good. And if you are building a boat load of apps that work together to make a system, no problem. The problem of all these DLLs is no problem compared with the problem of the larger system.
But come on guys... I'm building a little app to solve a little problem.
For some novices to use. Can't we make it easy for me and my customers to install and run this thing?Thanks for considering the man on the street.
- ww
-
I'm a newbie to using this environment, also, but I wholeheartedly agree with windyweather.
I'm just trying to develop some simple applications (developed on a Windows 7 machine) that run on Windows 7 targets. While the program can compile and execute in the Qt environment cleanly, it seems to take a lot of effort to get it to run "standalone" on a different machine (or even the same machine outside of the Qt environment).
When I tried to execute the TextFinder.exe program (from the tutorial examples), it stated "Qt5Widgets.dll is missing". I downloaded the file and put it in the directory with the TextFinder.exe release version and tried it again. I got the "Qt5gui.dll is missing" error. I put that file in the TextFinder.exe release directory and tried it again... yup... yet another missing .dll. This time it's libGLESv2.dll. When does it end? I continued with adding libGLESv2.dll, then qt5core.dll, then mozglue.dll, then I finally gave up... It seemed like a fighting a losing battle...
-
I'm a newbie to using this environment, also, but I wholeheartedly agree with windyweather.
I'm just trying to develop some simple applications (developed on a Windows 7 machine) that run on Windows 7 targets. While the program can compile and execute in the Qt environment cleanly, it seems to take a lot of effort to get it to run "standalone" on a different machine (or even the same machine outside of the Qt environment).
When I tried to execute the TextFinder.exe program (from the tutorial examples), it stated "Qt5Widgets.dll is missing". I downloaded the file and put it in the directory with the TextFinder.exe release version and tried it again. I got the "Qt5gui.dll is missing" error. I put that file in the TextFinder.exe release directory and tried it again... yup... yet another missing .dll. This time it's libGLESv2.dll. When does it end? I continued with adding libGLESv2.dll, then qt5core.dll, then mozglue.dll, then I finally gave up... It seemed like a fighting a losing battle...
-
Hi,
That's why there's this fine wiki "entry":http://qt-project.org/wiki/Deploy_an_Application_on_Windows to help deployment besides the official Deployment Guide.
-
Hi,
That's why there's this fine wiki "entry":http://qt-project.org/wiki/Deploy_an_Application_on_Windows to help deployment besides the official Deployment Guide.
-
Thanks.
The wiki describes C:\Qt\5.2.1\mingw48_32\ as the path to the dynamically linked copy of Qt. Since I'm using msvc2013, am I correct in thinking this path should be C:\Qt\Qt5.3.2\5.3\msvc2013_opengl\bin? That's where all the .dll files appear to be located.
...This seems like a LOT of steps to go through just to run outside of the Qt environment...
-
Thanks.
The wiki describes C:\Qt\5.2.1\mingw48_32\ as the path to the dynamically linked copy of Qt. Since I'm using msvc2013, am I correct in thinking this path should be C:\Qt\Qt5.3.2\5.3\msvc2013_opengl\bin? That's where all the .dll files appear to be located.
...This seems like a LOT of steps to go through just to run outside of the Qt environment...
-
Indeed, you have to adapt it to your current Qt installation.
A bit more complicated because of the plugin handle, yes, however you would need to do the same for any 3rd party library you'd use when writing software.
-
Indeed, you have to adapt it to your current Qt installation.
A bit more complicated because of the plugin handle, yes, however you would need to do the same for any 3rd party library you'd use when writing software.