Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-09

ibase60.inc

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dimitrios Chr. Ioannidis

Hi,

is it possible someone to add support for OS X in ibase60.inc ?

Firebird for OS X is working fine for quite some time now.

Something like ( didn't test it )

{$IFDEF Unix}
   {$DEFINE extdecl:=cdecl}
   {$IFDEF Darwin}
     const
       gdslib = 'libfbclient.dylib';
       fbclib = 'libfbclient.dylib';
       fbembedlib = 'libfbclient.dylib';
     {$ELSE}
     const
       gdslib = 'libgds.so';
       fbclib = 'libfbclient.so';
       fbembedlib = 'libfbembed.so';
     {$ENDIF}
{$ENDIF}

Comments ?

Regards,

Dimitrios Chr. Ioannidis
Marco van de Voort
to Dimitrios Chr. Ioannidis

In our previous episode, Dimitrios Chr. Ioannidis said:

is it possible someone to add support for OS X in ibase60.inc ? Firebird for OS X is working fine for quite some time now.

This can be done. Are you sure that gds and fbembed really are libfbclient.dylib, and not the ones from the $ELSE clause?

Show quoted text 27 lines
Something like ( didn't test it ) {$IFDEF Unix} {$DEFINE extdecl:=cdecl} {$IFDEF Darwin} const gdslib = 'libfbclient.dylib'; fbclib = 'libfbclient.dylib'; fbembedlib = 'libfbclient.dylib'; {$ELSE} const gdslib = 'libgds.so'; fbclib = 'libfbclient.so'; fbembedlib = 'libfbembed.so'; {$ENDIF} {$ENDIF} Comments ? Regards, -- Dimitrios Chr. Ioannidis _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Dimitrios Chr. Ioannidis
to Marco van de Voort
Marco van de Voort wrote 7 lines
In our previous episode, Dimitrios Chr. Ioannidis said: > is it possible someone to add support for OS X in ibase60.inc ? > > Firebird for OS X is working fine for quite some time now. This can be done. Are you sure that gds and fbembed really are libfbclient.dylib, and not the ones from the $ELSE clause?

Well, let me do some tests and prepare patch, patch. But you're right, the gdslib and fbembedlib is wrong. Copy/paste error.

regards,

Dimitrios Chr. Ioannidis
Dimitrios Chr. Ioannidis
to Marco van de Voort: In our previous episode, Dimitrios Chr. Ioannidis said: This can be done. Are you sure…
Marco van de Voort wrote 7 lines
In our previous episode, Dimitrios Chr. Ioannidis said: > is it possible someone to add support for OS X in ibase60.inc ? > > Firebird for OS X is working fine for quite some time now. This can be done. Are you sure that gds and fbembed really are libfbclient.dylib, and not the ones from the $ELSE clause?

I added a ticket in the free pascal tracker ( #0012062 ) and uploaded a patch tested in CentOS 5.2 x86_64 and in OS X 10.5.2 with FirebirdCS-2.1.1-17910-RC1 and it's working.

BTW, the Firebird Installer for OS X, doesn't make the libfbclient.dylib available in one of the dynamic loader search paths, i added a ticket also in Firebird's tracker ( http://tracker.firebirdsql.org/browse/CORE-2065 ) so until it's fixed, you should add a symlink to one of them

i.e. ln -s /Library/Frameworks/Firebird.framework/Libraries/ libfbclient.dylib /usr/local/lib/libfbclient.dylib

regards,

Dimitrios Chr. Ioannidis