运行 MAC 上的 AOSP:stdarg.h 错误

Running AOSP on MAC: stdarg.h error

我有 android-5.0.0_r7.0.1 的源代码。完成后:

make -j4

我一直收到这个:

error: stdarg.h: No such file or directory
In file included from system/core/include/cutils/log.h:1,
             from system/core/include/utils/KeyedVector.h:24,
             from frameworks/native/include/input/Input.h:26,
             from frameworks/native/include/input/InputDevice.h:20,
             from frameworks/native/libs/input/InputDevice.cpp:23:
system/core/include/log/log.h:35:20: error: stdarg.h: No such file or directory
make: *** [out/host/darwin-x86/obj32/EXECUTABLES/validatekeymaps_intermediates/Main.o] Error 1 
make: *** Waiting for unfinished jobs....
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/Keyboard.o] Error 1
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/InputDevice.o] Error 1
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/Input.o] Error 1

#### make failed to build some targets (01:32 (mm:ss)) ####

我查看了 google 组和其他堆栈溢出问题,但我似乎无法弄清楚哪里出了问题。

@陨石

好吧,最终在谷歌搜索后我发现 AOSP 出于某种原因不支持最新版本的 Xcode 工具和 OS X。我双引导 windows 7 和 ubuntu,并完成了整个过程。当我在 ubuntu 上执行 make 命令时,我输入:make -k -i -B。也就是说,我让它继续前进,忽略 make 错误并无条件地构建标志。