Qt关于Windows 7的问题 [英] Qt on windows 7 problem

查看:218
本文介绍了Qt关于Windows 7的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio 2017(或2015)Community Edition在Windows 7计算机上创建QT Widgets程序会导致需要缺少DLL的程序 - VCRUNTIME140D_APP.dll。我已经在这个问题上遇到了2天而无法找到解决问题的方法。有什么线索吗?



我尝试了什么:



我是尝试安装各种VC运行时安装程序(有很多错误和安装失败),研究了几个小时,尝试不同版本的代码(包括一个在生成新的Qt项目后立即失败并出现相同错误的代码,没有添加代码)。

Creating a QT Widgets program on a Windows 7 machine with Visual Studio 2017 (or 2015) Community Edition results in a program that requires a missing DLL - VCRUNTIME140D_APP.dll. I've been hitting on this problem for 2 days and can't find a way to fix it. Any clues?

What I have tried:

I've tried installing various VC runtime installers (got alot errors and failed installs), researching for hours, trying different versions of my code (including one that failed with the same error immediately after generating a new Qt project, with no added code).

推荐答案

最后弄明白了。当我将所需的Qt dll复制到我的构建目录中时,我使用了Qt winrt_armv7_msvc2017目录中的那些而不是msvc2017_64。 winrt_armv7_msvc2017 dll适用于WinRT应用程序,或者现在是UWP应用程序。 WinRT需要VCRUNTIME140_APP.dll,它可能只是Windows 10。
Finally figured it out. When I copied required Qt dll's into my build directory I used the ones in the Qt winrt_armv7_msvc2017 directory instead of msvc2017_64. The winrt_armv7_msvc2017 dlls are for WinRT apps, or, now, UWP apps. WinRT needs VCRUNTIME140_APP.dll, which is probably going to be Windows 10 only.


您好,您需要将Windows 7升级到Windows 10才能使VCRUNTIME140D_APP.dll正常工作(它用于UWP风格的Qt应用程序)。



另一个解决方案是安装一个不需要安装UWP的Qt版本,那么它也可以在Windows 7上运行。
Hi, you need to upgrade your Windows 7 to Windows 10 for the VCRUNTIME140D_APP.dll to work (it's used for UWP-flavored Qt applications).

Another solution is to install a version of Qt that does not require UWP to be installed, then it would work on Windows 7 as well.


嗯......我修好了。不知何故。我从头开始Qt项目,慢慢添加我的更改和tesseract-ocr头文件和lib文件,保存我的工作并检查每一步,并确保我将正确的文件添加到运行目录,问题不是出现。我成功地获得了一张OCR图像,所以我正在运行所有相关代码。所以我不知道问题是什么。
Well... I fixed it. Somehow. I started the Qt project over from scratch, slowly added my changes and the tesseract-ocr headers and lib files, saving my work and checking in every step, and making sure I added the correct files to the run directory, and the problem is not showing up. I successfully got an image OCR'ed, so I'm running all the relevant code. So I don't know what the problem was.


这篇关于Qt关于Windows 7的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