我的应用是基于 Qt Quick Controls 2 的应用。Qt 5.7.1、Windows 10、Visual Studio 2015。
桌面 32 位版本工作正常。
但是当我切换到通用 Windows 平台 32 位套件的 Qt 5.7.1 时,它无法运行并出现以下错误:
winrtrunner --device 0 --start --stop --install --wait 0 --profile appx C:/Work/Source/build-MusicPlayer-Qt_5_7_1_for_Universal_Windows_Platform_32bit-Release/bin/player.exe
qt.winrtrunner: Using the Appx profile.
qt.winrtrunner: Failed to activate application: 0x8027025b "The app didn't start."
Error while executing the WinRT Runner Tool: Process crashed
它在这里声明缺少一些依赖项。我已经使用 Dependency Walker 检查了它,似乎所有必需的 DLL 都在应用程序的文件夹中。我还尝试将 Qt 工具包安装中的所有文件复制到应用程序的目录中。
我的应用程序由一个主要可执行文件和三个 .DLL 文件组成。我已经为他们每个人启动了windeployqt。尝试了调试和发布版本。