[Savannah-hackers-public] I need help on glib porting on to Android
From:
Shuxiang Lim
Subject:
[Savannah-hackers-public] I need help on glib porting on to Android
Date:
Mon, 21 Mar 2011 11:55:29 +0800
Hello to all friends of Gnash! I'm proud and fortunate to be enrolled in the mailing list for I'm now trying to port Redhat SPICE client on to Android. It's TOUGH,and you Gnash-android-porting guys will definitely agree with this. the Spice client is written in C++, but even I can overcome the C++ support problem in Android,I still have to move to the spicec version written in C/GTK because C is more 'safer' in Android than C++, and anyway the UI of it must be inevitably rewrote in JAVA.
But now comes the glib problems in porting to android. I referenced the instructions in http://wiki.gnashdev.org/AndroidDependencies But I got more trouble, for example there is no resolv.h and res_query in bionic libc, so I have to port libbind onto Android, and then I'm blocked in the bind-9.7 building now...
Have you gnash-android guys met this? Have you successfully ported glib onto Android, for I cannot find it in Gnash download vault? More detials please? I use the NDK from Mozzila with C++ support: http://ftp.mozilla.org/pub/mozilla.org/mobile/source/android-ndk-r4c-0moz3.tar.bz2
and I have modified Andrew Ross's agcc to partner with this NDK: http://blog.csdn.net/rozenix/archive/2011/02/28/6212994.aspx
I configure bind-9.7 with this BUILD_CC=gcc CC="agcc -I/data/local/include" CPPFLAGS="-I/data/local/include" BUILD_CPPFLAGS="-I/data/local/include" CXX=agcc LD=arm-eabi-ld BUILD_LDFLAGS="-L/data/local/lib" \
RANLIB=arm-eabi-ranlib \ PKG_CONFIG_LIBDIR=/data/local/lib/pkgconfig:/data/local/share/pkgconfig/ \ ./configure \ --prefix=/data/local \ --host=arm-eabi-linux \ --enable-malloc0returnsnull \
--enable-shared \ --with-threads=none \ --disable-epoll \ --with-openssl=no\ --with-randomdev=no\ and then run into the dirts of it! I configure glib2.28 with: CC=agcc CPPFLAGS="-I/data/local/include" LDFLAGS="-ldl -L/data/local/lib" CXX=agcc LD=arm-eabi-ld RANLIB=arm-eabi-ranlib \
PKG_CONFIG_LIBDIR=/data/local/lib/pkgconfig:/data/local/share/pkgconfig/ \ ./configure \ --prefix=/data/local \ --host=arm-eabi-linux \ --enable-malloc0returnsnull \ --enable-shared \
--cache-file=arm.cache \ --without-included-regex \ --disable-java --disable-openmp --without-libiconv-prefix --without-libintl-prefix --without-libglib-2.0-prefix --without-libcroco-0.6-prefix --with-included-libxml --without-libncurses-prefix --without-libtermcap-prefix --without-libcurses-prefix --without-libexpat-prefix --without-emacs
then I got "checking for res_query... configure: error: not found"
Any body can help me in the glib porting? Thank you forward! Rgrds.
[Prev in Thread]
Current Thread
[Next in Thread]
[Savannah-hackers-public] I need help on glib porting on to Android,
Shuxiang Lim<=