[Firebird-devel] How to install a local source build for testing purposes?

2020-08-24 Thread Ian Lawrence Barwick
Hi

I maintain the PostgreSQL foreign data wrapper (FDW) for Firebird [1] and am
planning to verify it against Firebird 4 to check for compatibility,
new features
which need supporting etc.

[1] https://github.com/ibarwick/firebird_fdw/

To which end I thought I'd try building it from source (which I've never done
before for Firebird). Configuration done like this:

./configure --prefix=/opt/firebird4 \
  --with-editline \
  --with-service-port=3051 \

The actual "make" process went fine, following instructions found here:

https://firebirdsql.org/en/building-the-code-posix/

but "make install" seems quite invasive as it requires root and complains
if there's a running Firebird instance (I have 3.0.x running from standard
packages), e.g.

$ sudo make install
Firebird 4.0.0.2178-ReleaseCandidate1.amd64 Installation

Press Enter to start installation or ^C to abort

An instance of the Firebird server seems to be running.
Please quit all Firebird applications and then proceed.

It also seems to want to copy files to "/usr/include/" (which
would overwrite package-installed files and generally mess things up).

What I would like to do is create a local installation in an arbitrary
directory and run it independently from any existing installations
for development purposes. Is this possible, and if so how?

Thanks for any pointers

Ian Barwick


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] How to build for Android 64 bit

2020-08-24 Thread marius adrian popa
Tested with 3.0 branch and fails at one moment
export NDK=$HOME/android-ndk-r17c
./autogen.sh --prefix=/opt/firebird --enable-binreloc
--with-cross-build=android.arm64 --without-editline  --with-builtin-tommath

make yvalve
make[4]: Entering directory '/home/ubuntu/firebird/gen'
/home/ubuntu/android-ndk-r17c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-g++
-I/home/ubuntu/firebird/src/include/gen -I/home/ubuntu/firebird/src/include
 -ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -DARM64 -pipe -MMD
-fPIC -fmessage-length=0 -I/home/ubuntu/firebird/extern/libtommath
--sysroot=/home/ubuntu/android-ndk-r17c/platforms/android-24/arch-arm64
-I/home/ubuntu/android-ndk-r17c/platforms/android-24/arch-arm64/usr/include
-I/home/ubuntu/firebird/gen/cross -fsigned-char -fno-omit-frame-pointer
-I/home/ubuntu/firebird/extern/libtommath -pthread -fno-rtti   -c
/home/ubuntu/firebird/src/yvalve/MasterImplementation.cpp -o
/home/ubuntu/firebird/temp/Release/yvalve/MasterImplementation.o
In file included from /home/ubuntu/firebird/src/include/firebird.h:70:0,
 from
/home/ubuntu/firebird/src/yvalve/MasterImplementation.cpp:29:
/home/ubuntu/firebird/src/include/../common/common.h:53:20: fatal error:
string.h: No such file or directory
 #include 
^
compilation terminated.

On Mon, Aug 24, 2020 at 1:29 PM Alex Peshkoff via Firebird-devel <
firebird-devel@lists.sourceforge.net> wrote:

> On 2020-08-18 22:06, Karel Rys via Firebird-devel wrote:
> > Hello,
> >
> > I have an application for Android (runs on mobile phones and barcode
> > mobile scanners). Application is written in Delphi, uses Embedded
> > Firebird 3.0.6 and is build for 32 bit.
> > I would like to publish the application in Google Play, so I have to
> > build it for 64 bit Android, too.
> >
> > Please is there a binary build of Firebird 3 for Android 64 bit? Or
> > are there instructions so that I can build it myself? Unfortunatelly,
> > I have almost zero experience with builds of C++ and no tools for it
> > on my Windows machine, so binary version would be much easier to use,
> > but I am able to compile from source on linux (but never tried
> > cross-platform compilation there).
> >
>
> Time to try :-)
> Approximately this way:
>
> ./autogen.sh --prefix=/opt/firebird --enable-binreloc
> --with-cross-build=android.arm64 --without-editline && make
>
>
>
> Firebird-Devel mailing list, web interface at
> https://lists.sourceforge.net/lists/listinfo/firebird-devel
>
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] A new Rust driver

2020-08-24 Thread Luis Fernando Batels
Nice, we'll take a look.

Thanks!

Em seg., 24 de ago. de 2020 às 11:17, Adriano dos Santos Fernandes <
adrian...@gmail.com> escreveu:

> On 24/08/2020 10:53, Luis Fernando Batels wrote:
> > > Did you take into an account an ability to add rust generator to cloop?
> >
> > No, we had not considered. I made a simple search here and could not
> > find any material about cloop and rust.
> >
> > Do you have any doc about cloop in firebird or a project/lang using them?
> >
> >
> Doc, no.
>
> https://github.com/asfernandes/node-firebird-drivers/ uses
> https://github.com/asfernandes/node-cloop-gen to generate json
> representation from Firebird .idl file and use that json to generate
> bindings to TypeScript and Node N-API.
>
>
> Adriano
>
>
>
> Firebird-Devel mailing list, web interface at
> https://lists.sourceforge.net/lists/listinfo/firebird-devel
>


-- 
Atenciosamente, Luis Fernando Batels.
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] A new Rust driver

2020-08-24 Thread Adriano dos Santos Fernandes
On 24/08/2020 10:53, Luis Fernando Batels wrote:
> > Did you take into an account an ability to add rust generator to cloop?
>
> No, we had not considered. I made a simple search here and could not
> find any material about cloop and rust.
>
> Do you have any doc about cloop in firebird or a project/lang using them?
>
>
Doc, no.

