PDA

View Full Version : How to distribute my Qt Widget application .exe file to users?



mut
27th June 2014, 16:53
How to distribute my Qt Widget application .exe file to users?

How to identify the dlls needed by my application for users who don't have any Qt?

For user who have Qt installed in C:\Qt\Q5.2.0\Location_of_qt_dlls, is it sufficient to add this path to the windows enviroment?

What is "Location_of_qt_dlls" by default?

Infinity
28th June 2014, 02:05
What is "Location_of_qt_dlls" by default?
The location of the required (Qt) libraries depends on the operating system.
On Windows there are multiple directories possible: directory of the application, system32 for 32-bit binaries on 32-bit systems and for 64-bit binaries on 64-bit systems, SysWOW64 for 32-bit binaries on 64-bit systems
Unfortunately it is not possible to use rpath on Windows.
For plugins see: http://qt-project.org/doc/qt-5/plugins-howto.html#locating-plugins


How to identify the dlls needed by my application
For example using a tool like readelf or Dependency Walker.

anda_skoa
28th June 2014, 10:43
There is also documentation on deployment. E.g. for Windows: http://qt-project.org/doc/qt-5/windows-deployment.html

Cheers,
_