按照https://source.android.com/source/initializing.html上的说明进行构建,并使用lunch full_grouper-user
它来生成 makefile。Android 源代码可以正常构建大约 5 分钟,然后在出现此错误时停止:
target arm C++: libwebrtc_system_wrappers <= external/webrtc/src/system_wrappers/source/map.cc
In file included from external/webrtc/src/system_wrappers/source/map.cc:11:0:external/webrtc/src/system_wrappers/source/../interface/map_wrapper.h:14:15: fatal error: map: No such file or directory compilation terminated.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebrtc_system_wrappers_intermediates/map.o] Error 1
make: *** Waiting for unfinished jobs....
有什么建议吗?看起来编译器找不到 STL 头文件,很奇怪。