简体   繁体   English

为什么我需要在QtCreator上进行qMake项目的CMake?

[英]Why do I need CMake for a qMake Project at QtCreator?

I want to compile and link the QtWebEngineWidgets Library and for that I need a MSVC Compiler. 我想编译和链接QtWebEngineWidgets库,为此我需要一个MSVC编译器。 Therefor QtCreator(Version 4.2.1) recognized the Visual Studio 2017 Installation on my system but it's not working at all, because the kit shows the Error: 因此,QtCreator(版本4.2.1)在我的系统上识别了Visual Studio 2017安装,但它根本不起作用,因为该套件显示错误:

Cmake configuration has no path to a C Compiler set, even though the Kit has a valid tool chain. 即使Kit具有有效的工具链,Cmake配置也没有指向C编译器集的路径。

The Same error occures for the C++ Compiler at the set. 在集合上的C ++编译器发生相同的错误。 Could you please explain to me, why the Kit needs Cmake for linking and how can I fix this? 你可以向我解释一下,为什么Kit需要Cmake进行链接,我该如何解决这个问题?

It's a warning and you can use the Kit for non-CMake purposes. 这是一个警告,您可以将该套件用于非CMake目的。 (Where is your error?) (你的错误在哪里?)
Your CMake Configuration at the bottom of the Kits tab is probably empty or broken, try Change and Reset . 套件”选项卡底部的“CMake配置”可能为空或已损坏,请尝试更改重置

QtWebEngine needs CMake because Chromium (as part of it) seems to use it and it is used for tests. QtWebEngine需要CMake,因为Chromium(作为它的一部分)似乎使用它并且它用于测试。

Why do you want to build the library yourself though? 你为什么要自己建立图书馆呢? It's part of the official downloads (the VS2015 builds are compatible with VS2017). 这是官方下载的一部分(VS2015版本与VS2017兼容)。

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

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