Reputation: 2531
My Qt application is going to be installed on a Windows computer but Qt is not installed on it.
How could I get around this problem? Am I obliged to build a huge static exe?
Is it possible to put Qt DLLs in the same folder as my application and link it to them? I have found this explanation "Creating the Application Package" on Qt website but it is plugin oriented.
Upvotes: 1
Views: 143
Reputation: 35458
You just put the DLLs in the same directory as your executable and create a qt.conf with the content:
[Paths]
Prefix=.\
Plugins=.\
This way you ensure that the Qt system will pick up the plugins you might use from the correct directory (for example sqldrivers
directory for the SQL plugins). Of course, you can customize these paths according to your needs, this is the simplest solution...
Make sure you pick the correct DLL from the Qt directory to which your application links to.
Upvotes: 3
Reputation: 22376
Is it possible to put Qt DLLs in the same folder as my application and link it to them?
Yes, Windows will look for the DLLs in the folder the executable resides in (amongst other places).
Upvotes: 2