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
Forum Updated to NodeBB v4.3 + New Features

Cannot build QtWebkit module using Qt 5.12.8 LTS sources

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 Posters 1.3k 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 24 Apr 2020, 04:16 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
    • J Offline
      J Offline
      JoeCFD
      wrote on 25 Apr 2020, 15:11 last edited by
      #2

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

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pradeep P N
        wrote on 25 Apr 2020, 15:42 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 30 Apr 2020, 09:26
        0
        • P Pradeep P N
          25 Apr 2020, 15:42

          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 30 Apr 2020, 09:26 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

          J 1 Reply Last reply 30 Apr 2020, 14:35
          0
          • R Ramakanth
            30 Apr 2020, 09:26

            @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

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 30 Apr 2020, 14:35 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 25 Jun 2020, 05:57 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