Can not find Windows platform
-
wrote on 10 Mar 2015, 16:11 last edited by
I am trying to distribute the application I developed. I know I have to include a sub folder named platforms with the proper Windows DLLs. I also have added lines in my main function as follows:
QCoreApplication::addLibraryPath("./");
QCoreApplication::addLibraryPath("./platforms");However, I still get the error "This application failed to start because it could not find or load the Qt platform plugin 'Windows'."
"Available platform plugins are: minimal, offscreen, windows."
The DLLs are in the sub folder, however for some reason the application does not seem to find them.
Thanks,
Bear35645 -
wrote on 10 Mar 2015, 16:16 last edited by
Did you try to use the windeployqt tool (http://doc.qt.io/qt-5/windows-deployment.html) to copy the right dependencies into your applications folder?
-
Did you try to use the windeployqt tool (http://doc.qt.io/qt-5/windows-deployment.html) to copy the right dependencies into your applications folder?
2/3