QT 版本、工具包和编译器 [英] QT versions, kits and compilers

查看:42
本文介绍了QT 版本、工具包和编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 QT 新手,想知道 QT 版本、工具包和编译器之间有什么区别.在我的构建和运行"选项卡中可用:

I am new in QT and was wondering what is the difference between QT versions, kits and compilers. In my "Build & Run" tab are avilable:

套件:

  • 桌面 Qt 5.4.2 MSVC2013 64bit2
  • 桌面Qt 5.5.0 MSVC2013 64bit

Qt 版本:

  • Qt 5.4.2 MSVC2013 64bit2 和一些 qmake.exe 路径
  • Qt 5.5.0 MSVC2013 64bit 和一些 qmake.exe 路径

编译器:

  • Microsoft Visual C++ 编译器 12.0(x86)
  • Microsoft Visual C++ 编译器 12.0(amd64)
  • Microsoft Visual C++ 编译器 12.0(x86_amd64)
  • Microsoft Visual C++ 编译器 12.0(x86_arm)
  • Microsoft Visual C++ 编译器 12.0(amd64_arm)
  • Microsoft Visual C++ 编译器 9.0(x86)
  • Microsoft Visual C++ 编译器 9.0(x86_amd64)
  • Windows Mobile 5.0 掌上电脑 SDK (ARMV4I)
  • Windows Mobile 5.0 智能手机 SDK (ARMV4I)

我尝试将 tesseract 3.02 与 QT 链接(之前我已成功将其与 Visual Studio 2013 链接)但出现了如下非常奇怪的错误:

I tried to link tesseract 3.02 with QT(I have linked it with Visual Studio 2013 successfuly before that) but very strange errors like below appeared:

但后来我记得在 VS 2013 中这是因为在 64 位编译中使用了 32 位库.我下载的 Qt 设置是qt-unified-windows-x86-2.0.2-2-online.exe",即它是 32 位的.现在我很困惑——我现在为我的项目 64 或 32 使用什么位,64 位和 64 位 2 有什么区别,必须是 32 位——编译器、qt 版本或工具包.如果有人可以简单解释一下什么是套件,qt版本和使用的编译器(我当然知道什么是编译器,但无法获得SDK和编译器之间的参考).

But then I have remembered in VS 2013 this was becouse of the use of 32 bit libs in 64 bit compilation. The Qt setup I have downloaded is "qt-unified-windows-x86-2.0.2-2-online.exe" i.e. it is 32 bit. And now I am very comfused - what bits I am using right now for my project 64 or 32, what is the difference between 64bit and 64bit2, which must be 32 bit - the compiler, the qt version or the kits. If someone can give simple explanation together with for what are kits,qt version and compilers used(of course I know what is compiler, but cant get the reference between SDK and compiler).

推荐答案

Qt 版本是您从 digia 下载的 Qt 包(库、源代码、文档等...),编译器是您机器上的编译器和套件是这两者的有效组合.

Qt versions are Qt packages that you download from digia (libraries, source code, documentation, etc...), compilers are the compilers you have on your machine and kits are valid combinations of these two.

在你的情况下,你有:

  • Qt 5.4.2 64 位
  • Qt 5.5.0 64 位
  • Msvc 32 位和 64 位

您可以将两个 Qt 版本(即 64 位)与 64 位版本的 msvc 编译器结合使用,但不能与其 32 位版本结合使用.

you can combine the two Qt versions (that are 64bit) with the 64bit version of the msvc compiler, but not with its 32bit version.

这篇关于QT 版本、工具包和编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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