简体   繁体   English

Qt脱机安装程序和兼容的C ++编译器安装

[英]Qt offline installer and compatible c++ compiler installation

I ve been trying to download and install QT . 我一直在尝试下载并安装QT。 I want to install the free version on multiple PC's and i want to use it for building very simple c++ desktop applications . 我想在多台PC上安装免费版本,并希望将其用于构建非常简单的c ++桌面应用程序。

I tried to download and install the online free version installer but the internet speed stopped the installation process multiple times with the error 我试图下载并安装在线免费版本安装程序,但互联网速度多次因错误而停止了安装过程

Please check your connection 请检查您的连接

Unfortunately WIFI connection and speed are weak because the institute i am teaching at is located in a small village. 不幸的是,WIFI连接和速度都很弱,因为我正在教的研究所位于一个小村庄。 Adding to the previous please note that hard drive space is critical for these PC's because they are quite old (i3) 2GB of RAM and 256 HDD. 另外,请注意,硬盘空间对于这些PC至关重要,因为它们很旧(i3)2GB RAM和256 HDD。

  • what i tried to do ? 我想做什么?

I ended up trying to install QT from the offline installer from this link : msvc2012_opengl-x86_64-offline.exe 我最终尝试通过以下链接从脱机安装程序安装QT: msvc2012_opengl-x86_64-offline.exe

It installed just fine , but then i get the following error : 它安装得很好,但是随后出现以下错误:

qt creator needs a compiler set up to build. qt创建者需要设置编译器才能构建。 configure a compiler in the kit options 在工具包选项中配置编译器

I found a lot of solutions here for adding a compiler from Tools>Options.... and also tried to configure MIN_GW compiler following the instructions from the QT documentation Adding a Compiler section. 我在此处找到了许多从Tools> Options ....添加编译器的解决方案,并且还尝试按照QT文档Adding Compiler部分中的说明配置MIN_GW编译器。

When i add the compilers the compiler prompts an exclamation mark and a prompt saying that the compiler is not compatible to this version of QT . 当我添加编译器时,编译器会提示一个感叹号,并提示说该编译器与此版本的QT不兼容。

  • What i want to do ? 我想做的事 ?

Ideally i would want to find a compatible compiler for the offline installer version OR maybe if someone could suggest any working links for an offline QT installer and a compatible c++ compiler for Windows 10. 理想情况下,我想为脱机安装程序版本找到兼容的编译器,或者是否有人可以为脱机QT安装程序建议任何工作链接以及与Windows 10兼容的c ++编译器。

The easiest way is to use the MinGW version of Qt, it includes the required MinGW compiler. 最简单的方法是使用Qt的MinGW版本,它包括所需的MinGW编译器。 It is available from the same link you provided. 可从您提供的相同链接中获得。 (However I would recommend you to use 5.9 or 5.6 which are both LTS versions.) (但是我建议您使用都是LTS版本的5.9或5.6。)

Otherwise you have to make sure that you have the matching MS Visual Studio version installed. 否则,必须确保安装了匹配的MS Visual Studio版本。 For msvc2012_opengl-x86_64-offline.exe you need Visual Studio 2012. The express editions usually work, but not for 64 bit, which is what you downloaded. 对于msvc2012_opengl-x86_64-offline.exe您需要Visual Studio2012。 快速版本通常适用,但不适用于您下载的64位。 (The community editions of later Visual Studios do include a 64 bit compiler.) (更高版本的Visual Studio的社区版本确实包含64位编译器。)

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

相关问题 英特尔C ++编译器安装程序找不到Visual Studio - Intel C++ Compiler Installer not finding Visual Studio 如何在基于C ++ / QT的安装程序中检测Internet断开连接 - How to detect internet disconnectivity in c++/QT based installer Qt C ++项目的简单安装程序,仅针对Windows - Simple installer for Qt C++ project, targeting Windows only C ++ Qt可执行文件与所有Windows计算机兼容吗? - C++ Qt executable compatible with all windows computers? Qt C ++:静态断言失败:信号和插槽参数不兼容 - Qt C++: static assertion failed: Signal and slot arguments are not compatible 将Fedora 23上的C / C ++编译器降级为兼容MATLAB R2016a的编译器 - Downgrading C/C++ compiler on Fedora 23 to a MATLAB R2016a-compatible compiler `未检测到使用 mex 支持的编译器时出错`:无法为 MATLAB 安装与 CUDA 兼容的 C++ 编译器 - `Error using mex Supported compiler not detected`: can't install a CUDA-compatible C++ compiler for MATLAB 安装Rtools。 无法找到C ++编译器 - Installation of Rtools. Can't fnd C++ compiler Marvell C ++编译器(用于Windows CE),用于构建Qt - Marvell C++ compiler (for Windows CE) for building Qt 如何在Windows上的Visual C ++编译器中使用Qt Creator? - How to use Qt Creator with Visual C++ compiler on windows?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM