- 论坛徽章:
- 0
|
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"/ |
|