Hi,
from my attempt to put FB running on Android ....
The process is a little tricky.
1º
You must put the files( libfbclient, libEngine12, .. ) on asset folder and
then copy that to app/files folder.
The folder structure must be kept in order to work.
ex :
.../app.com/files/fb/firebird.conf
.../app.com/files/fb/firebird.msg
.../app.com/files/fb/lib/libfbclient.so
.../app.com/files/fb/plugins/libEngine12.so
.../app.com/files/fb/intl/intl.conf
.../app.com/files/fb/intl/libfbintl.so
I don't know if all files are necessary.
The process of putting native libraries on the lib folder will not work
because the embedded version must have the above structure.
2º
Load the libfbclient.so using the full path.
3º
FB tries to create the lock file on /data/local/tmp. In versions higher
than 5 this folder isn't writable.
You may set env variable FIREBIRD_LOCK to app/cache.
After that you should have the embedded version running.
Regards
jGoncalves
On Mon, Apr 23, 2018 at 3:41 PM, Luiz Alberto Tessarolli <
tessaro...@gmail.com> wrote:
> Hello, i'm working on a cross-platform project, and i would like to unify
> the database management system.
> I've always worked with firebird, server and embedded, on linux and
> windows with total success for more than a decade.
> And for this new project, i'm looking into firebird embedded on Android
> and iOS devices, using xamarin forms and visual studio (C#, DotNet).
> So far, i've not been able to run embedded on android emulator, there is
> little to none documentation on how to do that. After some time i figured
> out how to ship the *.so files with the apk into the emulator, but its not
> running. At first i though it was because the android port is compile for
> arm, and the emulator is running in x86, so i tried the linux port for x86,
> and it does not load libfbclient.so because it fails to find librt.so.1
> (libc6).
>
> I have tried downloading the *.so files in user folders on runtime, but
> the DLLImport always looks on /data/app/appname/lib/x86/*
>
>
> So i'm stuck.
>
> Any help is appreciatted
>
> Thanks,
> Luiz Alberto
> from Brazil.
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> Firebird-Devel mailing list, web interface at
> https://lists.sourceforge.net/lists/listinfo/firebird-devel
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel