dll and files relative path
-
Hello,
I want to deploy a Qt software I created on Windows.
In order to work, I must include many dll in the .exe folder.
However, I would like the .dll to be in a subfolder (for instance in /libs )
When I place the dll in this folder, the .exe does not find the dll.
I should thus tell that the dll are in the "libs" folder.Do I do this simply in the pro file with INCLUDEPATH or is this just for compilation ?
If that's the way, how to include the "libs" folder with a relative path to the .exe ?Thanks you very much,
Alex
-
Hi,
INCLUDEPATH
is only to give additional paths to find header files.If you want to move things around you'll have to play with the qt.conf file however I don't know to what extend it supports external libraries.
You should take a look at the Qt Creator installation.
-
@alecs26 This explains how DLLs are located:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx
And you could use something like this https://msdn.microsoft.com/en-us/library/windows/desktop/hh310513(v=vs.85).aspx to change where it looks for your DLLs.