Changes between Version 74 and Version 75 of BuildingQtOnLinux
- Timestamp:
- Sep 9, 2013, 2:19:51 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingQtOnLinux
v74 v75 9 9 The code should be easily built on any Linux distribution which has development packages for Qt installed. Below is the list of dependencies: 10 10 11 * '''Qt version 4.8.0 or later'''11 * '''Qt version 5.0.0 or later''' 12 12 * gperf (v3.0 or later) 13 13 * bison (v2.4.1 or later) … … 25 25 First 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. 26 26 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. 27 Finally, 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`). 30 28 31 29 If you want the same environment to build bot, refer to [http://trac.webkit.org/wiki/QtWebKitGardening]. … … 53 51 WEBKIT_OUTPUTDIR=`pwd`/qtbuild WebKit/Tools/Scripts/build-webkit --qt --makeargs="-j20 -s" --no-video --debug 54 52 }}} 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.57 53 58 54 == Optional feature flags and CONFIG options == … … 110 106 exec su - yourusername 111 107 }}} 112 113 === Using Qt 4.2 ===114 {{{115 ../../../WebKitQt/Api/qwebnetworkinterface_p.h:134: error: ‘QSslError’116 was not declared in this scope117 ../../../WebKitQt/Api/qwebnetworkinterface_p.h:134: error: template118 argument 1 is invalid119 ../../../WebKitQt/Api/qwebnetworkinterface_p.h:135: error:120 ‘QAuthenticator’ has not been declared121 ../../../WebKitQt/Api/qwebnetworkinterface_p.h:136: error: expected ‘,’122 or ‘...’ before ‘&’ token123 ../../../WebKitQt/Api/qwebnetworkinterface_p.h:136: error: ISO C++124 forbids declaration of ‘QNetworkProxy’ with no type125 make[1]: *** [tmp/ResourceHandleQt.o] Error 1126 }}}127 128 This error is caused by not having the minimum version of Qt installed. Install the minimum version of Qt, set the129 'QTDIR' environment variable pointing to this version and try building WebKit again.130 108 131 109 === Missing gperf === … … 215 193 == Dependencies for specific Linux distributions == 216 194 217 === Debian/Ubuntu Linux ===218 To install required dependencies on Debian/Ubuntu, do219 {{{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 package223 224 195 === Ubuntu Oneiric (11.10) Linux - '''the simplest way''' === 225 196 226 197 Install sedkit-env-qtwebkit package from this PPA: https://launchpad.net/~u-szeged/+archive/sedkit to install all required dependencies. 227 198 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 }}} 199 Download, build and install Qt 5 - http://qt-project.org/downloads