Building Android Source

128 views
Skip to first unread message

JBeans

unread,
Feb 24, 2011, 2:22:33 AM2/24/11
to Android Building
Hi ,

I have downlooded the source code yesterday (FEB 23) and when i try to
run command make I get the following error. I use ubuntu release 10.10
(maverick). Kindly advice
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=AOSP
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv5te
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
============================================
Checking build tools versions...
build/core/main.mk:76:
************************************************************
build/core/main.mk:77: You are attempting to build on a 32-bit system.
build/core/main.mk:78: Only 64-bit build environments are supported
beyond froyo/2.2.
build/core/main.mk:79:
************************************************************
build/core/main.mk:80: *** stop. Stop.


warm regards

Jean-Baptiste Queru

unread,
Mar 2, 2011, 11:20:44 AM3/2/11
to android-...@googlegroups.com
The error message says it all: "You are attempting to build on a
32-bit system. Only 64-bit build environments are supported beyond
froyo/2.2."

JBQ

> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Josias Junior

unread,
Mar 2, 2011, 12:30:35 PM3/2/11
to Android Building
I guess the right step to do is install a 64-bit system like Jean-
Baptiste said, however you can try to do the following steps to build
the source using a 32-bit machine.

(32 bits machine only)

-- build/core/main.mk

vi build/core/main.mk

change

ifneq (64,$(findstring 64,$(build_arch)))

to

ifneq (i686,$(findstring i686,$(build_arch)))

-- external/clearsilver/cgi/Android.mk

vi external/clearsilver/cgi/Android.mk

change

LOCAL_CFLAGS += -m64
LOCAL_LDFLAGS += -m64

to
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += -m32

-- external/clearsilver/cs/Android.mk

vi external/clearsilver/cs/Android.mk

change

LOCAL_CFLAGS += -m64
LOCAL_LDFLAGS += -m64

to
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += -m32


-- external/clearsilver/java-jni/Android.mk

vi external/clearsilver/java-jni/Android.mk

change

LOCAL_CFLAGS += -m64
LOCAL_LDFLAGS += -m64

to
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += -m32

-- external/clearsilver/util/Android.mk

vi external/clearsilver/util/Android.mk

change

LOCAL_CFLAGS += -m64
LOCAL_LDFLAGS += -m64

to
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += -m32
Reply all
Reply to author
Forward
0 new messages