When Ubuntu11.04 (64-bit) compiles the Android2.3 source code, various problems are encountered. Either missing or missing. These problems and solutions are listed for your reference. I am using Ubuntu11.04 (64-bit) Personal Edition, not a server version. Error:/usr/include/gnu/stubs. h: 7: 27: error: gnu/stubs-32.h: Nosuchfileordirectory
When compiling the Android2.3 source code in Ubuntu 11.04 (64-bit), various problems are encountered. Either missing or missing. These problems and solutions are listed for your reference. I am using the Ubuntu 11.04 (64-bit) Personal Edition, not the server version.
Error:
/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] Error 1
Solution:
Sudo apt-get install libc6-dev-i386
Error:
Make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp] error 1
Solution:
Sudo apt-get install g ++-multilib
Error:
External/clearsilver/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
Solution:
Sudo apt-get install zlib1g-dev
Error:
/Usr/bin/ld: cannot find-lz
Collect2: ld returned 1 exit status
Make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt] Error 1
Solution:
Sudo apt-get install lib32z1-dev
Error:
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
Solution:
Sudo apt-get install bison
Error:
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
Solution:
Sudo apt-get install flex
Error:
/Usr/bin/ld: cannot find-lncurses
Collect2: ld returned 1 exit status
Make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1
Solution:
Sudo apt-get install lib32ncurses5-dev
Error:
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
Solution:
Sudo apt-get install libx11-dev
Error:
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'
Solution:
Sudo apt-get install gperf
Error after running emulat:
SDL init failure, reason is: No available video device: On Ubuntu64
Apt-get install ia32-libs lib32stdc ++ 6