properties.h: No such file or directory compilation terminat

编译的异常log:

system/core/include/cutils/properties.h:22:35: fatal error: sys/system_properties.h: No such file or directorycompilation terminated.make[1]: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libinput_intermediates/<strong>xxxxx</strong>.o] 错误 1make[1]:正在离开目录 `/home/<strong>xxxx</strong>/code/<strong>xxxxx</strong>/kk/bra_<strong>xxxx</strong>/alps'==> [FAIL] 2015/03/20 17:16:54make: *** [mm] 错误 2分析:

编译不过是由于BUILD_HOST_STATIC_LIBRARY没有引用相应的静态库,在mk文件引用相应静态库,,编译通过。

修改Android.mk文件:

LOCAL_MODULE_TAGS := optionalLOCAL_STATIC_LIBRARIES := \ libcutils \include $(BUILD_HOST_STATIC_LIBRARY)如果找不到对应模块的mk文件可用下面这条命令尝试搜索:

//下面的xxxx.cpp可以使编译模块中的文件,最好是你修改之后的文件

find -name *.mk | xargs grep "xxxx.cpp" -nsr –color=auto

注!上面xxxx为了避免敏感信息而用xxxx来代替。本人对于编译脚本和底层并不是很熟悉,因此对这个解决过程比较痛苦,所以留下这篇博客与遇到此类问题的朋友共勉,也希望大家能够理解这种分享的精神。

没有人会帮你一辈子,所以你要奋斗一生。

properties.h: No such file or directory compilation terminat

相关文章:

你感兴趣的文章:

标签云: