0

In the Cyanogenmod Wiki about compiling CM Android I read that a 64bit environment (Linux) is necessary to build recent Android versions. Is that true?

  1. Which step would fail on 32bit?
  2. Why can’t a 32bit system work there?
Robert Siemer
  • 32,405
  • 11
  • 84
  • 94

2 Answers2

1

At a guess, a 32-bit system would run out of RAM during linking. I recall reading about this problem with regard to compiling Chromium.

solarshado
  • 567
  • 5
  • 18
0

Referring to http://source.android.com/source/initializing.html

Setting up a Linux build environment

These instructions apply to all branches, including master.

The Android build is routinely tested in house on recent versions of Ubuntu LTS (10.04), but most distributions should have the required build tools available. Reports of successes or failures on other distributions are welcome.

For Gingerbread (2.3.x) and newer versions, including the master branch, a 64-bit environment is required. Older versions can be compiled on 32-bit systems.

Note: It is also possible to build Android in a virtual machine. If you are running Linux in a virtual machine, you will need at least 16GB of RAM/swap and 30GB or more of disk space in order to build the Android tree.

Robin
  • 10,052
  • 6
  • 31
  • 52