如何解决使用 CMake 找不到 QtQuickCompiler
我第一次尝试使用 QtQuickCompiler,所以我查看了 Qt 文档。 (https://doc.qt.io/QtQuickCompiler/qquickcompiler-building-with-cmake.html)。但是如果我调用 find_package(Qt6QuickCompiler)
它会显示我,
By not providing "FindQt6QuickCompiler.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt6QuickCompiler",but CMake did not find one.
Could not find a package configuration file provided by "Qt6QuickCompiler"
with any of the following names:
Qt6QuickCompilerConfig.cmake
qt6quickcompiler-config.cmake
Add the installation prefix of "Qt6QuickCompiler" to CMAKE_PREFIX_PATH or
set "Qt6QuickCompiler_DIR" to a directory containing one of the above
files. If "Qt6QuickCompiler" provides a separate development package or
SDK,be sure it has been installed.
此后我搜索了Qt目录,但没有找到。 Qt6 没有 QtQuickCompiler 吗?还是我做错了什么?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。