From: Adriano d. S. F. <adr...@gm...> - 2012-07-23 02:03:30
|
On 20-07-2012 10:09, Alex Peshkoff wrote: > On 07/20/12 16:20, JLM wrote: >> Hello, >> >> Thanks all for your answers. >> I didn't know that it was possible to build client library for Android. > > Hmm... > I've written about it in a comment in the tracker :) > >> It's for ARM ? > > Yes. > >> How do buil that ? > > Checkout trunk and use the following configure (autogen.sh) parameter > --with-cross-build=android.arme > I tried it, with official NDK but got error compiling common/CharSet.cpp which needs ICU. So not even the client compiled. --------------------------------------- asfernandes:~/fb/dev/trunk.git$ echo $NDK /home/asfernandes/android/android-ndk-r8 asfernandes:~/fb/dev/trunk.git$ ./autogen.sh --with-cross-build=android.arme /home/asfernandes/android/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -DARM -pipe -MMD -fPIC -fmessage-length=0 -I/home/asfernandes/fb/dev/trunk.git/extern/libtommath --sysroot=/home/asfernandes/android/android-ndk-r8/platforms/android-9/arch-arm -I/home/asfernandes/fb/dev/trunk.git/extern/icu/source/common -I/home/asfernandes/fb/dev/trunk.git/extern/icu/source/i18n -O3 -fno-omit-frame-pointer -I/home/asfernandes/fb/dev/trunk.git/src/include/gen -I/home/asfernandes/fb/dev/trunk.git/src/include -pthread -fno-rtti -c /home/asfernandes/fb/dev/trunk.git/src/common/CharSet.cpp -o /home/asfernandes/fb/dev/trunk.git/temp/Release/common/CharSet.o In file included from /home/asfernandes/fb/dev/trunk.git/extern/icu/source/common/unicode/utypes.h:36, from /home/asfernandes/fb/dev/trunk.git/extern/icu/source/common/unicode/ucnv.h:56, from /home/asfernandes/fb/dev/trunk.git/src/common/../jrd/../common/unicode_util.h:33, from /home/asfernandes/fb/dev/trunk.git/src/common/../jrd/intl_classes.h:35, from /home/asfernandes/fb/dev/trunk.git/src/common/CharSet.cpp:95: /home/asfernandes/fb/dev/trunk.git/extern/icu/source/common/unicode/umachine.h:52:33: error: unicode/platform.h: No such file or directory --------------------------------------- > BTW - I did not find any VM in android's NDK. What is the best way to > check/debug android's soft? The VM comes with the *SDK*. AFAIU, Android Apps can't be standalone native executable. It must have a Java (Dalvik) laucher which calls the native part as JNI. > Please also check correctness of defines in > src/include/cross/android.arme - for lear reasons I had to emulate > autogen's output manually. > >> Cross-compilation of Firebird runs with difficulty. > > Yes. Firebird requires a number of newly-built binaries to be executed > during build. In trunk cross-compilation problem is partially solved (up > to fbclient). The solution is clear - first of all I build required > tools in gen/Native. Later during port I plan to solve all cross-compile > issues up to getting installable package for cross architecture. > >> Do you use a classic >> gcc cross-compiler of do you use the NDK toolset ? > > NDK toolset. But not in google-recommended mode - I just call required binaries like g++ from standard Makefile. > Please note file docs/STANDALONE-TOOLCHAIN.html. It says that without installing the toolchain in different location, RTTI, STL and exceptions can't be used. Adriano |