Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 6.4.0 cmake failed to find required Qt component WebEngineWidgets
Qt 6.11 is out! See what's new in the release blog

Qt 6.4.0 cmake failed to find required Qt component WebEngineWidgets

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gween
    wrote on last edited by gween
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      QtWebEngine is not available for mobile platforms. Use the QtWebView module.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved