Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Can't build WebEngineWidgets example on Ubuntu 22.04, QT 6.10
Forum Updated to NodeBB v4.3 + New Features

Can't build WebEngineWidgets example on Ubuntu 22.04, QT 6.10

Scheduled Pinned Locked Moved Unsolved QtWebEngine
3 Posts 2 Posters 372 Views
  • 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
    GuitGentlyWeeps
    wrote on last edited by
    #1

    Hi,

    As the subject line shows I cannot build WebEngine Widgets Map example on Ubuntu 22.04 using QT 6.10, and QTCreator 18.00.

    It fails due to CMake not being able to find the WebEngineWidgets package. I have verified that this package is installed.
    I've seen some other posts of this problem but those had to do with Windows and MinGW. Anyone know what might be going on here?

    The error printout is:

    [cmake] CMake Error at build/Desktop_Qt_6_10_0-Debug/.qtc/package-manager/maintenance_tool_provider.cmake:333 (find_package):
    [cmake] Found package configuration file:
    [cmake]
    [cmake] /home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6/Qt6Config.cmake
    [cmake]
    [cmake] but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
    [cmake] FOUND. Reason given by package:
    [cmake]
    [cmake] Failed to find required Qt component "WebEngineWidgets".
    [cmake]
    [cmake] Expected Config file at
    [cmake] "/home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6WebEngineWidgets/Qt6WebEngineWidgetsConfig.cmake"
    [cmake] exists
    [cmake]
    [cmake]
    [cmake]
    [cmake] Configuring with --debug-find-pkg=Qt6WebEngineWidgets might reveal details
    [cmake] why the package was not found.
    [cmake]
    [cmake] find_package search path values and other context for the last package that was not found:
    [cmake] CMAKE_MODULE_PATH: /home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6;/home/sagusti/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules;/homeQT_6_10/6.10.0/gcc_64/lib/cmake/Qt6/3rdparty/kwin;/home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6;/home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules;/home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6/3rdparty/kwin
    [cmake] CMAKE_PREFIX_PATH: /home/QT_6_10/6.10.0/gcc_64
    [cmake] $ENV{CMAKE_PREFIX_PATH}:
    [cmake] CMAKE_FIND_ROOT_PATH:
    [cmake] _qt_additional_packages_prefix_paths:
    [cmake] _qt_additional_host_packages_prefix_paths:
    [cmake] _qt_cmake_dir: /home/sagusti/QT_6_10/6.10.0/gcc_64/lib/cmake
    [cmake] QT_HOST_PATH:
    [cmake] Qt6HostInfo_DIR:
    [cmake] Qt6_DIR: /home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6
    [cmake] CMAKE_TOOLCHAIN_FILE:
    [cmake] CMAKE_FIND_ROOT_PATH_MODE_PACKAGE:
    [cmake] CMAKE_SYSROOT:
    [cmake] $ENV{PATH}: /home/.local/bin:/home/sagusti/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/QT_6_10/Tools/Ninja
    [cmake]
    [cmake] Call Stack (most recent call first):
    [cmake] CMakeLists.txt:15 (find_package)
    [cmake]
    [cmake]
    [cmake] -- Configuring incomplete, errors occurred!
    [cmake]

    Thanks.
    Cheers,
    Robert

    jsulmJ 1 Reply Last reply
    0
    • G GuitGentlyWeeps

      Hi,

      As the subject line shows I cannot build WebEngine Widgets Map example on Ubuntu 22.04 using QT 6.10, and QTCreator 18.00.

      It fails due to CMake not being able to find the WebEngineWidgets package. I have verified that this package is installed.
      I've seen some other posts of this problem but those had to do with Windows and MinGW. Anyone know what might be going on here?

      The error printout is:

      [cmake] CMake Error at build/Desktop_Qt_6_10_0-Debug/.qtc/package-manager/maintenance_tool_provider.cmake:333 (find_package):
      [cmake] Found package configuration file:
      [cmake]
      [cmake] /home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6/Qt6Config.cmake
      [cmake]
      [cmake] but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
      [cmake] FOUND. Reason given by package:
      [cmake]
      [cmake] Failed to find required Qt component "WebEngineWidgets".
      [cmake]
      [cmake] Expected Config file at
      [cmake] "/home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6WebEngineWidgets/Qt6WebEngineWidgetsConfig.cmake"
      [cmake] exists
      [cmake]
      [cmake]
      [cmake]
      [cmake] Configuring with --debug-find-pkg=Qt6WebEngineWidgets might reveal details
      [cmake] why the package was not found.
      [cmake]
      [cmake] find_package search path values and other context for the last package that was not found:
      [cmake] CMAKE_MODULE_PATH: /home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6;/home/sagusti/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules;/homeQT_6_10/6.10.0/gcc_64/lib/cmake/Qt6/3rdparty/kwin;/home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6;/home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules;/home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6/3rdparty/kwin
      [cmake] CMAKE_PREFIX_PATH: /home/QT_6_10/6.10.0/gcc_64
      [cmake] $ENV{CMAKE_PREFIX_PATH}:
      [cmake] CMAKE_FIND_ROOT_PATH:
      [cmake] _qt_additional_packages_prefix_paths:
      [cmake] _qt_additional_host_packages_prefix_paths:
      [cmake] _qt_cmake_dir: /home/sagusti/QT_6_10/6.10.0/gcc_64/lib/cmake
      [cmake] QT_HOST_PATH:
      [cmake] Qt6HostInfo_DIR:
      [cmake] Qt6_DIR: /home/QT_6_10/6.10.0/gcc_64/lib/cmake/Qt6
      [cmake] CMAKE_TOOLCHAIN_FILE:
      [cmake] CMAKE_FIND_ROOT_PATH_MODE_PACKAGE:
      [cmake] CMAKE_SYSROOT:
      [cmake] $ENV{PATH}: /home/.local/bin:/home/sagusti/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/QT_6_10/Tools/Ninja
      [cmake]
      [cmake] Call Stack (most recent call first):
      [cmake] CMakeLists.txt:15 (find_package)
      [cmake]
      [cmake]
      [cmake] -- Configuring incomplete, errors occurred!
      [cmake]

      Thanks.
      Cheers,
      Robert

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @GuitGentlyWeeps said in Can't build WebEngineWidgets example on Ubuntu 22.04, QT 6.10:

      I have verified that this package is installed

      In the same Qt installation (/home/QT_6_10/6.10.0/gcc_64)?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      G 1 Reply Last reply
      0
      • jsulmJ jsulm

        @GuitGentlyWeeps said in Can't build WebEngineWidgets example on Ubuntu 22.04, QT 6.10:

        I have verified that this package is installed

        In the same Qt installation (/home/QT_6_10/6.10.0/gcc_64)?

        G Offline
        G Offline
        GuitGentlyWeeps
        wrote on last edited by GuitGentlyWeeps
        #3

        @jsulm Thanks for the reply. Correct. I created a folder name different from the default. FYI, I can build other examples so I don't think my installation folder is the issue.

        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