Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Ubuntu 32 compile Android 4.0.4 Problems     - SVN hook code set to synchronize Web directory (Server)

- Linux kernel netpoll framework netconsole (Linux)

- CentOS Nginx achieve 3 virtual machine load balancing (Server)

- Install JDK 1.7 + Eclipse in CentOS 6.4 in (Linux)

- Python class of operator overloading (Programming)

- The traffic monitoring system: cacti (Linux)

- Figlet use (Linux)

- Graphical interface for the CentOS 6.4 installed and connected by remote VNC (Linux)

- Get and Post requests Comments (Linux)

- How to Install lightweight Budgie desktop on Ubuntu 14.04 (v8) (Linux)

- How to limit network bandwidth usage in Linux (Linux)

- C + + secondary pointer memory model (pointer array) (Programming)

- How to update the ISPConfig 3 SSL Certificates (Server)

- CentOS 7 hard disk expansion toss record (Linux)

- SecureCRT in Python scripting study guide (Programming)

- Win7 + Ubuntu Kylin + CentOS 6.5 installed three systems (Linux)

- Composition and dynamic memory allocation C program (Programming)

- Internal class broadcasting needs public and static (Programming)

- Redis-2.8.17 installation and configuration process some errors (Linux)

- Two minutes thoroughly so that you understand Android Activity Lifecycle (Programming)

  Ubuntu 32 compile Android 4.0.4 Problems
  Add Date : 2018-11-21      
  First problem: the 32-bit Ubuntu 12.04 compile Android4.0.4 source when there is an error on emulator, the key is its Makefile in the -m64 parameters, which can be replaced with -m32, the following error message:

ERROR: prebuilts / tools / gcc-sdk /../../ gcc / linux-x86 / host / x86_64-linux-glibc2.7-4.6 / bin / x86_64-linux-gcc only run on 64-bit linux

make: *** [out / host / linux-x86 / obj / STATIC_LIBRARIES / emulator64-target-arm_intermediates / tcg / tcg.o] Error 1

Documents related to the need to change is as follows:

external / qemu / Makefile.target

external / qemu / Makefile.common

Second problem: The following message appears when compiling:

target Dex: core

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

make: *** [out / target / common / obj / JAVA_LIBRARIES / core_intermediates / noproguard.classes-with-local.dex] Error 1

Find build / core / definitions.mk files found the following:

#TODO: Use a smaller -Xmx value for most libraries;

# Only core.jar and framework.jar need a heap this big.

# Avoid the memory arguments on Windows, dx fails to load for some reason with them.

define transform-classes.jar-to-dex

@echo "target Dex: $ (PRIVATE_MODULE)"

@mkdir -p $ (dir $ @)

$ (Hide) $ (DX) \

$ (If $ (findstring windows, $ (HOST_OS)) ,, - JXms16M -JXmx2048M) \

--dex --output = $ @ \

$ (Incremental_dex) \

$ (If $ (NO_OPTIMIZE_DX), \

--no-optimize) \


--debug --verbose \

--dump-to = $ (@ :. dex = .lst) \

--dump-width = 1000) \


$ <


Since the contents of my computer only 2GB, then the above 2048M certainly can not meet because of the need to allocate kernel memory allocation when linux, so adjust the parameters for the small 1024M.

Will continue to compile some errors on the emulator, and consult the google official information, that is to compile on 64bit systems, replaced after 64, what mistakes did occur, compile all normal.
- Installation and use Docker under Ubuntu 14.04 (Linux)
- How to clean up your Ubuntu 14.10 / 14.04 / 13.10 system (Linux)
- Change the kernel boot sequence after CentOS 7 kernel upgrade (Linux)
- Java objects to garbage collection (Programming)
- X security settings in Ubuntu (Linux)
- Spring + MyBatis Multi data source switching (Database)
- Xshell configure SSH free password (Server)
- How to install and use the malware detection tool LMD and ClamAV antivirus engine on Linux (Linux)
- php performance monitoring module XHProf (Linux)
- Tsunami-udp accelerated network transmission (Linux)
- Java to achieve local fileCopy (Programming)
- Linux foreground to background process switch (Linux)
- netfilter- in kernel mode network packet operation (Linux)
- MySQL Basic tutorial: About varchar (N) (Database)
- To compile and install MySQL 5.7.7 RC under CentOS 7.1 (Database)
- Introduction to Linux Shell (Programming)
- MyCAT read and write separation of MySQL (Database)
- Linux Study of --CentOS create local yum repository (Linux)
- Linux directory permissions to read and execute permissions difference (Linux)
- Linux system commands to view hardware information (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.