Android source code compilation make error handling

Source: Internet
Author: User

Android source code download: Official download or reference android source code download method Android compiled version: PLATFORM_VERSION = 4.0.1 (latest Android 4.0.1) OS Operating System Platform: linux yanggang 2.6.35-30-generic # 61-Ubuntu SMP Tue Oct 11 15:29:15 UTC 2011 i686 GNU/Linux (Ubuntu10.10 32bit)
First, install some common tools.
Curl: sudo apt-get install curlgit: sudo apt-get install gitg ++: sudo apt-get install g ++
Then, make installs whatever it lacks.
/Usr/bin/ld: cannot find-lzhost Executable: aapt (out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt)
/Usr/bin/ld: cannot find-lz
Collect2: ld returned 1 exit status
Make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt] Error 1
Solution: sudo apt-get install zlib1g-dev sudo apt-get install lib64z1-dev

/Bin/bash: bison: command not foundYacc: aidl <= frameworks/base/tools/aidl/aidl_language_y.y
Bison-d-o out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp frameworks/base/tools/aidl/aidl_language_y.y
/Bin/bash: bison: command not found
Make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] Error 127
Solution: sudo apt-get install bison
/Bin/bash: flex: command not foundout/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp: In function 'int yyparse ()':
Out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp: 1827: warning: deprecated conversion from string constant to 'Char *'
Out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp: 1970: warning: deprecated conversion from string constant to 'Char *'
Lex: aidl <= frameworks/base/tools/aidl/aidl_language_l.l
/Bin/bash: flex: command not found
Make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Error 127
Solution: sudo apt-get install flex
/Usr/bin/ld: cannot find-lncurseshost Executable: adb (out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb)
/Usr/bin/ld: cannot find-lncurses
Collect2: ld returned 1 exit status
Make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1 solution: sudo apt-get install libncurses5-dev
Fatal error: GL/glx. h: No such file or directorydevelopment/tools/emulator/opengl/host/libs/Translator/GLcommon/GLDispatch. cpp: 22: fatal error: GL/glx. h: No such file or directory
Compilation terminated.
Make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libGLcommon_intermediates/GLDispatch. o] Error 1 solution: sudo apt-get install libgl1-mesa-dev
Sh: gperf: not foundtarget Generated: libwebcore <= external/webkit/Source/JavaScriptCore/create_regex_tables
Generating CSSPropertyNames. h <= CSSPropertyNames. in
Sh: gperf: not found
Calling gperf failed: 32512 at./makeprop. pl line 140.
Make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/css/CSSPropertyNames. h] Error 25
Make: *** Deleting file 'out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/css/CSSPropertyNames. h' solution: sudo apt-get install gperf

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.