#Need to install the latest toolchain sudo su echo "deb http://scratchbox.org/debian/ stable main" >> /etc/apt/sources.list apt-get update apt-get install scratchbox-toolchain-cs2007q3-glibc2.5-arm6 exit ############## # do the section below if on ubuntu 8.04, skip for Ubuntu 7.1. Other OS may also have this problem. #If you see a problem when running nsinstall that says something "mmap - permission denied", come back here an try this. ############## #add the following to /etc/sysctl.conf vm.vdso_enabled = 0 vm.mmap_min_addr = 4096 #Then run sudo sysctl -p ############## # Continue from here for all versions of Ubuntu, including 7.10 ############## wget http://repository.maemo.org/stable/d...stall_4.1.2.sh sudo chmod a+x ./maemo-scratchbox-install_4.1.2.sh sudo ./maemo-scratchbox-install_4.1.2.sh -s /scratchbox sudo /scratchbox/sbin/sbox_adduser $USER yes # you may need to relog into your machine here. sudo /scratchbox/sbin/sbox_ctl start wget http://tablets-dev.nokia.com/4.1.2/m...stall_4.1.2.sh chmod +x maemo-sdk-install_4.1.2.sh #This will prompt you with a menu with 3 options, and if you want to install the closed binaries. #Choose option 3, and yes to install the closed binaries. bash maemo-sdk-install_4.1.2.sh /scratchbox/login sb-conf setup DIABLO-ARMEL-2008 -c cs2007q3-glibc2.5-arm6 \ -d cputransp:debian-etch:doctools:maemo3-tools:perl \ -t /scratchbox/devkits/cputransp/bin/qemu-arm-cvs-m sb-conf rootstrap DIABLO-ARMEL-2008 http://repository.maemo.org/stable/4....1.2_armel.tgz sb-conf install DIABLO-ARMEL-2008 -cedFGS sb-conf select DIABLO-ARMEL-2008 wget http://people.mozilla.com/~vladimir/...xecstack.armel chmod a+x execstack.armel fakeroot mv execstack.armel /usr/bin/execstack execstack -c `find /lib/ -name \*.so.\* -type f` execstack -c `find /usr/lib/ -name \*.so.\* -type f` fakeroot echo "deb http://repository.maemo.org/extras-devel diablo free non-free" >> /etc/apt/sources.list fakeroot echo "deb file:/home/$USER/maemo-sdk-nokia-binaries_4.1.2 diablo explicit" >> /etc/apt/sources.list fakeroot apt-get update fakeroot apt-get install libgtk2.0-dev libxaw7-dev libfreetype6-dev libxi-dev libhildonmime-dev libosso-dev libidl-dev liblocation-dev libasound2-dev libhildon1-dev #You should now have all the lib's you should need, time to get the souce. mkdir Thunderbird cd Thunderbird wget http://releases.mozilla.org/pub/mozi...source.tar.bz2 tar -xf thunderbird-3.0b2-source.tar.bz2
export LDFLAGS="-Wl,-rpath-link,$PWD/dist/bin/:/usr/lib,-losso,-lhildonmime" ac_add_options --enable-application=mail ac_add_options --with-arm-kuser ac_add_options --enable-static ac_add_options --disable-shared mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-tb mk_add_options AUTOCONF=autoconf2.13
make -f client.mk build
cd objdir-tb make package cd mozilla/dist