repo init -u git://gitorious.org/0xdroid/manifest.git -b BRANCH_NAME -
m mirror.xml
輸入這行去初始repo時,讓他跑repo sync會出錯,通常都是在87的時候= ="
錯誤訊息為下
Fetching projects: 55% (87/157) fatal: The remote end hung up unexpectedly
error: Cannot fetch frameworks_opt_com-google-android-goooglelogin
每每嘗試都卡在這裡,實在是很悶
於是只好繼續找一些資料來看看能不能挽救形勢了
BTW順便給一下對於錯誤訊息工程師的回答
If you feel gitorious too slow, you can try the mirror in the wiki:
repo init -u git://gitorious.org/0xdroid/manifest.git -b BRANCH_NAME -m mirror.xml
However, if the mirror didn't work for you, you can sync with AOSP first
then change the manifest to ours, just repo init again.
簡單來說就是有回答跟沒回答是一樣的
所以只好找AOSP大神幫忙了
AOSP就是Android Open Source Project
裡面資料相當多,因此我們就慢慢的來看吧
In general you will need:
* Python 2.4, which you can download from python.org.
* JDK 6 if you wish to build Gingerbread or newer; JDK 5 for Froyo or older. You can download either from java.sun.com.
* Git 1.5.4 or newer. You can find it at http://git.or.cz/.
這邊呢,輸入python就會進入到奇妙的世界(? 所以應該是有python
git version 可以得知目前git的版本
java部份就不講了,接著
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
這一段是要我們安裝所有會用到的套件
但是!有些套件會找不到,或遺失 所以找了這份資料
Ubuntu Linux (32-bit x86):
sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
Ubuntu Linux (64-bit x86):
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
說明了32與64有些許不同,64bit需安裝的套件有點多...
在來 Installing Repo
To install, initialize, and configure Repo, follow these steps:
1. Make sure you have a bin/ directory in your home directory, and that it is included in your path:
$ mkdir ~/bin
$ PATH=~/bin:$PATH
2. Download the Repo script and ensure it is executable:
$ curl http://android.git.kernel.org/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
這邊呢很清楚的說明該下哪些指令,因為跟0xdroid提供的差不多,還多了PATH的設定
# Create an empty directory to hold your working files:
$ mkdir beagle-donut $ cd beagle-dount |
# Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest, which specifies where the various repositories included in the Android source will be placed within your working directory.
$ repo init -u git://android.git.kernel.org/platform/manifest.git |
To check out a branch other than "master", specify it with -b:
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake |
基本上這兩行我都有輸入,接著輸入萬惡深淵的 repo sync了
說到這個就很頭痛,跑得跟make一樣嚇人慢又恐怖多
因此我讓他跑了一個晚上,116個 1.1G
但是又卡在
echo "TARGET_PRODUCT := beagleboard" > buildspec.mk
echo "INSTALL_PREBUILT_DEMO_APKS := true" >> buildspec.mk
make
@@