Firebird News

Thursday, September 26, 2013

Building Firebird Client for Android

Download and install ndk  unzip in your home
install firebird build dependencies
sudo apt-get build-dep firebird2.5

cd ~
wget http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86_64.tar.bz2

tar -jxvf android-ndk-r9d-linux-x86_64.tar.bz2

export NDK=$HOME/android-ndk-r9d
echo $NDK

get the Firebird 3.0 alpha2 src
wget http://web.firebirdsql.org/download/prerelease/source/Firebird-3.0.0.30809-Alpha2.tar.bz2

tar -jxvf Firebird-3.0.0.30809-Alpha2.tar.bz2
cd Firebird-3.0.0.30809-Alpha2

cp /usr/include/x86_64-linux-gnu/unicode/platform.h extern/icu/source/common/unicode
cp /usr/include/x86_64-linux-gnu/unicode/uvernum.h extern/icu/source/common/unicode

./autogen.sh --with-system-editline --enable-binreloc --with-cross-build=android.arme

after that the libfbclient.so is created for arm

cd gen/Release/firebird/lib
file libfbclient.so.3.0.0
libfbclient.so.3.0.0: ELF 32-bit LSB  shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, not stripped

You can download from here
http://mariuz.android-dev.ro/android_fbclient/libfbclient.so.3.0.0