Page MenuHomePhabricator

WebKit is depricated and has been removed from Qt5.8
Closed, ResolvedPublic

Description

During my investigation for T156989: Huggle unable to build on MacOS Sierra, I've discovered that WebKit has been removed. According to the docs, "QT is no longer a supported port of WebKit since 2013." (source). Because of this, Huggle can't be built on Qt 5.8 without special modifications.

Event Timeline

Petrb claimed this task.
Petrb subscribed.

We already support WebEngine, just run ./configure with --web-engine

Error is demonstrated even with --web-engine

Traveler:MacOS Matthew$ ./release.sh --qtpath=/Users/Matthew/Qt5.8.0/5.8/clang_64/
Checking sanity of system...
Options used: --qtpath --qtpath=/Users/Matthew/Qt5.8.0/5.8/clang_64/ --qt5 --extension --web-engine
Checking all required packages...
Checking for cmake...                                                                                                                                                                                                                [OK]
This is a git repository, updating modules...
Executing update.sh...                                                                                                                                                                                                               [OK]
Checking if version.txt exist...                                                                                                                                                                                                     [OK]
WARNING: build directory already exist make sure it's clean
CMake Error at extension_list/extension-scoring/CMakeLists.txt:20 (find_package):
  By not providing "FindQt5WebKit.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5WebKit", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5WebKit" with
  any of the following names:

    Qt5WebKitConfig.cmake
    qt5webkit-config.cmake

  Add the installation prefix of "Qt5WebKit" to CMAKE_PREFIX_PATH or set
  "Qt5WebKit_DIR" to a directory containing one of the above files.  If
  "Qt5WebKit" provides a separate development package or SDK, be sure it has
  been installed.


-- Configuring incomplete, errors occurred!
See also "/Users/Matthew/Documents/Programming/huggle3-qt-lx/huggle/huggle_release/CMakeFiles/CMakeOutput.log".

Relevant command: ./configure --qtpath "$QTDIR" "$qtver" --extension --web-engine (line 18 of release.sh)

Can you try to get a fresh clone of huggle repository? You seem to have some old submodules in there, I am fairly sure that dependency for WebKit in scoring extension was removed months ago.

After some more digging, it appears I am able to successfully build the current master branch, however; 3.1.22 does not build with the error mentioned above.

You appear to be forcing specific versions of the submodules. I assume the next step would be to attempt to override that?

that's because WebEngine is implemented in 3.2.0