Editing Icecream Scratchbox Howto

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
''Original instructions written by Anderson Lizardo.''
+
''Original instructions written by Anderson Lizardo. This version copied verbatim from the INdT wiki.''
= Icecream + Scratchbox HOWTO =
= Icecream + Scratchbox HOWTO =
-
 
-
'''''NB:''' With some Scratchbox versions, distributed arm target compilations occasionally fail due to gcc/g++ targeting wrong ARM variant. Once a workaround is developed, this warning will disappear.''
 
From Icecream web page <ref>http://en.opensuse.org/Icecream</ref>:
From Icecream web page <ref>http://en.opensuse.org/Icecream</ref>:
Line 34: Line 32:
     export ICECC_VERSION=$icecc_tarball
     export ICECC_VERSION=$icecc_tarball
     export PATH=/usr/lib/icecc/bin:$PATH
     export PATH=/usr/lib/icecc/bin:$PATH
-
     export DEB_BUILD_OPTIONS=$DEB_BUILD_OPTIONS,parallel=12
+
     export MAKEFLAGS=-j12
fi
fi
unset icecc_tarball procfamily DISTRIB_ID DISTRIB_RELEASE DISTRIB_CODENAME DISTRIB_DESCRIPTION
unset icecc_tarball procfamily DISTRIB_ID DISTRIB_RELEASE DISTRIB_CODENAME DISTRIB_DESCRIPTION
Line 40: Line 38:
Note that on other distributions than Ubuntu, you might have to modify this, depending on the contents on /etc/lsb-release.
Note that on other distributions than Ubuntu, you might have to modify this, depending on the contents on /etc/lsb-release.
-
 
-
Also note the "parallel=N" parameter being added to DEB_BUILD_OPTIONS. This enables parallel builds (limited to N parallel jobs) for those packages that support it. Alternatively, if you are doing your own builds by calling "make", you should instead pass the "-jN" parameter to enable parallel builds, e.g. "make -j12".
 
Then, create directory $HOME/icecc and run <pre>icecc --build-native</pre> there. Symlink the created tarball to a descriptive name, e.g. icecc-i686-karmic.tar.gz (this name has to match the $icecc_tarball variable in the .bashrc snippet above).
Then, create directory $HOME/icecc and run <pre>icecc --build-native</pre> there. Symlink the created tarball to a descriptive name, e.g. icecc-i686-karmic.tar.gz (this name has to match the $icecc_tarball variable in the .bashrc snippet above).
Line 124: Line 120:
sbox_compiler="$(sb-conf show --compiler)"
sbox_compiler="$(sb-conf show --compiler)"
# use the tarball name with the MD5, avoiding conflicting names in peer caches
# use the tarball name with the MD5, avoiding conflicting names in peer caches
-
icecc_tarball="$(readlink -f $HOME/icecc/icecc_sbox-$sbox_compiler.tar.gz)"
+
icecc_tarball="$(readlink -f $HOME/icecc_sbox-$sbox_compiler.tar.gz)"
if [ -f "$icecc_tarball" ]; then
if [ -f "$icecc_tarball" ]; then
     export ICECC_VERSION="i486:$icecc_tarball"
     export ICECC_VERSION="i486:$icecc_tarball"
     # comment the following line if you don't want to build in parallel by default
     # comment the following line if you don't want to build in parallel by default
-
     export MAKEFLAGS="-j12"
+
     MAKEFLAGS="-j12"
fi
fi
unset icecc_tarball sbox_compiler
unset icecc_tarball sbox_compiler

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)