Error handling for Android source compilation make

Source: Internet
Author: User
Tags deprecated

Android source download: Official download or reference Android source download mode Android 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 15:29:15 UTC i686 gnu/linux (Ubuntu10.10 32bit)
First, let's install some common tools
Curl:sudo apt-get Install Curl git:sudo apt-get install git g++: sudo apt-get install g++
Then, make what you need to install
/usr/bin/ld:cannot Find-lz host 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
Workaround: sudo apt-get install zlib1g-dev sudo apt-get install Lib64z1-dev

/bin/bash:bison:command not found Yacc: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
Workaround: sudo apt-get install bison
/bin/bash:flex:command not found Out/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
Workaround: sudo apt-get install Flex
/usr/bin/ld:cannot find-lncurses host 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 Workaround: sudo apt-get install Libncurses5-dev
Fatal error:gl/glx.h:no such file or directory development/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 workaround: sudo apt-get Install Libgl1-mesa-dev
Sh:gperf:not found target 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 ' Workaround: 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.