Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Use the most up-to-date community QtWebKit (#15342)
Browse files Browse the repository at this point in the history
  • Loading branch information
ariya committed Dec 25, 2019
1 parent e4a26a2 commit f38e1ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@ System requirements:
* C++ toolchain such as g++ 7 or later
* CMake version 3.5 or later
* Qt 5 toolkit
* Community QtWebKit version 5.212 or later
* Python 2.7 (to run the tests)


Installation on Linux
---------------------

Due to the required QtWebKit >= 5.212, only the following distributions will
be supported:

* Debian 10 (buster) or later
* Ubuntu 18.04 (bionic) or later
* Fedora 28 or later

On Debian/Ubuntu, the requirements can be fulfilled by installing these packages:

sudo apt install g++ cmake qt5-default libqt5webkit5-dev python
Expand Down
5 changes: 5 additions & 0 deletions src/phantom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <QMetaProperty>
#include <QScreen>
#include <QStandardPaths>
#include <QtWebKitVersion>
#include <QtWebKitWidgets/QWebPage>

#include "callback.h"
Expand All @@ -52,6 +53,10 @@
#include "webpage.h"
#include "webserver.h"

#if QTWEBKIT_VERSION < ((5<<16) | (212<<8))
#error "This version of QtWebKit is not supported. Please use QtWebKit >= 5.212"
#endif

static Phantom* phantomInstance = NULL;

// private:
Expand Down

0 comments on commit f38e1ae

Please sign in to comment.