I was devastated by Android these days
let me organize some noticeable points here
(ubuntu 8.10 is used)
1. download Android source code (cupcake)
create home:
:mkdir AndroidHome
install Git:
:sudo apt-get install git-core
install Repo:
:curl http://android.git.kernel.org/repo > ~/AndroidHome/bin/repo
:chmod a+x ~/AndroidHome/bin/repo
install Python:
:sudo apt-get install python
install JDK 1.6:
:cd ~/AndroidHome/downloads
:chmode a+x jdk-6u11-linux-i586.bin
:.jdk-6u11-linux-i586.bin
:cp -R jdk1.6.0_11/ /usr/local/jdk1.6.0_11/
add followings to ~/.bashrc:
:export PATH=/usr/local/jdk1.6.0_11/bin:$PATH
:export JAVA_HOME=/usr/local/jdk1.6.0_11
:export ANDROID_JAVA_HOME=$JAVA_HOME
start to download:
:cd ~/AndroidHome/
:repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake
(or :repo init -u git://android.git.kernel.org/platform/manifest.git -b release-1.0 for older version)
:repo sync
2. make Android source code
:make
The following error occurs
external/qemu/sockets.c: In function ?sock_address_init_resolve?:
external/qemu/sockets.c:637: error: ?EAI_NODATA? undeclared (first use
in this function)
external/qemu/sockets.c:637: error: (Each undeclared identifier is
reported only once
external/qemu/sockets.c:637: error: for each function it appears in.)
solution:
add “#if …” and “
没有评论:
发表评论