build/core/Makefile:21: 警告:覆盖关于目标“out/target/product/crespo/system/etc/permissions/android.software.live_wallpaper.xml”的命令
build/core/Makefile:21: 警告:忽略关于目标“out/target/product/crespo/system/etc/permissions/android.software.live_wallpaper.xml”的旧命令
No private recovery resources for TARGET_DEVICE crespo
host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so)
host C++: libutils <= frameworks/base/libs/utils/AssetDir.cpp
host C++: libutils <= frameworks/base/libs/utils/Asset.cpp
g++: 错误: –fpermissive:没有那个文件或目录
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/Asset.o] 错误 1
make: *** 正在等待未完成的任务....
g++: 错误: –fpermissive:没有那个文件或目录
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/AssetDir.o] 错误 1
true
------解决方案--------------------
换个低版本的G++试试。
------解决方案--------------------
frameworks/base/libs/utils/Android.mk
LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive
这样确实行啊,但奇怪的是第遍手写的有问题,第二次把man g++文档中的-fpermissive拷过来,就通过了,