Make following simple changes to build Gingerbread on 32 bit Ubuntu.
1. In build/core/main.mk change
ifneq (64,$(findstring 64,$(build_arch)))
to
ifneq (i686,$(findstring i686,$(build_arch)))
(Note that there are two changes on that line)
2. In the following files
external/clearsilver/cgi/Android.mk
external/clearsilver/java-jni/Android.mk
external/clearsilver/util/Android.mk
external/clearsilver/cs/Android.mk
change
LOCAL_CFLAGS += -m64
LOCAL_LDFLAGS += -m64
to
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += -m32
3. Install following packages (in addition to packages you must have
installed for Froyo Build.)
sudo apt-get install lib64z1-dev libc6-dev-amd64 g++-multilib
lib64stdc++6
4. Install Java 1.6
sudo apt-get install sun-java6-jdk
1. In build/core/main.mk change
ifneq (64,$(findstring 64,$(build_arch)))
to
ifneq (i686,$(findstring i686,$(build_arch)))
(Note that there are two changes on that line)
2. In the following files
external/clearsilver/cgi/Android.mk
external/clearsilver/java-jni/Android.mk
external/clearsilver/util/Android.mk
external/clearsilver/cs/Android.mk
change
LOCAL_CFLAGS += -m64
LOCAL_LDFLAGS += -m64
to
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += -m32
3. Install following packages (in addition to packages you must have
installed for Froyo Build.)
sudo apt-get install lib64z1-dev libc6-dev-amd64 g++-multilib
lib64stdc++6
4. Install Java 1.6
sudo apt-get install sun-java6-jdk