[Bug 287596] www/qt6-webengine: find_package(Qt6 COMPONENTS WebEngineWidgets REQUIRED) fails to find the WebEngineWidgets component

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jun 17 04:19:14 BST 2025


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287596

            Bug ID: 287596
           Summary: www/qt6-webengine: find_package(Qt6 COMPONENTS
                    WebEngineWidgets REQUIRED) fails to find the
                    WebEngineWidgets component
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde at FreeBSD.org
          Reporter: yuri at freebsd.org
          Assignee: kde at FreeBSD.org
             Flags: maintainer-feedback?(kde at FreeBSD.org)

Versions:
qt6-webengine-6.9.1
cmake-core-3.31.7
FreeBSD 14.2 STABLE amd64


-----log-----
$ cat CMakeLists.txt 

find_package(Qt6 COMPONENTS WebEngineWidgets REQUIRED)

$ cmake .
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is Clang 19.1.7
-- The CXX compiler identification is Clang 19.1.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
CMake Warning at
/usr/local/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76
(find_package):
  Could not find a configuration file for package "Qt6Core" that is
  compatible with requested version "6.9.1".

  The following configuration files were considered but not accepted:

    /usr/local/lib/cmake/Qt6Core/Qt6CoreConfig.cmake, version: 6.8.2

Call Stack (most recent call first):
  /usr/local/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:145
(find_dependency)
 
/usr/local/lib/cmake/Qt6WebEngineWidgets/Qt6WebEngineWidgetsDependencies.cmake:45
(_qt_internal_find_qt_dependencies)
  /usr/local/lib/cmake/Qt6WebEngineWidgets/Qt6WebEngineWidgetsConfig.cmake:43
(include)
  /usr/local/lib/cmake/Qt6/Qt6Config.cmake:190 (find_package)
  CMakeLists.txt:3 (find_package)


CMake Warning at /usr/local/lib/cmake/Qt6/Qt6Config.cmake:190 (find_package):
  Found package configuration file:

    /usr/local/lib/cmake/Qt6WebEngineWidgets/Qt6WebEngineWidgetsConfig.cmake

  but it set Qt6WebEngineWidgets_FOUND to FALSE so package
  "Qt6WebEngineWidgets" is considered to be NOT FOUND.  Reason given by
  package:

  Qt6WebEngineWidgets could not be found because dependency Qt6Core could not
  be found.

  Configuring with --debug-find-pkg=Qt6Core might reveal details why the
  package was not found.

  Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
  of the path variables that find_package uses to try and find the package.

Call Stack (most recent call first):
  CMakeLists.txt:3 (find_package)


CMake Error at CMakeLists.txt:3 (find_package):
  Found package configuration file:

    /usr/local/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
  "/usr/local/lib/cmake/Qt6WebEngineWidgets/Qt6WebEngineWidgetsConfig.cmake"
  exists



  Configuring with --debug-find-pkg=Qt6WebEngineWidgets might reveal details
  why the package was not found.

  Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
  of the path variables that find_package uses to try and find the package.



CMake Error in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.31)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".


-- Configuring incomplete, errors occurred!

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list