简体   繁体   English

C ++ Qt可执行文件与所有Windows计算机兼容吗?

[英]C++ Qt executable compatible with all windows computers?

I have had problems in the past using visual C++, when I ran the executable on other computers it required a .NET framework. 过去我在使用Visual C ++时遇到了问题,当我在其他计算机上运行可执行文件时,它需要一个.NET框架。 I have now started looking at c++ Qt GUI builder and from what I have read C++ doesnt require any additional downloads apart from the executable file to be able to run on other computers, is this true? 我现在开始研究c ++ Qt GUI生成器,从我阅读的内容来看,C ++不需要可执行文件之外的任何其他下载,就可以在其他计算机上运行,​​这是真的吗? If I use Qt to build my GUI and send it to other users they will need no other external downloads? 如果我使用Qt构建我的GUI并将其发送给其他用户,他们将不需要其他外部下载吗?

I have now started looking at c++ Qt GUI builder and from what I have read C++ doesnt require any additional downloads apart from the executable file to be able to run on other computers, is this true? 我现在开始研究c ++ Qt GUI生成器,从我阅读的内容来看,C ++不需要可执行文件之外的任何其他下载,就可以在其他计算机上运行,​​这是真的吗?

Not necessarily; 不必要; see below. 见下文。

If I use Qt to build my GUI and send it to other users they will need no other external downloads? 如果我使用Qt构建我的GUI并将其发送给其他用户,他们将不需要其他外部下载吗?

You will potentially need to get redistributables installed on each user machine where this is needed, but this is not a Qt issue, just a generic principle how VS/MSVC and Windows work. 您可能需要在需要的每台用户计算机上安装可再发行文件,但这不是Qt问题,而只是VS / MSVC和Windows工作方式的一般原则。 However, there is no gentle way around to it in my understanding. 但是,据我所知,并没有温和的方法。

I'm not 100% sure, but I can tell you that some of my users need to download the Visual C++ Redistributable package. 我不确定100%,但是我可以告诉您某些用户需要下载Visual C ++可再发行组件包。 They would sometimes get a missing "msvcr.dll" error. 他们有时会丢失“ msvcr.dll”错误。 Very frustrating. 非常沮丧。 I tried including the file with the install, but it was picked up as a virus by some antivirus programs. 我尝试将文件包含在安装过程中,但是某些防病毒程序将其作为病毒。

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

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