User:Pjohnsen/MozillaQtBuild: Difference between revisions

 
(4 intermediate revisions by 3 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
Qt support is now available from mozilla-central
Line 9: Line 15:
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 build-essential autoconf2.13
sudo apt-get install libqt4-core libqt4-gui libqt4-dev
sudo apt-get install libqt4-core libqt4-gui libqt4-dev
</pre>
</pre>


== 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://repository.maemo.org/extras-devel diablo free non-free" >> /etc/apt/sources.list
echo "deb http://repository.maemo.org/extras-devel diablo free non-free" >> /etc/apt/sources.list
Line 58: 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