ubuntu编译Android出现的错误及解决方法.doc_第1页
ubuntu编译Android出现的错误及解决方法.doc_第2页
ubuntu编译Android出现的错误及解决方法.doc_第3页
ubuntu编译Android出现的错误及解决方法.doc_第4页
ubuntu编译Android出现的错误及解决方法.doc_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

刚开始编译Android系统,碰到了一些问题,上网搜了下,大都是软件问题,原因是有些依赖包没有装。检查以下有没有安装以下依赖包:sudo apt-get install bison libc6-dev-amd64 g+-multilib zlib1g-dev lib64z1-dev flex libncurses5-dev libx11-dev gperf下面是我遇到的错误及解决方法:/bin/bash: bison:找不到命令Checking build tools versions.*You are attempting to build with the incorrect versionof java.Your version is: /bin/bash: java:找不到命令.The correct version is: 1.6.Please follow the machine setup instructions at/source/download.html*build/core/main.mk:114: * stop。 停止。解决方法:sudo apt-get install bison-Install: out/host/linux-x86/framework/droiddoc.jartarget Generated: libclearsilver-jni = out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jarhost C: libclearsilver-jni = external/clearsilver/java-jni/j_neo_util.cIn file included from /usr/include/features.h:378,from /usr/include/string.h:26,from external/clearsilver/java-jni/j_neo_util.c:1:/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: 没有那个文件或目录make: * out/host/linux-x86/obj/SHARED_LIBRARIES/libclearsilver-jni_intermediates/j_neo_util.o 错误 1解决方法:sudo apt-get install libc6-dev-amd64-/2010/07/android-stubs-64/host SharedLib: libneo_util (out/host/linux-x86/obj/lib/libneo_util.so)/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc+.so when searching for -lstdc+/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc+.a when searching for -lstdc+/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc+.so when searching for -lstdc+/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc+.a when searching for -lstdc+/usr/bin/ld: cannot find -lstdc+collect2: ld returned 1 exit statusmake: * out/host/linux-x86/obj/lib/libneo_util.so 错误 1解决方法:sudo apt-get install g+-multilib-external/clearsilver/cgi/cgi.c:22:18: error: zlib.h: 没有那个文件或目录external/clearsilver/cgi/cgi.c: In function cgi_compress:external/clearsilver/cgi/cgi.c:885: error: z_stream undeclared (first use in this function)external/clearsilver/cgi/cgi.c:885: error: (Each undeclared identifier is reported only onceexternal/clearsilver/cgi/cgi.c:885: error: for each function it appears in.)external/clearsilver/cgi/cgi.c:885: error: expected ; before streamexternal/clearsilver/cgi/cgi.c:888: error: stream undeclared (first use in this function)external/clearsilver/cgi/cgi.c:888: error: Bytef undeclared (first use in this function)external/clearsilver/cgi/cgi.c:888: error: expected expression before ) tokenexternal/clearsilver/cgi/cgi.c:889: error: uInt undeclared (first use in this function)external/clearsilver/cgi/cgi.c:889: error: expected ; before strexternal/clearsilver/cgi/cgi.c:890: error: expected expression before ) tokenexternal/clearsilver/cgi/cgi.c:892: error: uLong undeclared (first use in this function)external/clearsilver/cgi/cgi.c:892: error: expected ) before streamexternal/clearsilver/cgi/cgi.c:895: error: alloc_func undeclared (first use in this function)external/clearsilver/cgi/cgi.c:895: error: expected ; before numeric constantexternal/clearsilver/cgi/cgi.c:896: error: free_func undeclared (first use in this function)external/clearsilver/cgi/cgi.c:896: error: expected ; before numeric constantexternal/clearsilver/cgi/cgi.c:897: error: voidpf undeclared (first use in this function)external/clearsilver/cgi/cgi.c:897: error: expected ; before numeric constantexternal/clearsilver/cgi/cgi.c:900: error: Z_DEFAULT_COMPRESSION undeclared (first use in this function)external/clearsilver/cgi/cgi.c:900: error: Z_DEFLATED undeclared (first use in this function)external/clearsilver/cgi/cgi.c:900: error: MAX_WBITS undeclared (first use in this function)external/clearsilver/cgi/cgi.c:900: error: Z_DEFAULT_STRATEGY undeclared (first use in this function)external/clearsilver/cgi/cgi.c:901: error: Z_OK undeclared (first use in this function)external/clearsilver/cgi/cgi.c:904: error: Z_FINISH undeclared (first use in this function)external/clearsilver/cgi/cgi.c:905: error: Z_STREAM_END undeclared (first use in this function)external/clearsilver/cgi/cgi.c: In function cgi_output:external/clearsilver/cgi/cgi.c:1200: error: Z_NULL undeclared (first use in this function)external/clearsilver/cgi/cgi.c:1201: error: expected ) before Bytefexternal/clearsilver/cgi/cgi.c:1201: warning: cast from pointer to integer of different sizeexternal/clearsilver/cgi/cgi.c:1218: error: Z_DEFLATED undeclared (first use in this function)make: * out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi.o 错误 1解决方法:sudo apt-get install zlib1g-dev-host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/./././libz.so when searching for -lz/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/./././libz.a when searching for -lz/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz/usr/bin/ld: cannot find -lzcollect2: ld returned 1 exit statusmake: * out/host/linux-x86/obj/lib/libneo_cgi.so 错误 1解决方法:sudo apt-get install lib64z1-dev-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:找不到命令make: * out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp 错误 127解决方法:sudo apt-get install flex-Docs droiddoc: out/target/common/docs/api-stubsCould not load clearsilver-jnijava.library.path = out/host/linux-x86/libmake: * out/target/common/docs/api-stubs-timestamp 错误 45解决方法:安装 jdk1.5-host Executable: adb (out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb)/usr/bin/ld: cannot find -lncursescollect2: ld returned 1 exit statusmake: * out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb 错误 1解决方法:sudo apt-get install libncurses5-dev-host C: emulator = external/qemu/android/main.cIn file included from external/qemu/android/main.c:30:prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:55:22: error: X11/Xlib.h: 没有那个文件或目录prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:56:23: error: X11/Xatom.h: 没有那个文件或目录In file included from external/qemu/android/main.c:30:prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:73: error: expected specifier-qualifier-list before XEventprebuilt/linux-x86/sdl/include

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论