我想從源代碼構建最新版本的Android操作系統。我在Windows 7 x64上,並使用Cygwin來做到這一點。 我收到以下錯誤:使用Cygwin構建Android操作系統(Win7)
$ make -j8
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=3.1.4.1.5.9.2.6.5
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=windows
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
============================================
libpng: Ignoring gcc flag -fvisibility=hidden on Cygwin
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
make: *** No rule to make target `/cygdrive/c/Program', needed by `out/target/common/docs/doc-comment- check-timestamp'. Stop.
它看起來可能是一個路徑問題,也許因爲這樣我的Java路徑在Program Files文件?我目前的路徑沒有任何空格。
出於好奇,爲什麼使用Cygwin時,Android有一個優秀的本機Windows SDK? – Melllvar
你的意思是AndroidNDK?我想構建自己的Android操作系統,所以我認爲我需要構建AndroidSDK。 –
SDK用於構建Android應用程序 - 您無法使用它來構建實際的操作系統。你的意思是你想從源代碼構建Android嗎? – Melllvar