我正在尝试使用CMake
构建一个Qt Quick Controls
应用程序。我用下面的文档:CMake未找到Qt5QuickCompiler
http://doc.qt.io/QtQuickCompiler/qquickcompiler-building-with-cmake.html
当运行CMake
,我得到这个错误:
By not providing "FindQt5QuickCompiler.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5QuickCompiler", but CMake did not find one.
Could not find a package configuration file provided by "Qt5QuickCompiler"
with any of the following names:
Qt5QuickCompilerConfig.cmake
qt5quickcompiler-config.cmake
在这一行:
FIND_PACKAGE(Qt5QuickCompiler)
显然CMake
未找到Qt5QuickCompiler
。我检查了我的Qt
文件夹(C:\ Qt),但它不在那里。但我可以运行这个应用程序QMake
。
我需要设置什么才能找到Qt5QuickCompiler
?
请不要张贴的截图再次,它不回答你的问题。你没有下载Qt Quick编译器,对吧? (1)写一个答案,你没有下载它,但它是必要的。 (2)接受一个给定的答案,因为他们可能会帮助你。在答案中添加评论,表明您错过了下载。这归功于这些人的帮助。 (3)如果你认为这个问题对其他人没有意义,那就删除它。 – usr1234567