Mobile/Fennec/RaspberryPi: Difference between revisions

Jump to navigation Jump to search
Line 89: Line 89:
</pre>
</pre>


= Build Qt5-Mozilla inside chroot =
= Build Qt-Mozilla inside chroot =


mkdir ~/build && cd ~/build
==== Install Qt dev packages to Dev rootfs ====
 
==== install pre-compiled Qt5 and GLES libraries into chroot SDK====
<pre>
<pre>
wget http://romaxa.info/raspberrypi/qt5rmx.tar.gz
sudo chroot $CHROOTPATH apt-get install -y --force-yes libpango1.0-dev libasound-dev libfreetype6-dev libffi-dev
wget http://romaxa.info/raspberrypi/vc.tar.gz
sudo chroot $CHROOTPATH apt-get install -y --force-yes libqt4-dev libqt4-opengl-dev
sudo tar -zxvf qt5rmx.tar.gz -C /opt/
sudo tar -zxvf vc.tar.gz -C /opt/
</pre>
</pre>


==== Install common Mozilla build dependencies====
==== Clone Mozilla-Central and build====
 
<pre>
<pre>
sudo xapt -k -a armel libpango1.0-dev libasound-dev libfreetype6-dev
mkdir ~/build && cd ~/build
</pre>
hg clone http://hg.mozilla.org/mozilla-central


==== Fix pango dependencies pkg-config path====
# switch to sb2 environment
<pre>
sudo ln -s /usr/arm-linux-gnueabi/share/pkgconfig/pthread-stubs.pc /usr/arm-linux-gnueabi/lib/pkgconfig/pthread-stubs.pc
</pre>


==== Clone Mozilla-Central and build====
<pre>
hg clone http://hg.mozilla.org/mozilla-central
cd mozilla-central
cd mozilla-central
hg qimport -P http://pastebin.mozilla.org/?dl=2137908
cat > mozconfig.rsppi
export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig
export CPPFLAGS="-I/usr/include/arm-linux-gnueabihf -D_STDC_PREDEF_H=1"
export CFLAGS="-I/usr/include/arm-linux-gnueabihf -D_STDC_PREDEF_H=1"
export CXXFLAGS=" -D_STDC_PREDEF_H=1 "
mk_add_options  CPPFLAGS=$CPPFLAGS
mk_add_options  CFLAGS=$CFLAGS
FIX_LINK_LDFLAGS="-L/usr/arm-linux-gnueabihf/lib -Wl,-rpath-link=/usr/arm-linux-gnueabihf/lib -L/lib/arm-linux-gnueabihf -Wl,-rpath-link=/lib/arm-linux-gnueabihf"
FIX_LINK_LDFLAGS="$FIX_LINK_LDFLAGS -L/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link=/usr/lib/arm-linux-gnueabihf"
export LDFLAGS="$FIX_LINK_LDFLAGS"
LDFLAGS="$FIX_LINK_LDFLAGS"
export WRAP_LDFLAGS="$FIX_LINK_LDFLAGS"
mk_add_options LDFLAGS="$FIX_LINK_LDFLAGS"
export ac_cv_have_usable_wchar_option_v2="no"
ac_add_options --enable-application=xulrunner
ac_add_options --disable-tests
ac_add_options --disable-dbus
ac_add_options --disable-accessibility
ac_add_options --disable-webrtc
ac_add_options --enable-logging
ac_add_options --enable-default-toolkit=cairo-qt
ac_add_options --enable-mobile-optimize
ac_add_options --enable-optimize
ac_add_options --enable-system-ffi
export MOZ_DEBUG_SYMBOLS=1
ac_add_options --enable-debug-symbols="-gdwarf-2"
export MOZILLA_OFFICIAL=1
mk_add_options PROFILE_GEN_SCRIPT=@TOPSRCDIR@/build/profile_pageloader.pl
export CXXFLAGS="$CXXFLAGS -DFORCE_BASICTILEDTHEBESLAYER=1 -DEGL_HAS_BACKING_SURFACE=1 -DUSE_ANDROID_OMTC_HACKS=1 "
ac_add_options --disable-elf-hack
ac_add_options --enable-libjpeg-turbo
ac_add_options --with-gl-provider=EGL


# Qt5 No-X11 mozconfig
mk_add_options MOZ_MAKE_FLAGS="-j4"
wget http://romaxa.info/raspberrypi/mozconfig
mk_add_options MOZ_OBJDIR="@TOPSRCDIR@/objdir-arm-rasppi"


# Minimal build patch queue, (hope will be 0 soon)
ac_add_options --with-arm-kuser
hg clone http://hg.mozilla.org/users/romaxa_gmail.com/rmxmq .hg/patches
ac_add_options --with-thumb=toolchain-default
hg update -C raspberrypi -R .hg/patches
ac_add_options --with-arch=armv6
hg update -C `cat .hg/patches/changeset`
ac_add_options --with-float-abi=hard
hg qpush -a
ac_add_options --with-thumb=no
ac_add_options --with-fpu=vfp
ac_add_options --with-arm-kuser


# Finally build
# Finally build
MOZCONFIG=$(pwd)/mozconfig make -f client.mk build_all
MOZCONFIG=$(pwd)/mozconfig.rsppi make -f client.mk build_all
</pre>
</pre>
Confirmed users
180

edits

Navigation menu