Can';在UWP套件下运行Qt应用程序

Can';在UWP套件下运行Qt应用程序,qt,windows-runtime,qtquickcontrols2,Qt,Windows Runtime,Qtquickcontrols2,我的应用程序是基于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_

我的应用程序是基于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。尝试了调试版本和发布版本。

我在Windows 10、Qt 5.8(也是5.7)、Windows Runtime 64位VC2015上遇到了相同的问题

这个主题是在Qt网站上打开的:,但对我的情况没有帮助:(.我在这里打开了一个新主题:

我也有同样的问题

您需要重新编译应用程序用于Windows 10 SDK的所有静态/动态库。问题是您需要使用WinRT dll,它提供沙盒环境,而不是“普通”Windows库。Windows应用商店应用程序需要这样做

在我的例子中,我使用的是zip静态库(zlibstat.lib)和Quazip静态库(Quazip.lib),它们是在Windows7中用VisualStudio2012编译的


相反,我使用了Qt zip,因为Qt在QtCore.dll中提供了zip库(只需使用#include而不是#include“zlib.h”),并将Quazip重新编译为Windows 10 SDK的静态库。

我在这里创建了一个错误报告: