Qt 6.4.0 cmake failed to find required Qt component WebEngineWidgets
-
Hello,
When trying to build for android I get the following error:
/Users/okra/qt_projects/learning/counter/counter/CMakeLists.txt:15: error: Found package configuration file: /Users/okra/Qt/6.4.0/android_arm64_v8a/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find required Qt component "WebEngineWidgets". Expected Config file at "/Users/okra/Qt/6.4.0/android_arm64_v8a/lib/cmake/Qt6WebEngineWidgets/Qt6WebEngineWidgetsConfig.cmake" does NOT exist
From cmake:
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets Network Core WebEngineWidgets) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Network Core WebEngineWidgets) ... target_link_libraries(counter PRIVATE Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::WebEngineWidgets)
Building for MacOS with QWebEngineView works without any errors, though.
Am I missing something particular to my
android_arm64_v8a
kit or is this not supported?