我正在运行使用Qt + MSVC15编译的可执行文件。当我在另一个Windows系统上安装相同的.exe时,它给了我下面的错误。加载Qt平台插件“windlows”in“”
"The application failed to start because it could not find or load the Qt platform plugin "windows" in "".
1日试图解决它:
以下是我的文件夹结构的结构:
-MyExecutable (containing example.exe)
|_plugins
|_example1.dll
|_platforms
|_qwindows.dll
1.A因为它无法找到路径qwindows.dll 。我创建了如上图所示的文件夹平台,并将平台文件夹“C:/Qt/Qt5.6.1/Tools/QtCreator/bin/plugins/platforms/”复制到其中。
1.B我设置环境变量QT_PLUGIN_PATH = {路径到文件夹包含可执行} /插件
这种设置运行我的应用程序,不过others.dll不包括在内,因此具有较少的功能的GUI。
我该如何进行更改,以便其他的DLL也应该链接/包含在我的GUI应用程序中。