Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cannot build QtWebkit module using Qt 5.12.8 LTS sources
Qt 6.11 is out! See what's new in the release blog

Cannot build QtWebkit module using Qt 5.12.8 LTS sources

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ramakanth
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • Pradeep P NP Offline
        Pradeep P NP Offline
        Pradeep P N
        wrote on last edited by
        #3

        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 Nimbalkar.
        Upvote the answer(s) that helped you to solve the issue...
        Keep code clean.

        R 1 Reply Last reply
        0
        • Pradeep P NP Pradeep P N

          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.

          R Offline
          R Offline
          Ramakanth
          wrote on last edited by
          #4

          @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

          jsulmJ 1 Reply Last reply
          0
          • R Ramakanth

            @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

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @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.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • R Offline
              R Offline
              Ramakanth
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved