Skip to content

How to compile WebKit for Qt5? #52

@TCH68k

Description

@TCH68k

I tried to configure WebKit:

cmake -DPORT=Qt -DCMAKE_BUILD_TYPE=Release -DENABLE_GEOLOCATION=OFF -DENABLE_OPENGL=ON -DENABLE_WEBKIT=ON -DENABLE_MEDIA_SOURCE=ON -DENABLE_NETSCAPE_PLUGIN_API=ON -DENABLE_X11_TARGET=ON -DDEVELOPER_MODE_FATAL_WARNINGS=OFF -DENABLE_VIDEO=ON -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ../

and got this error:

CMake Warning (dev) at Source/cmake/ECMPackageConfigHelpers.cmake:71 (message):
  Your project already requires a version of CMake that includes the
  find_dependency macro via the CMakeFindDependencyMacro module.  You should
  use CMakePackageConfigHelpers instead of ECMPackageConfigHelpers.
Call Stack (most recent call first):
  Source/cmake/OptionsQt.cmake:4 (include)
  Source/cmake/WebKitCommon.cmake:242 (include)
  CMakeLists.txt:16 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at Source/cmake/OptionsQt.cmake:246 (find_package):
  By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt6", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt6" (requested
  version 6.0.0) with any of the following names:

    Qt6Config.cmake
    qt6-config.cmake

  Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
  to a directory containing one of the above files.  If "Qt6" provides a
  separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  Source/cmake/WebKitCommon.cmake:242 (include)
  CMakeLists.txt:16 (include)

This is Debian 11, there is no Qt6 in the repository, but even if there would be, i intend to use WebKit with Otter Browser which uses Qt5, so i cannot build it for Qt6.

How can i build WebKit for Qt5?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions