64-bit Ubuntu11.04 compile and run Android2.3 to solve other errors

Source: Internet
Author: User
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

Related Article

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.