Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu 32 compile Android 4.0.4 Problems     - Nginx1.8 version upgrade method AMH4.2 Free manually compile (Server)

- Production environment Linux bonding method standby mode slave card switch (Server)

- Linux System Getting Started Learning: Linux command in w (Linux)

- Use Oracle 11g show spparameter command (Database)

- Installation and use the telnet command under CentOS 6.x (Linux)

- C ++ hash function (Programming)

- JDK comes with tools JPS (Linux)

- Redis 3.0.3 Cluster Setup (Database)

- Binary search is really easy as you think you do (Programming)

- Adjustment expand VMDK format VirtualBox disk space (Linux)

- DRBD-based installation and configuration of CentOS 6.5 (Server)

- Eclipse remove all comments and code spaces (Linux)

- Linux system commands to view hardware information (Linux)

- Laravel cache paged results (Server)

- Ubuntu 14.04 LTS NTFS partition can not access solution (Linux)

- Atlassian Linux Shell Scripting the confluence remote backup methods (Linux)

- Import and export myloader accelerate mydumper (Database)

- Android first line of code study notes (Programming)

- Boost notes --Thread - problems encountered in the initial use on Ubuntu (Programming)

- Using Maven to download Spring (Linux)

 
         
  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:      
 
- Linux system started to learn: how to view the Linux thread of a process (Linux)
- PostgreSQL log classification and management (Database)
- Spring next ActiveMQ combat (Programming)
- ld.so.conf.d profile (Linux)
- JDK installation notes under CentOS (Linux)
- independently configurable PHP environment under CentOS6.5 (Server)
- Expand an existing RAID arrays and remove the failed disk in a RAID (Linux)
- C / C ++ language variable scope: local variables, global variables, file-level variables (Programming)
- The basic principles for the protection of a good linux server security (Linux)
- Linux operating system boot manager -GRUB (Linux)
- Oracle 11G using DG Broker create DataGuard (Database)
- Ubuntu in Vim editor display processing method Chinese garbled (Linux)
- Subsequent binary search tree traversal sequence (Programming)
- Installation and management of Linux applications (Linux)
- Linux non-root user uses less than 1024 ports (Linux)
- Binding unofficial Google Drive and Ubuntu 14.04 LTS (Linux)
- Oracle 12c detailing the new features (Database)
- Nginx Installation and Configuration (Server)
- Ubuntu users how to install the latest Nvidia graphics drivers (Linux)
- ElasticSearch basic usage and cluster structures (Server)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.