Important: Please read the Qt Code of Conduct -

Cannot build QtWebkit module using Qt 5.12.8 LTS sources

  • I downloaded the Qt Webkit sources from
    as part of building Qt 5.12.8 sources assuming it shall be compatible. However, it didnot build QtWebkit module.

    Even building as a separate module, qmake is not successful.

    ubuntu@ubuntu:~/qt-everywhere-src-5.12.8/qtwebkit$ qmake
    Cannot read /home/ubuntu/qt-everywhere-src-5.12.8/qtwebkit/release/Source/WebKit/qt_lib_webkit.pri: No such file or directory
    Cannot read /home/ubuntu/qt-everywhere-src-5.12.8/qtwebkit/release/Source/WebKit/qt_lib_webkitwidgets.pri: No such file or directory

    Could you please let me know compatible QtWebkit sources for Qt 5.12.8 LTS sources or how to build Qtwebkit as a separate or inclusive module of Qt?

  • this module has been deprecated for a while.Use QWebEngine module.

  • Hi @Ramakanth

    Can you have a look at this link.

    I have not tried it, Hope this can help you if u need QtWebkit.

    All the best.

  • @Pradeep-P-N Followed the instructions provided in
    However, it throws below error:

    CMake Error at Source/cmake/OptionsQt.cmake:592 (message):
    Qt with OpenGL support is required for ENABLE_OPENGL
    Call Stack (most recent call first):
    Source/cmake/WebKitCommon.cmake:51 (include)
    CMakeLists.txt:137 (include)

    Here is the configure line for building Qt 5.12.8 sources:

    ./configure -opensource -confirm-license -qt-libjpeg -qt-zlib -qt-libpng -sql-sqlite -qt-xcb -no-cups -no-opengl -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtnetworkauth -skip qtlocation -skip qtmacextras -skip qtpurchasing -skip qtmultimedia -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttools -skip qtwayland -skip qtwebsockets -skip qtwebview -skip qtwebchannel -skip qtwinextras -skip qtandroidextras -skip qtx11extras -skip qtxmlpatterns -nomake tools -nomake tests -nomake examples -no-use-gold-linker -no-iconv -no-mtdev -dbus -fontconfig -system-freetype -no-libudev -no-openssl -qt-pcre -no-qml-debug -v

  • Lifetime Qt Champion

    @Ramakanth said in Cannot build QtWebkit module using Qt 5.12.8 LTS sources:


    You built Qt without OpenGL but QtWebKit requires OpenGL.
    Build Qt with OpenGL support.

  • Marking the thread as solved as it is solved using the instructions provided in

    and using below cmake configuration with Qt 5.212 sources:


    make install

Log in to reply