Qt 创作者 4.8.4.Windows 7 - 64 位安装 [英] Qt Creator 4.8.4. windows 7 - 64bit installation

查看:53
本文介绍了Qt 创作者 4.8.4.Windows 7 - 64 位安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 QT 时遇到了一些困难,我需要在学校学习一些 GUI 应用程序.

I have some difficulties with QT, which I need for school for some GUI applications.

我最近完成了以下步骤:

I have recently done these steps:

1) mingw-get-inst-20120426.exe来自 SourceForge 使用默认设置安装到 C:\MinGW\.

1) mingw-get-inst-20120426.exefrom SourceForge installed to C:\MinGW\ with default settings.

2) 安装了 QT Project 的适用于 Windows 的 Qt 库 4.8.4(minGW 4.4,317 MB)到 C:\Qt\ 使用默认设置.这里发生错误:

2) Qt libraries 4.8.4 for Windows (minGW 4.4, 317 MB) from QT Project installed to C:\Qt\ with default settings. Here an error occurs:

    !!!There is a problem with your MinQW instalation
    !!!g++ not found in c:\MinGW\bin\
    !!!Do you still want to continue? Yes

我检查了 c:\MinGW\bin\ 没有这个文件

I checked c:\MinGW\bin\ there is no such file

3) Qt Creator 2.6.0 for Windows (51 MB) 也从 QT 安装到 C:\Qt\gtcreator-2.6.0 使用默认设置

3) Qt Creator 2.6.0 for Windows (51 MB)also from QT installed to C:\Qt\gtcreator-2.6.0 with default settings

4) 运行 QT IDE

4) Run the QT IDE

5) 打开项目或创建新项目.这里出现另一个错误

5) Open project or create new project. Another error occurs here

!!!No valid kits fond.

Qt Creator 使用无效的工具包桌面来解析项目.

Qt Creator uses the invalid kit Desktop to parse the project.

6) 打开 Options->Build &Run->Kits(但我不知道我应该如何设置 Kits 以及在哪里可以找到它们).

6) Open Options->Build & Run->Kits (But I don't know how should I set Kits and where to find them).

7) 能否也帮帮我,如何设置Qt版本(Options->Buid&Run->Qt Version)?我在哪里可以找到 qmake.exe?

7) Can you also help me, how to set Qt version (Options->Buid&Run->Qt Version)? Where do I find qmake.exe?

我也没有找到如何创建 GUI 应用程序.新文件或项目中没有这样的选项...

I also didn't find how to create GUI Application. There is no such option in New File or Project...

感谢您的帮助.

推荐答案

这很棘手 ;)

预编译的 Qt (MinGW) 只是 win32(不是 win64).

Precompiled Qt (MinGW) is only win32 (not win64).

预编译的 Qt 是用 MinGW-g++ 4.4 编译的,不能和其他的一起使用.

Precompiled Qt is compiled with MinGW-g++ 4.4 and won't work with other.

您必须下载这个:http://get.qt.nokia.com/misc/MinGW-gcc440_1.zip

////使用此版本的 MinGW,gdb 不会 工作(它不支持 python).尽管 QtSDK 已弃用(并且您不会在 qt-project.org 上找到它),但我强烈建议您下载此在线安装程序,并且在选择组件期间仅标记 MinGW.它将带有名为pythongdb"的文件夹.

//// With this version of MinGW, gdb won't work (it's not python-enabled). Although QtSDK is depracted (and you won't find it on qt-project.org), I highly recommend downloading this online installer and, during the selection of components mark only MinGW. It will come with folder named "pythongdb".

http://www.developer.nokia.com/info/sw.nokia.com/id/da8df288-e615-443d-be5c-00c8a72435f8/Qt_SDK.html(您可能需要注册.它是免费的.)////

http://www.developer.nokia.com/info/sw.nokia.com/id/da8df288-e615-443d-be5c-00c8a72435f8/Qt_SDK.html (You may need to register. It's free.) ////

通过 g++.exe 添加编译器"

Add "Compiler" by g++.exe

通过qmake.exe添加Qt版本".

Add "Qt Version" by qmake.exe.

使用上面配置的编译器和 Qt 版本添加工具包".您可以尝试将调试器从 CDB 更改为 GDB.

Add "Kit" with Compiler and Qt Version configured above. You can try to change debugger from CDB to GDB.

这篇关于Qt 创作者 4.8.4.Windows 7 - 64 位安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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