From f38e1ae15848492f1ca746c803bbf46193a938af Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Wed, 25 Dec 2019 12:03:56 -0800 Subject: [PATCH] Use the most up-to-date community QtWebKit (#15342) --- INSTALL | 8 ++++++++ src/phantom.cpp | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/INSTALL b/INSTALL index 6c8b5ea651..cc165580f2 100644 --- a/INSTALL +++ b/INSTALL @@ -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 diff --git a/src/phantom.cpp b/src/phantom.cpp index 9565a89ea4..441cbde9e1 100644 --- a/src/phantom.cpp +++ b/src/phantom.cpp @@ -39,6 +39,7 @@ #include #include #include +#include #include #include "callback.h" @@ -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: