简体   繁体   English

QT Creator 无法在 Windows 10 中使用 CMake 或 QMake

[英]QT Creator can't use CMake or QMake in Windows 10

I am trying to do a course task with QT Creator and we are practicing organizing the programs in sperate classes files and such.我正在尝试使用 QT Creator 完成一项课程任务,我们正在练习在单独的类文件等中组织程序。 I am a beginner and I suppose I just need to add classes to the project to do this.我是初学者,我想我只需要在项目中添加类就可以做到这一点。 But that's not my problem as that could be found on the internet if I don't know how to do it.但这不是我的问题,因为如果我不知道该怎么做,可以在互联网上找到。

The problem is how to get started with the tool kits, I choose New project and click on QMake and then I can't click Next past that.问题是如何开始使用工具包,我选择新建项目并单击 QMake,然后我无法单击下一步。 With Cmake the project is created but CMake returns code 1.使用 Cmake 创建项目,但 CMake 返回代码 1。

I installed both 32 bit and 64 bit.我安装了 32 位和 64 位。 I'm like WTH with this, a regular beginner user should be able to start with this IDE not just throw a bunch of GUI options that don't work.我很喜欢这个,一个普通的初学者用户应该能够从这个 IDE 开始,而不仅仅是抛出一堆不起作用的 GUI 选项。

How do you get from 0 to compiling C++ classes in QT Creator? QT Creator 中如何从 0 编译 C++ 类?

Here are the maintainer screenshots这是维护者截图

01 01

02 02

Modify the Desktop kit to point to the same compiler for C and C++ , Select Tools > Options > Kits修改桌面工具包以指向C 和 C++的相同编译器,选择工具 > 选项 > 工具包

And choose CMake for the plain console project.并为普通控制台项目选择CMake

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

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