• android源码编译错误


    确保必要的环境

    1、错误: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

    make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] 错误 1 

    解决:   

    sudo apt-get install libc6-dev-i386 

    2、错误: make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp] error 1 

    解决:   

    sudo apt-get install g++-multilib 

    3、错误: external/clearsilver/cgi/cgi.c:22: fatal error: zlib.h: No such file or directory compilation terminated.

    make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi.o] Error 1 

    解决:

    sudo apt-get install zlib1g-dev 

    4、错误: /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status

    make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt] Error 1 

    解决:

    sudo apt-get install lib32z1-dev

    5、错误: 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 

    解决:

    sudo apt-get install bison 

    6、错误: 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 

    解决:

    sudo apt-get install flex 

    7、错误: /usr/bin/ld: cannot find -lncurses collect2: ld returned 1 exit status

    make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1

     解决:

    sudo apt-get install lib32ncurses5-dev

     8、错误: prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:55: fatal error: X11/Xlib.h: No such file or directory compilation terminated.

    make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/android/main-common.o] Error 1 

    解决:

    sudo apt-get install libx11-dev

    9、错误: sh: gperf: not found calling gperf failed: 32512 at ./makeprop.pl line 96.

    make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/css/CSSPropertyNames.h] Error 25 make: *** Deleting file `out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/css/CSSPropertyNames.h'

    解决:

    sudo apt-get install gperf 

    10、错误: build/core/java.mk:9: *** bin: Target java module does not define any source or resource files. Stop. 

    解决:      

    删除源码根目录下的bin文件夹,这个文件夹是导入eclipse时创建的。 

    11、错误:make: *** [out/target/common/obj/APPS/CtsVerifier_intermediates/classes-full-debug.jar] 错误 41 

    解决:

    make clobber

  • 相关阅读:
    Scalaz(3)- 基础篇:函数概括化-Generalizing Functions
    Scalaz(2)- 基础篇:随意多态-typeclass, ad-hoc polymorphism
    Scalaz(1)- 基础篇:隐式转换解析策略-Implicit resolution
    Scalaz(0)
    泛函编程(38)-泛函Stream IO:IO Process in action
    泛函编程(37)-泛函Stream IO:通用的IO处理过程-Free Process
    泛函编程(36)-泛函Stream IO:IO数据源-IO Source & Sink
    泛函编程(35)-泛函Stream IO:IO处理过程-IO Process
    javascript基础
    jsp联合javascript操作html
  • 原文地址:https://www.cnblogs.com/xieweiwei/p/3455817.html
Copyright © 2020-2023  润新知