编译android sdk时的出错out/host/linux-x86/obj/STATIC_...

编译android sdk时的出错out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/Asset.o

提示出错的信息为:

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


主要是把文件的

frameworks/base/libs/utils/Android.mk
LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive

那个 -fpermissive 前面的 "-" 是有问题的。。。换成用字母的 - ,再保存一下, 

重新编译一次sdk..

转载于:https://my.oschina.net/arthurdu/blog/117346

你可能感兴趣的