Changes between Version 74 and Version 75 of BuildingQtOnLinux


Ignore:
Timestamp:
Sep 9, 2013 2:19:51 AM (8 years ago)
Author:
jocelyn.turcotte@digia.com
Comment:

Remove outdated Qt4 information.

Legend:

Unmodified
Added
Removed
Modified
  • BuildingQtOnLinux

    v74 v75  
    99The code should be easily built on any Linux distribution which has development packages for Qt installed. Below is the list of dependencies:
    1010
    11   * '''Qt version 4.8.0 or later'''
     11  * '''Qt version 5.0.0 or later'''
    1212  * gperf (v3.0 or later)
    1313  * bison (v2.4.1 or later)
     
    2525First follow the instructions [QtWebKitContrib there to get the sources]. The Qt port is part of the WebKit source tree, so you don't need anything extra.
    2626
    27 Finally, set the QTDIR environment variable to Qt 4.x's installation path and make sure Qt 4.x's qmake is the first qmake in your PATH (typically by running `export PATH=$QTDIR/bin:$PATH`).
    28 
    29 If you are planning to compile it with [http://developer.qt.nokia.com/wiki/Building_Qt_5_from_Git Qt 5], QTDIR should point to `PathToRepository/qt5/qtbase/`. You should also use this script [https://github.com/ossy-szeged/qt5-tools/blob/master/build-qt5.sh build-qt5.sh] to build Qt5 (this is what the buildbots are using) (Don't forget to put [https://github.com/ossy-szeged/qt5-tools/blob/master/build-qt5-env build-qt5-env] in the same folder). Usually once a week we update the current Qt5 hash, so keep checking out this script.
     27Finally, set the QTDIR environment variable to Qt 5.x's installation path (or qtbase/bin for a Qt developer builds) and make sure Qt 5.x's qmake is the first qmake in your PATH (typically by running `export PATH=$QTDIR/bin:$PATH`).
    3028
    3129If you want the same environment to build bot, refer to [http://trac.webkit.org/wiki/QtWebKitGardening].
     
    5351WEBKIT_OUTPUTDIR=`pwd`/qtbuild  WebKit/Tools/Scripts/build-webkit --qt --makeargs="-j20 -s" --no-video --debug
    5452}}}
    55 
    56 If you are planning to compile webkit2, Qt5 is required ([http://developer.qt.nokia.com/wiki/Building_Qt_5_from_Git build instructions]) and it'll be compiling both webkit1 and webkit2 by default.
    5753
    5854== Optional feature flags and CONFIG options ==
     
    110106exec su - yourusername
    111107}}}
    112 
    113 === Using Qt 4.2 ===
    114 {{{
    115 ../../../WebKitQt/Api/qwebnetworkinterface_p.h:134: error: ‘QSslError’
    116 was not declared in this scope
    117 ../../../WebKitQt/Api/qwebnetworkinterface_p.h:134: error: template
    118 argument 1 is invalid
    119 ../../../WebKitQt/Api/qwebnetworkinterface_p.h:135: error:
    120 ‘QAuthenticator’ has not been declared
    121 ../../../WebKitQt/Api/qwebnetworkinterface_p.h:136: error: expected ‘,’
    122 or ‘...’ before ‘&’ token
    123 ../../../WebKitQt/Api/qwebnetworkinterface_p.h:136: error: ISO C++
    124 forbids declaration of ‘QNetworkProxy’ with no type
    125 make[1]: *** [tmp/ResourceHandleQt.o] Error 1
    126 }}}
    127 
    128 This error is caused by not having the minimum version of Qt installed.  Install the minimum version of Qt, set the
    129 'QTDIR' environment variable pointing to this version and try building WebKit again.
    130108
    131109=== Missing gperf ===
     
    215193== Dependencies for specific Linux distributions ==
    216194
    217 === Debian/Ubuntu Linux ===
    218 To install required dependencies on Debian/Ubuntu, do
    219 {{{
    220 sudo apt-get install bison flex libqt4-dev libqt4-opengl-dev libphonon-dev libicu-dev libsqlite3-dev libxext-dev libxrender-dev gperf libfontconfig1-dev libphonon-dev libpng12-dev libjpeg62-dev g++
    221 }}}
    222 Note: Some ubuntu distributions does not install qt 4.7.0 with the above command. So you have to install it separately from qt.nokia.com or add "deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu lucid main" to apt sources file /etc/apt/sources.list and do apt-get update and then install libqt4-dev package 
    223 
    224195=== Ubuntu Oneiric (11.10) Linux - '''the simplest way''' ===
    225196
    226197Install sedkit-env-qtwebkit package from this PPA: https://launchpad.net/~u-szeged/+archive/sedkit to install all required dependencies.
    227198
    228 Download, build and install Qt 4.8.0 - http://qt.nokia.com/downloads ()
    229 
    230 === Ark Linux ===
    231 On Ark Linux, install the required dependencies using
    232 {{{
    233 apt-get install devel-core qt4-devel qmake gperf bison sqlite-devel
    234 }}}
    235 
    236 Alternatively, install the needed packages (see list above) through Mission Control -> Install Software.
    237 
    238 === OpenSUSE Linux ===
    239 This was tested on openSUSE 11.1
    240 {{{
    241 sudo zypper in libqt4-devel gperf bison libicu-devel sqlite-devel
    242 }}}
    243 
    244 === Fedora Linux ===
    245 This was tested on Fedora 13
    246 {{{
    247 sudo yum install gcc-c++ bison flex gperf phonon-devel qt-devel sqlite-devel libXrender-devel fontconfig-devel libicu-devel libXext-devel
    248 }}}
     199Download, build and install Qt 5 - http://qt-project.org/downloads