User:Pjohnsen/MozillaQtBuild: Difference between revisions

 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== Install prerequisites ==
if you haven't installed these packages, please do so:
<pre>
sudo apt-get install build-essential autoconf2.13 libdbus-glib-1-dev
</pre>
== Checkout from hg ==
== Checkout from hg ==
Qt support is now available from mozilla-central
<pre>
<pre>
hg clone http://hg.mozilla.org/users/vladimir_mozilla.com/mozilla-qt mozilla-qt
hg clone http://hg.mozilla.org/mozilla-central
python client.py checkout
</pre>
</pre>


== Install Qt 4 (desktop Ubuntu) ==
== Install Qt 4 (desktop Ubuntu) ==


Note Qt 4.4 is now available for ubuntu 8.04 if you enable backports in software sources.
Note Qt 4.4 is now available for ubuntu 8.04 '''if you enable backports''' in software sources.
<pre>
<pre>
sudo apt-get install libqt4-core libqt4-gui libqt4-dev
sudo apt-get install libqt4-core libqt4-gui libqt4-dev
Line 13: Line 19:


== Install Qt 4.4 (maemo device/scratchbox) ==
== Install Qt 4.4 (maemo device/scratchbox) ==
Note: These instructions are for the Chinook (N800) build system, which is what we currently use - if you are building with the more recent Fremantle (N910) build system you should instead follow the Desktop Ubuntu instructions above (except you don't need the "sudo" in front of the command).
<pre>
<pre>
echo "deb http://qt4.garage.maemo.org/ chinook user" >> /etc/apt/sources.list
echo "deb http://repository.maemo.org/extras-devel diablo free non-free" >> /etc/apt/sources.list
apt-get update
apt-get update
apt-get install libqtcore4 libqtgui4 libqt4-network
apt-get install libqtcore4 libqtgui4 libqt4-network
Line 21: Line 28:
<pre>
<pre>
apt-get install libqt4-dev
apt-get install libqt4-dev
</pre>
== Install additional headers (desktop Ubuntu) ==
You might need some more development packages installed for configure to succeed.
<pre>
sudo apt-get install libasound-dev libglib1.2-dev libidl-dev
</pre>
</pre>


Line 39: Line 53:
  ac_add_options --disable-printing
  ac_add_options --disable-printing
  ac_add_options --disable-embedding-tests
  ac_add_options --disable-embedding-tests
ac_add_options --disable-elf-dynstr-gc
   
   
  mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj-qt
  mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj-qt
Line 49: Line 64:
Build as normal with
Build as normal with
  make -f client.mk build
  make -f client.mk build
I had a build error on Kubuntu 8.10 with Qt4.5 with an #include "qcms.h" not found. I solved it with this patch:
ubu8:~/development/mozilla-central$ hg diff
diff -r 96746395df4f gfx/thebes/public/gfxPlatform.h
--- a/gfx/thebes/public/gfxPlatform.h  Wed Apr 08 10:45:32 2009 +0200
+++ b/gfx/thebes/public/gfxPlatform.h  Wed Apr 08 12:42:17 2009 +0200
@@ -48,7 +48,7 @@
  #include "gfxASurface.h"
  #include "gfxColor.h"
-#include "qcms.h"
+#include "qcms/qcms.h"
  #ifdef XP_OS2
  #undef OS2EMX_PLAIN_CHAR
  #endif


== Custom Qt build ==
== Custom Qt build ==
20

edits