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

时间:2015-07-23 22:49:36

标签: android android-source

我有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群组和其他堆栈溢出问题,但我似乎无法弄清楚出了什么问题。

1 个答案:

答案 0 :(得分:0)

@Meteorite

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

相关问题