使用 CMake
创建一个新的 Qt6 Android
的 QtQuick
项目时,我遇到了问题。在项目创建后,CMake 立即失败:
CMake Error at CMakeLists.txt:28 (find_package):
Found package configuration file:
C:/Qt/6.0.0/android_armv7/lib/cmake/Qt6/Qt6Config.cmake
but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
FOUND. The reason is given by package:
Failed to find Qt component "Core" config file at ""
Failed to find Qt component "Quick" config file at ""
我使用的操作系统是Windows,在每个qt6 android kit(x86、x86_64、armv7和arm64)上都出现了这个错误。 是什么原因导致了这个问题?我已经尝试过解决方法,并发现已报告了类似的错误,但仍然找不到解决方法。欢迎任何建议或帮助。先行致谢。 更新:我还注意到,当我通过MaintenanceTool安装新的android kit(例如5.12.10 x86和armv7)时,所有我的Qt6 android kits都被删除了。但msvc和mingw Qt6 kits没有被删除。