View Full Version : Qt 4 apps on Windows are not startable from the Windows GUI
jamadagni
14th April 2007, 09:20
If I right-click on a binary file created using Qt in Windows, I am unable to load the program. Apparently it is missing the Qt DLLs in my source path. What do I do to correct this and isn't this a bug in the Qt installer? It should put the DLLs in the windows/system32 folder.
marcel
14th April 2007, 09:22
No, put them right next to your executable.
That's what you would normally do, with an installer, for example.
Regards
marcel
14th April 2007, 09:55
If you have Qt installed on the system, it will work by appending to the PATH env var $QTDIR/bin ( linux ), or %QTDIR%\bin (Windows).
Something like this:
PATH=$QTDIR/bin:$PATH
or:
PATH=%QTDIR%\bin;%PATH%
If you want to run it on another computer, the Qt libraries will have to be in the app directory.
Regards
jamadagni
14th April 2007, 12:04
I wonder if it would be possible to create a Qt 4 runtime installer which all people creating Qt 4 based programs can ask their users to download and install. GIMP on Windows has people download and install the GTK+ for Windows package. As more and more Qt 4 applications are developed for Windows, it becomes superfluous and increases the size of our packages to include the DLLs with each one of our applications.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.