[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] compile libevent for android



Is it possible to provide a sample "Android.mk" so that I can build libevent.so for Android platform. Android NDK (Native Development Kit) requires a make file called "Android.mk". I am using Ubuntu 10.04. Or is there any other way. I saw this thread: http://archives.seul.org/libevent/users/May-2011/msg00043.html.
But running "CC=droid-gcc LD=droid-ld ./configure --host=arm-none-linux-gnueabi" failed, see below:

configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-none-linux-gnueabi-strip..
. no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... arm-none-linux-gnueabi
checking for arm-none-linux-gnueabi-gcc... droid-gcc
checking whether the C compiler works... no
configure: error: in `/home/huanga/workspace/Android/AmtGw/jni':
configure: error: C compiler cannot create executables
See `config.log' for more details
 

Thx a lot.