Can't build WebEngineWidgets example on Ubuntu 22.04, QT 6.10
-
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 -
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@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)?
-
@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)?
@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.