PDA

View Full Version : dll's needed to launch application



valdemar593
28th May 2011, 10:04
Hello people. I wrote an application and it needs mingwm32.dll .... to launch. I've copied them all to the application directory and that works. But that is not the way I want. I want those dlls to be situated in my application's /lib subdirectory. How should I tell my application about those dlls?

Santosh Reddy
28th May 2011, 10:14
It is not possible for application to do so, it is managed by OS. The dlls need to be either in the same directory as the application's running directory, or in one of the directories configured in system path.

You can have dlls in /lib (or wherever you want), if you access them by QLibrary (which in your case I assume is not the case)

valdemar593
28th May 2011, 10:28
Thanks for your answer Santosh. Yes you are quite right that is not the case. Can you explain how I can edit the PATH variable with Qt tools?

Santosh Reddy
28th May 2011, 10:42
PATH variable is something which is manged by OS, not by Qt

squidge
28th May 2011, 11:19
It is possible to place that DLL inside your application executable, but I forget how. If you really don't want it in the same directory as your executable researching that may be an option.