首页 > Android, Linux Usage, Other > Compile Android on Ubuntu8.10

Compile Android on Ubuntu8.10

2009-03-12 21:07 星期四    浏览: 1,138    绿 发表评论 阅读评论

sudo apt-get install git-core gnupg

#More git tools, you can: sudo apt-get install gitk git-gui
sudo apt-get install sun-java6-jdk
sudo apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev
sudo apt-get install valgrind #optional

mkdir ~/bin
export PATH=$PATH:$HOME/bin
curl http://android.git.kernel.org/repo >~/bin/repo
chmod a+x ~/bin/repo

#download and make
mkdir mydroid
cd mydroid
repo init -u git://android.git.kernel.org/platform/manifest.git

repo sync

 

If the make complain javac version not correct, we need configure the following:

sudo update-alternatives –config java

export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun

export  PATH=$JAVA_HOME/bin:$PATH

make

#make sdk
sudo apt-get install sun-java5-jdk
sudo update-alternatives –config javadoc  #select Item2

make sdk

#prepare to run
export PATH=$PATH:/home/yang/android/out/host/linux-x86/sdk/android-sdk_eng.yang_linux-x86/tools
# and add it into .bash_profile : vi .bash_profile

cd /home/yang/android

mksdcard  -l mysd 16M sdcard.img

cd /home/yang/android/out/host/linux-x86/sdk/android-sdk_eng.yang_linux-x86/platforms/android-1.5/images

#emulator -vm myconfig -image system.img -initdata userdata.img -ramdisk ramdisk.img -skin HVGA -sdcard sdcard.img

android create avd –target 1 –name olympia –sdcard ~/mysdcard.img –path /home/yang/android/my-avd/ –skin HVGA

emulator -avd myconfig -image system.img -initdata userdata.img -ramdisk ramdisk.img -skin HVGA -sdcard /home/yang/android/sdcard.img

 

Auxiliary:
(From: http://snippets.aktagon.com/snippets/187-Fix-for-empty-ident-error-using-older-git)

 

In this snippet- Christian explains how to fix the empty ident error using a bleeding edge git. In older git versions this must be done manually. So if you get this error…

 *** Environment problem:
 *** Your name cannot be determined from your system services (gecos).
 *** You would need to set GIT_AUTHOR_NAME and GIT_COMMITTER_NAME
 *** environment variables; otherwise you won't be able to perform
 *** certain operations because of "empty ident" errors.
 *** Alternatively, you can use user.name configuration variable.

 fatal: empty ident  <.....@......com> not allowed

 

… then add the following parameters to your ~/.bashrc file and source it with . ~/.bashrc (or relogin, alternatively):

 

 export GIT_AUTHOR_NAME="Marko Haapala"
 export GIT_COMMITTER_NAME="Marko Haapala"

 

本文链接地址: http://blog.redwolf-soft.com/?p=520

原创文章,版权©红狼博客所有, 转载随意,但请注明出处。

    分享到:

相关文章:

  • 无相关文章
分类: Android, Linux Usage, Other 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.
订阅评论
  欢迎参与讨论,请在这里发表您的看法、交流您的观点。