How to build Android Windows SDK
来源:互联网 发布:wave动作数据 编辑:程序博客网 时间:2024/04/30 17:03
0. Build sdk in Linux
$ cd mydroid $ make PRODUCT-sdk-sdk
1. Install jdk in Windows to E:\Java\jdk1.6.0_21
2. Install cygwin:
- Download the latest version of cygwin from http://www.cygwin.com/
- Install cygwin
- Required packages:
autoconf, bison, curl, flex, gcc, gcc-g++, git, gnupg, make, gettext, gettext-devel, ncurses, libncurses-devel
mingw-zlib, python, zip, unzip
- Suggested extra packages:
diffutils, emacs, openssh, rsync, vim, wget.
- Packages that must not be installed: readline.
3. export PATH=$PATH:/cygdrive/e/Java/jdk1.6.0_21/bin/
4. download android source in cygwin
$ mkdir ~/mydroid $ cd ~/mydriod $ repo init -u git://android.git.kernel.org/platform/manifest.git -b android2.2-r1.1 $ repo sync
5. Install textinfo
$ wget http://ftp.gnu.org/gnu/texinfo/texinfo-4.9.tar.bz2 $ tar jvfx textinfo-4.9.tar.bz2 $ cd textsinfo $ ./configure --prefix=/usr $ make $ make install
6. Install android toolchain from
$ wget http://android.git.kernel.org/pub/android-toolchain-20081019.tar.bz2 $ tar jvfx android-toolchain-20081019.tar.bz2 $ cd android-toolchain-20081019 $ ./configure --target=arm-eabi --prefix=XXX $ make build $ make install
7. Build windows sdk
$ copy android-sdk_eng.me_linux-x86.zip from Linux to out/host/linux-x86/sdk/ $ export SDK_NUMBER=${USER}-`date +%Y%m%d-%H%M%S` $ cd mydroid $ mkdir -p out/host/windows-x86/sdk $ development/build/tools/make_windows_sdk.sh out/host/linux-x86/sdk/android-sdk_eng.me_linux-x86.zip out/host/windows-x86/sdk
Note:
1). Add acp to fucntion_build() in development/build/tool/make_windows_sdk.sh as below:
make \ acp aapt aidl \ etc1tool \ prebuilt \ dexdump dmtracedump \ hprof-conv \ mksdcard \ sdklauncher sqlite3 \ zipalign \ || die "Build failed"
2). adb and fastboot have problem, so remove them in make_windows_sdk.sh
3). Remove cp *.dll in make_windows_sdk.sh, modify as below:
#cp -v out/host/windows-x86/bin/*.{exe,dll} "$TOOLS"/ cp -v out/host/windows-x86/bin/*.exe "$TOOLS"/
4). Because we can't build adb, so please copy adb.exe from downloaded windows sdk, and make a zipped file again.
转载自:http://buaadallas.blog.51cto.com/399160/382352
- How to build Android Windows SDK
- How to build Android Windows SDK
- 编译自己的Windows Android SDK(how to build Android SDK for Windows)
- 编译自己的Windows Android SDK(how to build Android SDK for Windows)
- How to build android
- How to build Windows Android2.3 SDK怎么编译windows下的android2.3 SDK
- how to get toolchain from android source -make windows sdk
- How to build OpenOCD for windows
- Failed to load E:\SDK\android-sdk-windows\build-tools\26.0.1\lib\dx.jar
- how to set android build type
- How to Build FFmpeg for Android
- How to build Android adb for ARM
- How to build Android adb for ARM .
- How to Build FFmpeg for Android
- How to Build FFmpeg for Android
- How to Build FFmpeg for Android
- How To Build CyanogenMod Android for smartphone
- How to build material design on android
- 从沙特电信启动大规模网络建设看TD-LTE产业
- wpf 作打印时的注意事项
- Win7 VS2003编译错误 C1033
- linux tar打包解压详解 解压到指定文件夹
- 网络编程
- How to build Android Windows SDK
- android jni Log
- 一段代码引起的思考(变量占用字节数及指针)
- DataTable添加一列到指定位置
- SSH2 整合
- ssi include 命令 路径问题
- Linux Shell进化简史
- 让程序开机自动运行的方法
- j2ee 设计框架 ibatis+spring+struts整合应用实例