qt - 在 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 吗?或者我做错了什么?
解决方案
推荐阅读
- django-rest-framework - 无法在 django-rest API 中使用 POST 请求存储数据
- reactjs - 如何使用条件更改数组中特定值的状态
- c# - 如何修复:NUnit 单元测试未显示在 Visual Studio 社区 (Mac) 的测试板中
- excel - 跨列循环,如果列中的范围包含字符串,则将公式应用于列中的第一个单元格
- javascript - indexOf 括号结束
- mysql - 为什么“WHERE column IS NOT NULL”在我的代码中不起作用?
- javascript - 更改AngularJS中的背景图像按钮
- python - Pygame 射击到位置
- .net - ARC-Authentication-Results permerror 从 c# 发送电子邮件
- r - 在R中每个实体的最小行要求条件下插入具有NA值的行数