Android 2.3.4 compilation errors and workarounds

Source: Internet
Author: User

Some libraries that need to be installed are the following: sudo apt-get install Git-core GnuPG Flex Bison gperf build-essential \zip Curl Zlib1g-dev Libc6-dev LIB32NC Urses5-dev ia32-libs \x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \libgl1-mesa-dev g++-multilib mingw32 Tofrodos python-markdown \libxml2-utils xsltproc sudo ln-s/usr/lib32/mesa/libgl.so.1/usr/lib32/mesa/libgl.so (above is for reference: "TE&OK6410 Development Board Android2.3.4 User manual 11.pdf" on the compilation of Android source part of the content) 1.

You is attempting to build on a 32-bit system.

Only 64-bit build environments is supported beyond froyo/2.2

./external/clearsilver/cgi/android.mk

./external/clearsilver/java-jni/android.mk

./external/clearsilver/util/android.mk

./external/clearsilver/cs/android.mk

Four files in

Local_cflags + =-m64

Local_ldflags + =-m64

Comment out, or replace "64" with "32"

Local_cflags + =-m32

Local_ldflags + =-m32

Then, place the/build/core/main.mk in the.

Ifneq (64,$ (findstring 64,$ (build_arch)))

Switch

Ifneq (i686,$ (findstring i686,$ (build_arch)))

2. sh: gperf: not found: sudo apt-get InstallGperf 3.Mediascanner. cpp:84:Error: Invalid conversion from ' const CHAR*GCC version too high, install gcc4.3 tune: http://blog.csdn.net/dinko321/article/details/21730121 4. Httpstream.cpp:136:error: ' Ushrt_max ' is not declared in this scope ... Solution:

Do not compile the simulator version, compile the generic version. Tune: http://www.cnblogs.com/jerryren/archive/2012/02/10/2344836.html do not compile the generic version of the above, do not know whether the simulator is recognized, the final compilation is successful (when the final verification, The discovery is the simulator to run, can direct success, worry about it)

Android 2.3.4 compilation errors and workarounds

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.