Project

General

Profile

HTCDreamBuild » History » Version 18

John Sullivan, 04/17/2011 03:57 AM
link to install page

1 7 Brian Kemp
== Required Packages ==
2 8 Brian Kemp
 * bison
3 1 Denis 'GNUtoo' Carikli
 * flex
4 12 Brian Kemp
 * git (git-core)
5 8 Brian Kemp
 * gperf
6 12 Brian Kemp
 * libncurses development headers (libncurses-dev)
7
 * make (build-essential)
8 9 Brian Kemp
 * mksquashfs (squashfs-tools)
9 12 Brian Kemp
 * openjdk
10
 * pngcrush - the build process will complain if it is not installed but builds will complete.
11
 * wget (or curl)
12 13 John Sullivan
 * zip
13 1 Denis 'GNUtoo' Carikli
 * zlib development headers (zlib1g-dev)
14 15 John Sullivan
15
=== Additional requirements for amd64 ===
16
17
 * libc6-dev-i386
18
 * gcc-multilib
19
 * lib32ncurses5-dev
20
 * 32-bit compatibility libraries
21
 * If you see errors about incompatible library versions, you may need some symlinks. For example:
22
   * sudo ln -s /usr/lib32/libstdc++.so.6.0.14 /usr/lib32/libstdc++.so
23
   * sudo ln -s /usr/lib32/libz.so.1.2.3.4 /usr/lib32/libz.so
24 7 Brian Kemp
25 1 Denis 'GNUtoo' Carikli
== Warning ==
26 12 Brian Kemp
 Do not build as root, always build as user.
27 1 Denis 'GNUtoo' Carikli
== Setup ==
28
Get and install the repo tool
29
{{{
30
 mkdir bin
31
 cd bin
32
 wget http://android.git.kernel.org/repo
33
 chmod a+x repo
34
 cd ..
35
}}}
36
Get replicant 2.2
37
{{{
38
 mkdir replicant-2.2
39
 cd replicant-2.2
40
 ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2
41
 ../bin/repo sync
42
}}}
43
44
== Each time you want to build replicant 2.2 ==
45
{{{
46 2 Denis 'GNUtoo' Carikli
cd ~/replicant-2.2
47 1 Denis 'GNUtoo' Carikli
 ../bin/repo sync
48
source build/envsetup.sh
49
export ANDROID_JAVA_HOME=$JAVA_HOME
50
lunch cyanogen_dream_sapphire-eng 
51 5 Denis 'GNUtoo' Carikli
make -j$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) bacon  #uses arguments like -j9 to speed up build in case of multi-core cpu
52 1 Denis 'GNUtoo' Carikli
}}}
53 12 Brian Kemp
Don't forget the bacon at the end, without that you will have some build errors.
54 6 Denis 'GNUtoo' Carikli
Note that the bacon also produces standard images like system.img, just ship or use the system.img like images
55 16 John Sullivan
56
You will find your built images in ./out/target/product/dream_sapphire/.
57 17 John Sullivan
58
You will also find fastboot, needed to install the images, in ./out/host/linux-x86/bin/.
59 18 John Sullivan
60
Now you are ready to [http://trac.osuosl.org/trac/replicant/wiki/Installation install!]