Posted on 2019-02-25 10:56
Prayer 阅读(1779)
评论(0) 编辑 收藏 引用 所属分类:
LINUX/UNIX/AIX 、
makefile
https://www.xuebuyuan.com/1611225.html
错误:
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++的标志被误判成文件名了。用"make showcommands"编译,贴出完整的输出。
host C++: libutils <= frameworks/base/libs/utils/AssetDir.cpp
g++ -I external/zlib -I frameworks/base/libs/utils -I out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates -I dalvik/libnativehelper/include/nativehelper -I system/core/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include
-I hardware/ril/include -I dalvik/libnativehelper/include -I frameworks/base/include -I frameworks/base/opengl/include -I frameworks/base/native/include -I external/skia/include -I tools/include -I out/host/linux-x86/obj/include -c -fno-exceptions
-Wno-multichar -m32 -fPIC -include system/core/include/arch/linux-x86/AndroidConfig.h -D_FORTIFY_SOURCE=0 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -DANDROID -fmessage-length=0
-W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wsign-promo -DNDEBUG -UDEBUG -DLIBUTILS_NATIVE=1 –fpermissive -MD -o out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/AssetDir.o frameworks/base/libs/utils/AssetDir.cpp
g++: error: –fpermissive: No such file or directory
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/AssetDir.o] Error 1
问题解决方法是:
因为–fpermissive 前边的-是带输入法的,改为不带输入法的 短线就可以了