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

[Libevent-users] Building for Android



Hello.

I'm trying to build libevent for Android from Cygwin and is
experiencing some problems.

I've tried running configure with the following line:

./configure -host=arm-eabi CC=arm-linux-androideabi-gcc
CPPFLAGS="-I$NDK_ROOT/platforms/android-9/arch-arm/usr/include/"
CFLAGS="-nostdlib"
LDFLAGS="-Wl,-rpath-link=$NDK_ROOT/platforms/android-9/arch-arm/usr/lib/
-L$NDK_ROOT/platforms/android-9/arch-arm/usr/lib/" LIBS="-lc"

It seems to work except that the Makefile is generated as if I'm
compiling for a Windows host, using arm compilers :)

Is there a quick fix for this or do I need to write my own Android Makefile?

Tomorrow I'm going to try to build it from Linux and see if that works
better but it would be nice to know how to make this work in Cygwin.

BR,
Daniel
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.