Unsolved Deployment of a dll on windows
-
i created a dll that use qt5 on windows..
if the platforms folder is not next to the host application that loads my dll . i get the infamous missing qtplatform error at launch.
is there a way to have this dll to look for this platforms folder somewhere else than within the host application folder.. i would like to have all my dll related stuff at the location i have decided...
i have no clue so far . Thanks for any help
-
@eric_vi said in Deployment of a dll on windows:
is there a way to have this dll to look for this platforms folder somewhere else than within the host application folder..
Yes there is.
In your DLL, call
QCoreApplication::addLibraryPath()
before you instantiate your QGuiApplication/QApplication: https://doc.qt.io/qt-5/qcoreapplication.html#addLibraryPath The argument should be the folder which contains the platforms folder.