Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Cannot build QtWebkit module using Qt 5.12.8 LTS sources



  • I downloaded the Qt Webkit sources from http://download.qt.io/snapshots/ci/qtwebkit/5.212/latest/src/submodules/qtwebkit-opensource-src-5.212.tar.xz
    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.
    https://github.com/qtwebkit/qtwebkit

    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 https://github.com/qtwebkit/qtwebkit/wiki/Building-QtWebKit-on-Linux
    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


  • Qt Champions 2019

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

    -no-opengl

    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
    https://github.com/qtwebkit/qtwebkit/wiki/Building-QtWebKit-on-Linux

    and using below cmake configuration with Qt 5.212 sources:

    cmake -DPORT=Qt -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=arm -DCMAKE_SYSROOT=$SDKPREFIX -DCMAKE_C_COMPILER=$SDKPATH/usr/bin/arm-linux-gnueabihf-gcc
    -DCMAKE_CXX_COMPILER=$SDKPATH/usr/bin/arm-linux-gnueabihf-g++ -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY
    -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY -DQt5_DIR=$SDKPREFIX/usr/local/Qt-5.12.8/lib/cmake/Qt5 -DENABLE_WEBKIT2=OFF -DENABLE_OPENGL=OFF -DENABLE_GEOLOCATION=OFF -DENABLE_DEVICE_ORIENTATION=OFF -DENABLE_VIDEO=OFF -DENABLE_WEB_AUDIO=OFF -DUSE_LIBHYPHEN=OFF ../../qtwebkit;

    make
    make install


Log in to reply