Monday, February 16, 2015

Building Firebird 3.0 Client / Embedded for Android Arm-32 bits

Download and install ndk  unzip in your home
install firebird build dependencies
sudo apt-get build-dep firebird3.0
sudo apt-get install libtommath-dev



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

get the Firebird 3.0 source code from https://github.com/FirebirdSQL/firebird/tree/B3_0_Release

git clone https://github.com/FirebirdSQL/firebird.git
cd core 
git checkout B3_0_Release
./autogen.sh  --with-cross-build=android.arm --without-editline --enable-binreloc
make
There was a libedit.a linking error so i had to copy it manually
cp extern/editline/src/libedit.a gen/Release/firebird/lib/libedit.a
after that the libfbclient.so is created for arm

file  gen/buildroot/opt/firebird/lib/libfbclient.so.3.0.0 
gen/buildroot/opt/firebird/lib/libfbclient.so.3.0.0: ELF 64-bit LSB  shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=b6cb7db07fcad2475aa79352fb515cbe3ac44eea, stripped

Soon i will add a download link

ps: fbclient.so in 3.0 can be used as embedded

5 comments:

Unknown said...

When performing this step ...

./autogen.sh --with-cross-build=android.arm --without-editline --enable-binreloc


Is generating this error message.

checking for tommath.h... no
configure: error: Include file for tommath not found - please install development tommath package

Could you tell me how to solve this?

Grateful

VALDEIR&VANESSA said...

Cam I use this on Delphi Xe7?

Popa Adrian Marius said...

Yes you can use it

Popa Adrian Marius said...

Jameson

sudo apt-get install libtommath-dev

Unknown said...

Hi!!! sory for my english.
you say we can used it in delphi xe7. but how? please.
Who have expiriense in this or just now how please tell. if cah step by step.