Ubuntu 14.04 LTS under Android 2.3.5 source code compilation process

Source: Internet
Author: User
Tags diff srec

Let's go... Ubuntu 14.04 LTS under Android 2.3.5 source code compilation Process 1. Error dalvik/vm/native/dalvik_system_zygote.c:191:19:error:storage size of ' rlim ' isn ' t known
struct Rlimit Rlim;

Workaround: Add header file # include <sys/resource.h> to the following file
Dalvik/vm/native/dalvik_system_zygote.cpp 2. Make: * * * [OUT/HOST/LINUX-X86/OBJ/EXECUTABLES/MKSNAPSHOT_INTERMEDIATES/SRC/ACCESSORS.O] Error 1 online search information, online is because GCC and G++ version Ben is too high, you should use gcc-4.4 and g++-4.4 to view my own version of GCC--version (result is 4.8) g++--version (Result 4.8) The workaround is simple, install GCC 4.4 and g++ 4.4 sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib after installation there will be/usr/bin and gcc-4.4 under g++-4.4, then the original GCC and g++ the symbolic link to remove, re-establish its point to our installed version: sudo rm-f/usr/bin/gcc sudo rm-f/usr/bin/g++ sudo ln-s/usr/bin/gcc-4.4/usr/ BIN/GCC sudo ln-s/usr/bin/g++-4.4/usr/bin/g++ 3. External/srec/tools/thirdparty/openfst/fst/lib/cache.h:136:11:note:use ' This->setstate ' instead
Make: * * * [OUT/HOST/LINUX-X86/OBJ/EXECUTABLES/GRXMLCOMPILE_INTERMEDIATES/GRXMLCOMPILE.O] Error 1 Workaround: cd external/ Srec wget "Https://github.com/CyanogenMod/android_external_srec/commit/4d7ae7b79eda47e489669fbbe1f91ec501d42fb2.diff"
Patch-p1 < 4d7ae7b79eda47e489669fbbe1f91ec501d42fb2.diff
Rm-f 4d7ae7b79eda47e489669fbbe1f91ec501d42fb2.diff

4. In file included from system/extras/ext4_utils/output_file.c:30:/usr/include/zlib.h:34:fatal error:zconf.h: There is no file or directory compilation terminated.

Workaround: The reason is that Zlib1g-dev has a header file modified the path, and zconf.h placed in the/usr/include/x86_64-linux-gnu/, so copy it to the/usr/include/.

5. Make: * * * [OUT/TARGET/PRODUCT/GENERIC/OBJ/STATIC_LIBRARIES/LIBWEBCORE_INTERMEDIATES/WEBCORE/HTMLNAMES.H] Error 2
Workaround: Install sudo apt-get installation Libswitch-perl

6. Running out/host/linux-x86/bin$ Emulator error

Using the emulator of the Android SDK, you can start a virtual machine:

emulator-kernel/develop/sources/android/2.3.5/prebuilt/android-arm/kernel/kernel-qemu-sysdir/develop/sources/ Android/2.3.5/out/target/product/generic-system System.img-data userdata.img

If you add-ramdisk ramdisk.img will make a mistake, do not know what reason, need to continue to study.

More Good reference links:

Http://www.cnblogs.com/kobe8/p/3998379.html

Http://www.cnblogs.com/webapplee/p/3946506.html

http://blog.csdn.net/jiangwei0910410003/article/details/37988637

Http://www.omitol.com/archives/65.html

Ubuntu 14.04 LTS under Android 2.3.5 source code compilation process

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.