Compile Android Cupcake from source on Ubuntu 9.04 Jaunty Jackalope

15 07 2009

I have checked out the recent sources for Android 1.5 Cupcake on my Jaunty box and have not been able to compile it. After some research, I have found a solution, which originates from the android-porting mailing list. The problem is buried in the customized Qemu Makefile. You should apply the following pach and hope everything works fine for you, too:

project external/qemu/
diff --git a/Makefile.android b/Makefile.android
index 4c697fb..98d2084 100644
--- a/Makefile.android
+++ b/Makefile.android
@@ -18,7 +18,7 @@ MY_CFLAGS := $(CONFIG_INCLUDES) -O2 -g \

 # this is needed to build the emulator on 64-bit Linux systems
 ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86)
-  MY_CFLAGS += -Wa,--32
+  MY_CFLAGS += -Wa,--32 -D_GNU_SOURCE
 endif

 ifeq ($(HOST_OS),freebsd)

Aktionen

Information

Kommentieren