https://github.com/asfernandes/node-firebird-drivers/ uses
https://github.com/asfernandes/node-cloop-gen to generate json
representation from Firebird .idl file and use that json to generate
bindings to TypeScript and Node N-API.


Adriano



Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] How to build for Android 64 bit

2020-08-24 Thread marius adrian popa
Thank you

>From ndk r18 gcc has been removed
(/home/ubuntu/android-ndk-r21d/toolchains//prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc:
Command not found)

https://github.com/android/ndk/wiki/Changelog-r18

Here is the path for new llvm/clang binaries
https://developer.android.com/ndk/guides/other_build_systems
/home/ubuntu/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/bin/





On Mon, Aug 24, 2020 at 2:50 PM Alex Peshkoff via Firebird-devel <
firebird-devel@lists.sourceforge.net> wrote:

> On 2020-08-24 14:28, marius adrian popa wrote:
> > Alex could you publish arm64 version on Firebird 3.0 download page ?
>
> I do not work with FB3 download page myself, I can just prepare binary
> and put into prerelease place.
>
>
>
>
>
> Firebird-Devel mailing list, web interface at
> https://lists.sourceforge.net/lists/listinfo/firebird-devel
>
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] A new Rust driver

2020-08-24 Thread Luis Fernando Batels
> Did you take into an account an ability to add rust generator to cloop?

No, we had not considered. I made a simple search here and could not find
any material about cloop and rust.

Do you have any doc about cloop in firebird or a project/lang using them?


Em seg., 24 de ago. de 2020 às 07:02, Alex Peshkoff via Firebird-devel <
firebird-devel@lists.sourceforge.net> escreveu:

> On 2020-08-23 16:23, Luis Fernando Batels wrote:
> > Hi!
> >
> > I would like to share a new lib for use the Firebird in Rust
> > programming language, and currently the only one:
> > https://github.com/fernandobatels/rsfbclient.
> >
> > We are using the official fbclient, but one of contributors is also
> > working on a native Rust implementation.
> >
>
> Did you take into an account an ability to add rust generator to cloop?
> This will provide full firebird API in rust. Syntax sugar (like fetch
> into fields array) can be easily added on top.
>
>
>
>
> Firebird-Devel mailing list, web interface at
> https://lists.sourceforge.net/lists/listinfo/firebird-devel
>


-- 
Atenciosamente, Luis Fernando Batels.
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] How to build for Android 64 bit

2020-08-24 Thread Alex Peshkoff via Firebird-devel

On 2020-08-24 14:28, marius adrian popa wrote:

Alex could you publish arm64 version on Firebird 3.0 download page ?


I do not work with FB3 download page myself, I can just prepare binary 
and put into prerelease place.






Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] How to build for Android 64 bit

2020-08-24 Thread marius adrian popa
Alex could you publish arm64 version on Firebird 3.0 download page ?

seems that 64bit is a requirement in google app store
https://developer.android.com/distribute/best-practices/develop/64-bit

On Mon, Aug 24, 2020 at 1:29 PM Alex Peshkoff via Firebird-devel <
firebird-devel@lists.sourceforge.net> wrote:

> On 2020-08-18 22:06, Karel Rys via Firebird-devel wrote:
> > Hello,
> >
> > I have an application for Android (runs on mobile phones and barcode
> > mobile scanners). Application is written in Delphi, uses Embedded
> > Firebird 3.0.6 and is build for 32 bit.
> > I would like to publish the application in Google Play, so I have to
> > build it for 64 bit Android, too.
> >
> > Please is there a binary build of Firebird 3 for Android 64 bit? Or
> > are there instructions so that I can build it myself? Unfortunatelly,
> > I have almost zero experience with builds of C++ and no tools for it
> > on my Windows machine, so binary version would be much easier to use,
> > but I am able to compile from source on linux (but never tried
> > cross-platform compilation there).
> >
>
> Time to try :-)
> Approximately this way:
>
> ./autogen.sh --prefix=/opt/firebird --enable-binreloc
> --with-cross-build=android.arm64 --without-editline && make
>
>
>
> Firebird-Devel mailing list, web interface at
> https://lists.sourceforge.net/lists/listinfo/firebird-devel
>
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] How to build for Android 64 bit

2020-08-24 Thread Alex Peshkoff via Firebird-devel

On 2020-08-18 22:06, Karel Rys via Firebird-devel wrote:

Hello,

I have an application for Android (runs on mobile phones and barcode 
mobile scanners). Application is written in Delphi, uses Embedded 
Firebird 3.0.6 and is build for 32 bit.
I would like to publish the application in Google Play, so I have to 
build it for 64 bit Android, too.


Please is there a binary build of Firebird 3 for Android 64 bit? Or 
are there instructions so that I can build it myself? Unfortunatelly, 
I have almost zero experience with builds of C++ and no tools for it 
on my Windows machine, so binary version would be much easier to use, 
but I am able to compile from source on linux (but never tried 
cross-platform compilation there).




Time to try :-)
Approximately this way:

./autogen.sh --prefix=/opt/firebird --enable-binreloc 
--with-cross-build=android.arm64 --without-editline && make




Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] A new Rust driver

2020-08-24 Thread Alex Peshkoff via Firebird-devel

On 2020-08-23 16:23, Luis Fernando Batels wrote:

Hi!

I would like to share a new lib for use the Firebird in Rust 
programming language, and currently the only one: 
https://github.com/fernandobatels/rsfbclient.


We are using the official fbclient, but one of contributors is also 
working on a native Rust implementation.




Did you take into an account an ability to add rust generator to cloop? 
This will provide full firebird API in rust. Syntax sugar (like fetch 
into fields array) can be easily added on top.





Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel