- These build requirements are enough to build AOSP 4.0.3 after lunch full-eng. Cyanogenmod 9 has the same build requirements except it wants a PNG optimizer. According to this comparison chart, the two best are pngout or advancecomp. pngout is not open source, but it seems to work well. advancecomp is not supported by the CM build system.
- The optional environment variable USE_CCACHE=1 does not use the system ccache, but rather a prebuilt ccache that comes in the Android tree. See Google's documentation about ccache.
- Fedora 16 Bug #787712 causes the repo script to lockup very often. I built python packages that fixes this issue for Fedora 16.
# You need this to build AOSP 4.0.3 or CM9
yum install make curl gnupg git bison unzip zip flex gperf
yum install gcc-c++ libstdc++-devel
yum install glibc-devel.i686 zlib-devel.i686 ncurses-devel.i686
yum install libX11-devel.i686 mesa-libGL-devel.i686
# CM9 now builds a kernel during the Android build, so you will also need this
yum install glibc-devel.x86_64 glibc-devel.i686
yum install ncurses-devel.x86_64
# You need this to build CM7
yum install readline-devel.i686
# Not required, but helpful
yum install schedtool
Java for RHEL6
# Java 6 from http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u30-download-1377139.html
for cmd in jar java javac javadoc javah
do ln -s /usr/java/jdk1.6.0_30/bin/$cmd
Java for Fedora 16+
yum install java-1.6.0-openjdk-devel