简体   繁体   English

部署C ++ QT5应用

[英]Deploying a c++ QT5 app

I am trying to deploy my application. 我正在尝试部署我的应用程序。 It works on Windows 7 with quit a lot of .dll files but I can't get it work on Windows XP. 它可以在Windows 7上运行并退出许多.dll文件,但我无法在Windows XP上运行。 It seems that windows Xp requires more dll files. 看来Windows Xp需要更多的dll文件。 But the Dependency walker tool keeps showing me new dll files missing. 但是Dependency Walker工具不断向我显示缺少新的dll文件。 Now it says API-MS-WIN-CORE-PROCESSTHREADS-L1-1-0.DLL and API-MS-WIN-SECURITY-BASE-L1-1-0.DLL are missing. 现在,它说缺少API-MS-WIN-CORE-PROCESSTHREADS-L1-1-0.DLL和API-MS-WIN-SECURITY-BASE-L1-1-0.DLL。

When i try to start the exe nothing happens ... no error... 当我尝试启动exe时,没有任何反应...没有错误...

I use Qt5.0.2 with pre build msvc2010. 我将Qt5.0.2与预构建msvc2010一起使用。

Thanks in advance 提前致谢

Perhaps this is related to missing VS 2010 redistributable? 也许这与缺少VS 2010可再发行组件有关? Also make sure to build in a release-configuration if you don't already know. 如果您还不知道的话,还请确保构建一个发布配置。

http://www.microsoft.com/en-us/download/details.aspx?id=5555 http://www.microsoft.com/zh-cn/download/details.aspx?id=5555

If you package this up into an installer like NSIS, I'd typically execute it with the argument /Q to prevent any GUIs from popping up... it won't ask for any admin privileges which is nice since the previous VC 2008 redistrib always required it. 如果将其打包到NSIS之类的安装程序中,我通常会使用/ Q参数执行它,以防止弹出任何GUI ...它不会要求任何管理员权限,因为以前的VC 2008重新发行版本很不错总是需要它。

As the previous answer a requirement is the VS redistributable. 作为先前的答案,要求是VS可重新分发。 In your case, as you use VS2010 the file to download is MS 2010 redistributable. 在您的情况下,当您使用VS2010时,要下载的文件是MS 2010可重新分发的文件。

Besides of that there is the executable windeployqt that helps with the deployment package copying the Qt DLLs required on your executable directory. 除此之外,还有可执行的windeployqt,可帮助部署包复制可执行目录上所需的Qt DLL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM