Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Deploying shared libraries and set PATH without interfering with other applications
gde23 last edited by
I have a project that provides a DLL, lets call it myDLL that can be used by some wrappers e.g. in python.
To be able to load the myDLL from within the external wrappers I need to add the folder where the DLL is to the PATH environment variable. However myDLL also has some dependencies on third party DLLs that also will be deployed to the folder where the DLL is.
The problem is that now, if some other application uses some other version of those DLLs and my version is inside the path that leads to Linking Errors at runtime for the other applications since they will load the wrong version.
So how do you deal with such a setup? I guess I'm not the first one to be stuck at that problem.
This stack overflow thread might be of interest to avoid having to play with the PATH environment variable.