免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1779 | 回复: 0
打印 上一主题 下一主题

android-master编译 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-20 09:44 |只看该作者 |倒序浏览
1.master:
环境:java 6, ubuntu 10.04 64bit
默认配置(generic eng release),make success。
make sdk success too。
full配置(full eng debug)make success.
make sdk success。  
2.Cygwin下编译Windows sdk
generic:
1.host C: emulator <= external/qemu/audio/audio.c
host C: emulator <= external/qemu/audio/mixeng.c
host C: emulator <= external/qemu/audio/noaudio.c
host C: emulator <= external/qemu/audio/wavaudio.c
cc1: error: unrecognized command line option "-Wno-missing-field-initializers"
cc1: error: unrecognized command line option "-Wno-missing-field-initializers"
cc1: error: unrecognized command line option "-Wno-missing-field-initializers"
cc1: error: unrecognized command line option "-Wno-missing-field-initializers"
make: *** [out/host/windows-x86/obj/EXECUTABLES/emulator_intermediates/audio/audio.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/host/windows-x86/obj/EXECUTABLES/emulator_intermediates/audio/mixeng.o] Error 1
make: *** [out/host/windows-x86/obj/EXECUTABLES/emulator_intermediates/audio/noaudio.o] Error 1
make: *** [out/host/windows-x86/obj/EXECUTABLES/emulator_intermediates/audio/wavaudio.o] Error 1
Error: Build failed

解决:在external\qemu的Makefile.android文件中找到:MY_CFLAGS += -Wall -Wno-missing-field-initializers
去掉Wno-missing-field-initializers

2.Platform found:  tmp/android-sdk_generic-2.2_windows/platforms/android-AOSP
Error: Missing folder tmp/android-sdk_generic-2.2_windows/platforms/android-AOSP/tools.
Aborting

原因:[[ -d "$PLATFORM_TOOLS" ]] || die "Missing folder $PLATFORM_TOOLS."
解决:在android sdk zip文件中的platforms/android-AOSP下建tools文件夹。

3.rm: cannot remove `tmp/android-sdk_generic-2.2_windows/tools/adb': No such file or directory
原因:rm -v "$TOOLS"/{adb,android,apkbuilder,ddms,dmtracedump,draw9patch,emulator,etc1tool}
解决:去掉adb。

4.rm: cannot remove `tmp/android-sdk_generic-2.2_windows/platforms/android-AOSP/tools/aapt': No such file or directory
rm: cannot remove `tmp/android-sdk_generic-2.2_windows/platforms/android-AOSP/tools/aidl': No such file or directory
rm: cannot remove `tmp/android-sdk_generic-2.2_windows/platforms/android-AOSP/tools/dx': No such file or directory
rm: cannot remove `tmp/android-sdk_generic-2.2_windows/platforms/android-AOSP/tools/dexdump': No such file or directory
解决:将编译出的platforms-tools相应文件加入该目录。

5.cp: cannot stat `out/host/windows-x86/bin/*.dll': No such file or directory
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"/

6.cp: cannot stat `out/host/windows-x86/bin/fastboot.exe': No such file or directory

master:
1.cp: cannot stat `tmp/android-sdk_full-2.2_windows/tools/sdklauncher.exe': No such file or directory
解决:这两句注掉
cp "$TOOLS/sdklauncher.exe" "$TEMP_SDK_DIR/SDK Manager.exe"
mv "$TOOLS/sdklauncher.exe" "$LIB/SDK Manager.exe"

2.mv: cannot stat `tmp/android-sdk_full-2.2_windows/tools/aapt.exe': No such file or directory
mv: cannot stat `tmp/android-sdk_full-2.2_windows/tools/aidl.exe': No such file or directory
mv: cannot stat `tmp/android-sdk_full-2.2_windows/tools/dexdump.exe': No such file or directory
解决:注掉mv -v "$TOOLS"/{aapt.exe,aidl.exe,dexdump.exe} "$PLATFORM_TOOLS"/
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP