Android Introduction and source code compilation--Common compilation errors

Source: Internet
Author: User

Six. common compilation errors

In the newly installed Ubuntu system, the first time to compile the Android source code a lot of problems. The following are issues that occur during the compilation process after the Make command is executed.

The principle is that make will install what is missing, and search for an error via Google + Baidu.

    • error :/bin/bash:build/core/find-jdk-tools-jar.sh:permission denied
    • resolution : In order to prevent the same permissions problems, I have all the Android files added permissions, access to the Android source code root directory, to do :

$sudo chmod 777 *-R

  • error : make[3]: * * * [Out/target/common/docs/doc-comment-check-timestamp] Error 45
  • Solve: Soft Connection
    $sudo LN-s/usr/lib/jvm/jdk1.6.0_45/bin/jar/bin/jar$sudo LN-s/usr/lib/jvm/jdk1.6.0_45/bin/java/bin/java$sudo LN-s/usr/lib/jvm/jdk1.6.0_45/bin/javac/bin/javac$sudo LN-s/usr/lib/jvm/jdk1.6.0_45/bin/javah/bin/javah$sudo LN-s/usr/lib/jvm/jdk1.6.0_45/bin/javadoc/bin/javadoc$sudo LN-s/usr/lib/jvm/jdk1.6.0_45/bin/java/bin/java

    • error Make: * * * [OUT/HOST/LINUX-X86/OBJ/SHARED_LIBRARIES/LIBEGL_TRANSLATOR_INTERMEDIATES/EGLX11API.O] Error 1:
    • Solution :
      sudo Install Libgl1-mesa-dev

    • error : Make: * * * [OUT/HOST/LINUX-X86/OBJ/EXECUTABLES/AAPT_INTERMEDIATES/AAPT] Error 1
    • Solution :
      $sudoinstall zlib1g-dev$sudoinstall Lib64z1-dev

    • error : Make: * * * [Out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_y.cpp] Error 127
    • Solution :
      $sudoinstall bison

    • error : Make: * * * [Out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_l.cpp] Error 127
    • Solution :
      $sudoinstall Flex

    • error : Make: * * * [OUT/HOST/LINUX-X86/OBJ/EXECUTABLES/ADB_INTERMEDIATES/ADB] Error 1
    • Solution :
      $sudoinstall Libncurses5-dev

    • error : Make: * * * [OUT/HOST/LINUX-X86/OBJ/STATIC_LIBRARIES/LIBGLCOMMON_INTERMEDIATES/GLDISPATCH.O] Error 1
    • Solution :
      $sudoinstall Libgl1-mesa-dev

    • error : Make: * * * Deleting file ' out/target/product/generic/obj/static_libraries/libwebcore_intermediates/ Source/webcore/css/csspropertynames.h '
    • Solution :
      $sudoinstall gperf

    • error :/usr/include/gnu/stubs.h:7: Fatal error:gnu/stubs-32.h:no such file or directory
    • Solution :
      $sudoinstall libc6-dev-i386

    • error : external/clearsilver/cgi/cgi.c:22:fatal error:zlib.h:no such file or directory
    • Solution :
      $sudoinstall Zlib1g-dev

    • error : Make: * * * [Out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_l.cpp] Error 127
    • Solution :
      $sudoinstall Flex

    • error : Make: * * * [Out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_y.cpp] Error 127
    • Solution :
      $sudoinstall bison

    • error : Make: * * * [OUT/HOST/LINUX-X86/OBJ/EXECUTABLES/AAPT_INTERMEDIATES/AAPT] Error 1
    • Solution :
      $sudoinstall Lib32z1-dev

  

Reference:

Http://blog.sina.com.cn/s/blog_ab85e99501018r6z.html
Http://www.cnblogs.com/wdpp/archive/2011/11/16/2386719.html
http://indiansmartphones.wordpress.com/2011/05/18/solution-to-fatal-error-glglx-h-no-such-file-or-directory/
http://blog.csdn.net/iamliuyanlei/article/details/8830981
Http://blog.sina.com.cn/s/blog_ab85e99501018r6z.html

Android Introduction and source code compilation--Common compilation errors

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.