2009年4月7日 星期二

Build android development toolkit (kit) for eclipse

The content described as below is reference android-source-root/development/tools/eclipse/README_WINDOWS.txt

1- To build the Eclipse plugin:
Under Linux:
$ cd your-device-directory
$ tools/eclipse/scripts/build_server.sh destination-directory

Note. destination-directory need a absolute path

This will create an "android-eclipse.zip" in the selected destination directory.

Then in Eclipse, you can use Help > Software Updates > Available Software > Archive > select the new android-eclipse.zip. Then with the new archive checked, click Install.

if you see the result shown as below that means build failed.
### development/tools/eclipse/scripts/create_all_symlinks.sh done
ECLIPSE_HOME not set, using /buildbot/eclipse-android as default
mkdir: cannot create directory `/buildbot': Permission denied
Please create a directory /buildbot/eclipse-android where Eclipse will be installed, i.e. execute 'mkdir -p /buildbot/eclipse-android && chown funkie /buildbot/eclipse-android'.


Please issue the command shown as below according to the prompt above to fix the problem.
$ sudo mkdir -p /buildbot/eclipse-android && sudo chown funkie /buildbot/eclipse-android

Note. In that way, the tools/eclipse/scripts/build_server.sh will download another eclipse into /buildbot/eclipse-android except you have set the ECLIPSE_HOME.


$ export ECLIPSE_HOME = <eclipse-dir>


Please window > preferences > select the sdk (path: android-device-source/out/host/linux-x86/sdk/android-sdk_eng.funkie_linux-x86) to set the android-sdk after finish build ADT.

沒有留言:

張貼留言