WEB开发网
开发学院手机开发Android 开发 android 编译源码 错误解决 阅读

android 编译源码 错误解决

 2010-07-15 20:32:00 来源:WEB开发网   
核心提示: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/cl

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 ‘Bytef’

external/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] Error 1

解决:a@ubuntu:~/work/android-2.1_r2$ sudo apt-get install zlib1g-dev

(5)/bin/bash: flex: command not found

make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Error 127

解决:a@ubuntu:~/work/android-2.1_r2$ sudo apt-get install flex

(6)/usr/bin/ld: cannot find -lncurses

collect2: ld returned 1 exit status

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

解决:a@ubuntu:~/work/android-2.1_r2$ sudo apt-get install libncurses-dev

(7)prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:55:22: error: X11/Xlib.h: No such file or directory

prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:56:23: error: X11/Xatom.h: No such file or directory

In file included from external/qemu/android/skin/window.c:19:

prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:73: error: expected specifier-qualifier-list before ‘XEvent’

prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:86: error: expected specifier-qualifier-list before ‘Display’

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

解决:a@ubuntu:~/work/android-2.1_r2$ sudo apt-get install libx11-dev

(8)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]

上一页  1 2 3 4 5 6 7 8  下一页

Tags:android 编译 源码

编辑录入:coldstar [复制链接] [打 印]
赞助商链接