Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu 32 compile Android 4.0.4 Problems     - Du and df show disk space usage inconsistent Causes and Treatment (Linux)

- Linux Thread Synchronization (Programming)

- Ten best plug surge Emacs Productivity (Linux)

- Fedora 20 Installation and Configuration (Linux)

- Several reasons MySQL garbled (Database)

- Open Ubuntu system updates (Linux)

- Ubuntu 14.10 / 14.04 how to install Quick Start tool Mutate 2.2 (Linux)

- Quick Install software RAID on Linux (Linux)

- Why learn and use C language (Programming)

- To install MySQL on Linux (Database)

- How do I switch from NetworkManager to systemd-network on Linux (Linux)

- Linux and Unix systems really do network more secure (Linux)

- How to monitor network usage by nload in Linux (Linux)

- Linux source code analysis tool (Linux)

- Thinking in Java study notes - initialization and cleanup (Programming)

- Linux command line ten magic usage (Linux)

- Oracle 11g new features and associated SQL TUNING (Database)

- How to make a U disk to install Ubuntu (Linux)

- Arronax allows you to easily create desktop startup file (Linux)

- Java, extends and implements Usage (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) \

$ (If $ (GENERATE_DEX_DEBUG), \

--debug --verbose \

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

--dump-width = 1000) \

$ (PRIVATE_DX_FLAGS) \

$ <

endef

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.
     
         
         
         
  More:      
 
- Android development, may cause a memory leak problem (Programming)
- Analysis of memory mapping process in Linux x86-32 mode (Linux)
- Installation JDK1.7 under Ubuntu14.04 64-bit (Linux)
- Oracle Database Performance Optimization of memory disk (Database)
- Some security configuration of Linux systems (Linux)
- W and uptime command (Linux)
- CentOS Linux build SVN server (Server)
- Use Elasticsearch + Logstash + Kibana set up centralized log Practice Analysis Platform (Server)
- Three strategies to teach you to release the device memory (Linux)
- C ++ Replication Control: Assignment operators and destructors (Programming)
- To install MySQL 5.6 binary packages under CentOS 6.4 64bit (Database)
- CentOS install SystemTap-2.6 (Linux)
- Linux (CentOS) SSH login without password authentication (Linux)
- Without Visual Studio .NET Windows application development (Programming)
- CentOS 6.6 install rsync server (Server)
- GitLab issued Merge Request return error 500 when the two solutions log (Linux)
- CentOS 6 kernel upgrade to Kernel 3.x (Linux)
- Linux Getting Started tutorial: Ubuntu 14.04 in the installation Sogou Pinyin (Linux)
- Java exception handling mechanism (Programming)
- Iptables in Ubuntu (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.