User:Pjohnsen/MozillaQtBuild

< User:Pjohnsen
Revision as of 03:22, 4 June 2008 by Pjohnsen (talk | contribs) (New page: == Checkout from hg == <pre> hg clone http://hg.mozilla.org/users/vladimir_mozilla.com/mozilla-qt mozilla-qt python client.py checkout </pre> == Install Qt 4 (desktop Ubuntu) == Note Qt ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Checkout from hg

hg clone http://hg.mozilla.org/users/vladimir_mozilla.com/mozilla-qt mozilla-qt
python client.py checkout

Install Qt 4 (desktop Ubuntu)

Note Qt 4.4 is now available for ubuntu 8.04 if you enable backports in software sources.

sudo apt-get install libqt4-core libqt4-gui libqt4-dev

Install Qt 4.4 (maemo device/scratchbox)

echo "deb http://qt4.garage.maemo.org/ chinook user" >> /etc/apt/sources.list
apt-get update
apt-get install libqtcore4 libqtgui4 libqt4-network

For building in scratchbox you also need

apt-get install libqt4-dev

mozconfig

Here is a sample mozconfig

mk_add_options MOZ_CO_PROJECT=browser,xulrunner

ac_add_options --enable-application=browser

ac_add_options --enable-default-toolkit=cairo-qt
ac_add_options --enable-debug="-g3"
ac_add_options --disable-optimize
ac_add_options --enable-tests

ac_add_options --disable-installer
ac_add_options --disable-crashreporter
ac_add_options --disable-javaxpcom
ac_add_options --disable-printing
ac_add_options --disable-embedding-tests

ac_add_options --with-qtdir="/usr/local/Trollteh/Qt-4.4.0-rc1"

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-hg
mk_add_options MOZ_MAKE_FLAGS=-j4