[Defy General] wskelly:
Using Linux Mint on 32 bit machine

Fantastic guide, thank you!!

I'm on an old P3-1.4GHz, 32 bit. When following this guide I suddenly realized that many of the instructions are specifically targeting the 64 bit environment. Also, I'm using Linux Mint, which is based on Ubuntu, so most of the instructions worked for me.

You will see errors like this if you try to build on a 32 bit machine:

/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc: cannot execute binary file
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc: cannot execute binary file

Here are the things I had to do differently:

sudo apt-get install libncurses5-dev:i386
sudo apt-get install libreadline-gplv2-dev
ia32-libs not needed if you have a 32 bit machine
sudo apt-get install schedtool
sudo apt-get install xsltproc
sudo apt-get install pngcrush

Create a file called local_manifest.xml in cm/.repo, and make the contents look like this:

<manifest>
<project
name="yath/android_prebuilts_gcc_linux-x86-32_arm_arm-linux-androideabi-4.6"
path="prebuilts/gcc/linux-x86-32/arm/arm-linux-androideabi-4.6" />
</manifest>

Go back to /cm and do:

repo sync

I got an error about a missing .config file for wpa_supplicant:

make: *** No rule to make target `external/wpa_supplicant_6/wpa_supplicant/.config'. Stop.

The workaround was in this thread, basically involved getting the .config file directly from github. Here is how I did that:

wskelly@gladstone ~/cmdefy $ cd external/wpa_supplicant_6/wpa_supplicant/
wskelly@gladstone ~/cmdefy/external/wpa_supplicant_6/wpa_supplicant $ wget https://raw.github.com/CyanogenDefy/android_external_wpa_supplicant_6/ics/wpa_supplicant/.config
--2012-10-21 16:41:22-- https://raw.github.com/CyanogenDefy/android_external_wpa_supplicant_6/ics/wpa_supplicant/.config
Resolving raw.github.com... 207.97.227.243
Connecting to raw.github.com|207.97.227.243|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13923 (14K) [text/plain]
Saving to: `.config'

100%[======================================>] 13,923 --.-K/s in 0s

2012-10-21 16:41:22 (228 MB/s) - `.config' saved [13923/13923]

So I can't say for sure if it all worked, my old machine is still cranking away now for a couple of hours, but it seems to be working. I'll edit this post if I get a final build. :)

Edit 2012-10-22 20:14: Still going. Damn. As a Gentoo user for many years, I've learned Ninja-like patience. But this is really time consuming on my old PC. I guess it's time to upgrade.

Edit 2012-10-23 20:49: Welp, it failed during the final stages of the build because I ran out of space. I emptied my trash folder and this freed up quite a bit, so I tried it again. I am happy to report that I got a complete build on my old 32 bit machine! I definitely need to upgrade. I am about to flash the build onto the phone and see what happens.

Edit 2012-10-24 20:42: Flashed it last night and it runs great. Better battery life than the Quarx one but this makes no sense to me... I can't believe it was this easy. Thanks for the guide!