经过两个多月的项目。android 3.2 qcom 8660,总结一下遇到的问题。
编译android sdk问题汇总:
官方的文档和问题:
src/sdk/docs/howto_build_SDK
$ . build/envsetup.sh
$ lunch sdk-eng
$ make sdk
Package SDK: out/host/darwin-x86/sdk/android-sdk_eng.<build-id>_mac-x86.zip
make window sdk 需要mingw的支持
$ make win_sdk
实际工作的步骤
1. 修改 ”\4030\external\libvpx\vpx_config.h” 如下
//#define CONFIG_ARM_ASM_DETOK 1
2. $ source build/envsetup.sh
lunch 1 ; make
3. $ lunch sdk-eng
4. $ make sdk
在 out/host/linux-x86/sdk/android-sdk_eng.xxxx_linux-x86.zip 下
注意: android-sdk_eng.xxxx_linux-x86.zip 並不包含 emulator,
你必須手动將out/host/linux-x86/bin/emulator 复制到 android-sdk_eng.xxxx_linux-x86.zip/android-sdk_eng.xxxx_linux-x86/tools/ 下
1. 修改 ”\4030\external\libvpx\vpx_config.h” 如下
//#define CONFIG_ARM_ASM_DETOK 1 这句话是针对armv6的。sdk的模拟器是armv5,所以不需要
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
ERROR2:
Package SDK: out/host/linux-x86/sdk/android-sdk_eng.liuhongchao_linux-x86.zip
SDK: warning: including GNU target out/target/product/msm8660_surf/system/lib/libdbus.so
sdk/build/tools.atree:46: couldn't locate source file: usr/share/pc-bios/bios.bin
sdk/build/tools.atree:47: couldn't locate source file: usr/share/pc-bios/vgabios-cirrus.bin
sdk/build/tools.atree:133: couldn't locate source file: framework/ddmlib-tests.jar
sdk/build/tools.atree:134: couldn't locate source file: framework/ninepatch-tests.jar
sdk/build/tools.atree:135: couldn't locate source file: framework/common-tests.jar
sdk/build/tools.atree:137: couldn't locate source file: framework/sdkuilib-tests.jar
make: *** [out/host/linux-x86/sdk/android-sdk_eng.liuhongchao_linux-x86.zip] Error 44
NO sdk/android-sdk_eng.liuhongchao_linux-x86.zip created
解决办法:
这里的framework目录指的是:~/Android_Src/out/host/linux-x86/framework 这个目录,
是sdk/build/tools.atree这个文件有bug,上面那几个文件的路径写的不对,其实在
Src/out/host/linux-x86/framework 目录下是有这几个文件的,
$cp ~/Android_Src/prebuilt/common/pc-bios ~/Android_Src/usr/share
$ cd ~/Android_Src/out/host/linux-x86/framework
$cp ddmlib.jar ddmlib-test.jar