Resolve fatal Error:sys/system_properties.h:no Such file or directory compilation terminated.

Source: Internet
Author: User

Compiled Exception 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] Error 1make[1]: Leaving directory '/home/<strong>xxxx</strong>/code/<strong> Xxxxx</strong>/kk/bra_<strong>xxxx</strong>/alps '                    ==> [FAIL]  2015/03/20 17:16:54make: * * * [mm] Error 2

Analysis:

compilation is simply because Build_host_static_library does not reference the corresponding static library, the Mk file references the corresponding static library, compiled by.

To modify the Android.mk file:

Local_module_tags: = Optional
Local_static_libraries: = \
Libcutils \

Include $ (build_host_static_library)

If the Mk file for the corresponding module cannot be found, use this command to try the search:

The following xxxx.cpp can make the files in the compiled module, preferably after you modify the file

Find-name *.mk | Xargs grep "Xxxx.cpp"-NSR--color=auto

Note! Above XXXX in order to avoid sensitive information and use XXXX instead. I am not very familiar with the compilation script and the underlying, so the resolution process is more painful, so leave this blog and encounter such problems of friends to share, but also hope that we can understand the spirit of sharing.

Resolve fatal Error:sys/system_properties.h:no Such file or directory compilation terminated.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.