Mobile/Build/Maemo Build Instructions/Alpha1.5

From MozillaWiki
Jump to: navigation, search

These are my notes on what I did to get the Maemo SDK to work. I hope they evolved into actually instructions, but this was an alpha SDk.

First Download Your GCC:

[[1]]

There are lots of options, but you want to match these:

Target: ARM GNU/Linux HOST: IA32 GNU/Linux


Uncompress thing stuff and copy into here:

cp -r arm-2007q3 /opt/maemo/tools

(NOTE: this might get blown away by what you do next. There is a circular dependency on these two installations. It seams that the notes on g.maemo.org assume you already have the toolchain installed at /opt/maemo/tools. If the next step complains about no GCC in /opt/maemo/tools/, you will have to copy it back).


Now follow this: [[2]]


Congrats, your scratchbox should be setup.


Issues:

Python 2.5 is not available in the scratchbox, so:

cp -r -L /usr/lib/python2.5 ~/

From SB2: export PYTHONHOME=/home/dougt/python2.5 export PYTHONPATH=/home/dougt/python2.5:/home/dougt/python2.5/lib-dynload


XPIDL can not find libIDL:

From SB2: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib


Known bugs: 408071 GCC miscompiles NSS when optimizing for size on Linux/ARM 423913 -fshort-wchar does not work on gcc 4.2.1 in arm scratchbox 423916 -Werror is too strict in gcc 4.2.1 in arm scratchbox


When building, use these env workarounds:

export PYTHONHOME=/home/dougt/python2.5 export PYTHONPATH=/home/dougt/python2.5:/home/dougt/python2.5/lib-dynload export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export SBOX_BLOCK_CROSS_COMPILER_ARGS="-fshort-wchar -Werror"


You also need the workaround patch in bug 408071.