Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Compiling Qt WebKit tests on linux
Servers for Qt installer are currently down

Compiling Qt WebKit tests on linux

Scheduled Pinned Locked Moved Qt WebKit
4 Posts 3 Posters 5.4k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    ljl_
    wrote on 16 Nov 2012, 12:58 last edited by
    #1

    Hi,

    i have following options on my makefile, but i don't manage to compile Qt WebKit Tests.

    I have commented : -nomake tests

    What are the good options to compile it ?

    Looking at ./webkit/WebKitBuild/Release/bin/ , i can see only jsc, although i was expected to have
    also dumprendertree.

    thanks for the support

    #!/bin/bash

    cd ../../..

    PYTHON_DIR="$PWD/python/bin"
    GPERF_DIR="$PWD/gperf/bin"
    MAKEARGS=-j4

    QTARCH=$ARCH
    if [ $QTARCH = "i686-cm" ]
    then
    QTARCH="i386"
    fi

    INSTALL_ROOT="$PWD/install_root/NDS"

    Configuring Qt

    QT_INSTALL_PREFIX="$INSTALL_ROOT/qtinstall"
    cd qt
    make clean confclean # Clear any previous build and configuration
    ./configure
    -verbose
    -qpa
    -arch $QTARCH
    -xplatform qpa/fusion/$NDS_PLATFORM
    -little-endian
    -release
    -opensource
    -shared
    -confirm-license
    -prefix $QT_INSTALL_PREFIX
    -prefix-install
    -svg
    -no-webkit
    -javascript-jit
    -no-qt3support
    -no-declarative
    -no-multimedia
    -no-audio-backend
    -no-scripttools
    -no-xmlpatterns
    -no-accessibility
    -no-cups
    -no-qvfb
    -nomake docs
    -nomake translations
    -nomake tools
    -nomake demos
    -nomake examples
    #-nomake tests
    -qt-zlib
    -qt-libpng
    -qt-libjpeg
    -qt-freetype
    -qt-libtiff
    -qt-libmng
    2>&1 | tee /tmp/trace.txt

    Building Qt

    make $MAKEARGS 2>&1 | tee -a /tmp/trace.txt
    make install

    Building Webkit

    cd ../webkit
    unset QTINC QTLIB
    export QTDIR=$QT_INSTALL_PREFIX
    export PATH=$QTDIR/bin:$PYTHON_DIR:$GPERF_DIR:$PATH
    export QMAKESPEC="qpa/fusion/$NDS_PLATFORM"
    export SQLITE3SRCDIR="$PWD/../qt/src/3rdparty/sqlite"
    env > ../build/compil_env

    ./Tools/Scripts/build-webkit
    --qt \

    --only-webkit \

    --no-webkit2
    --no-inspector
    --no-javascript-debugger
    --no-ftpdir
    --svg
    --makeargs=$MAKEARGS

    ./Tools/Scripts/build-dumprendertree
    --qt \

    --only-webkit \

    --no-webkit2
    --no-inspector
    --no-javascript-debugger
    --no-ftpdir
    --svg
    --makeargs=$MAKEARGS

    cd WebKitBuild/Release
    make install

    Can someone answer please ?
    I have posted this question on Friday 16 november 2012 and still no answer ...

    1 Reply Last reply
    0
    • L Offline
      L Offline
      ljl_
      wrote on 26 Nov 2012, 13:48 last edited by
      #2

      Hi,

      I reply to this post, as i have found the problem.
      It is also for other people that may encounter the same issue.
      It would be great that questions will be answered more often.
      There are indeed to many un-answered response at this forum , that makes this forum not very reactive and professional ...

      Here is the answer :

      We must change : Tools.pro file :
      to support followig directives :

      SUBDIRS += QtTestBrowser/QtTestBrowser.pro
      SUBDIRS += DumpRenderTree/qt/DumpRenderTree.pro
      SUBDIRS += DumpRenderTree/qt/ImageDiff.pro

      then, after compilation we can see in :
      ./webkit/WebKitBuild/Release/bin the missing binaries :

      DumpRenderTree, ImageDiff ...

      Regards

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        y.meyer
        wrote on 25 Oct 2013, 12:30 last edited by
        #3

        I found this thread, and it help to me find the solution, but it has change a little since 2012. So I update this post

        On Qt 5.1, by default the build is for production.
        To build testing tools like DumpRenderTree, it is possible to disable the default feature in default_pre.prf.

        Or change the variable production_build (in configure.prf) by adding the tools.

        Regards,
        Yannick

        1 Reply Last reply
        0
        • M Offline
          M Offline
          muhammadaliqasmi
          wrote on 13 Aug 2015, 11:20 last edited by muhammadaliqasmi
          #4

          The default compilation settings of QtWebkit (in Qt5.5 ) generates strip down version of qtwebkit which does not include DRT. In order to get DRT goto <path to qt5 source code>/qt5/qtwebkit/Tools/qmake/mkspecs/features/configure.prf and comment the following line. (Note ## is used for comment.)

          production_build {
          
                  ## WEBKIT_CONFIG -= $$WEBKIT_TOOLS_CONFIG build_tests
          
              }
          
          • First clean any previous configuration:
            $ git submodule foreach --recursive "git clean -dfx"
          • Configure:
            $ ./configure -opensource -confirm-license -release
          • Build webkit only:
            $ make module-qtwebkit
          • Install:
            $sudo make install

          You will find DumpRenderTree executable in <path to qt5 source code>/qt5/qtwebkit/bin

          • Set environment variable
            $ export WEBKIT_TESTFONTS=<path to qt5 source code>/qt5/qtwebkit/Tools/DumpRenderTree/gtk/fonts
          • Run
            $ cd <path to qt5 source code>/qt5/qtwebkit/bin
            $ ./DumpRenderTree http://www.xyz.com
          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