我正在尝试使用构建Qt Quick Controls
应用程序CMake
。我使用以下文档:
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
?
错误非常明显:CMake没有Qt5QuickCompiler可以找到的模块。它只是不知道它是什么。我刚刚检查了相应的cmake文件夹,但没有该文件。我不确定Qt文档页面在谈论什么,但是CMake发行版中没有这样的文件。也许Qt源在某个地方有此文件?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句