* * *

Author Topic: Turbo Bird version 0.9.8 "Unable to load Firebird library: libfbclient.dylib"  (Read 2177 times)

motaz

  • Sr. Member
  • ****
  • Posts: 417
    • http://code.sd
My friend Cem Zafer told me that the last version of Turbo Bird has generated the error "Unable to load Firebird library: libfbclient.dylib" in Mac while Firebird library is exist

We need Mac Lazarus users to test it and find what is wrong

You can download the last source of Turbo Bird from this link:

https://github.com/motaz/turbobird/archive/master.zip

Thanks
Motaz
« Last Edit: January 12, 2013, 05:25:17 pm by motaz »

taazz

  • Hero Member
  • *****
  • Posts: 2305
well from my understanding so far with MACs, there is a distinction between a 32 bit and a 64 bit process and you can't load 32bit libraries for 64bit applications and vice versa. Make sure that the library has the correct bitness before starting a debug session.  Please keep in mind that the above is my educated guess from what I have read on the net about problems with firebird and I have no experience or own a MAC.
OS : Windows 8.1 64 bit
Laz: Lazarus 1.2.0 FPC 2.6.2 i386-win32-win32/win64
INDY:10.6.0.5124...
VTV : 4.8.7 with Extras.

IndianaJones

  • Hero Member
  • *****
  • Posts: 508

@taazz, you are right about the explanation. The problem comes from 32-64 bit issue. I tested TurboBird with the 10.6.8 (Snow Leopard) which is a 32 bit OS. The second try was on 10.8.2 (Mountain Lion) which is a 64 bit OS. So If I compile the source with the 64 bit FPC, there will be no problem with the 10.8. I quess.
Thanks.

taazz

  • Hero Member
  • *****
  • Posts: 2305
I think you can use your 32bit application on a 64bit OS as long as the firebird client library is also a 32bit library and not a 64bit one. In any case using the 64bit compiler is probably better than installing the 32bit library.
OS : Windows 8.1 64 bit
Laz: Lazarus 1.2.0 FPC 2.6.2 i386-win32-win32/win64
INDY:10.6.0.5124...
VTV : 4.8.7 with Extras.

kamischi

  • Full Member
  • ***
  • Posts: 137
Can you include your lib in the application bundle or combine the 32 and the 64 bit version in a universal library using lipo?

Michael.
fpc 2.6.2, lazarus 1.0.12, Mac OS X, fink

IndianaJones

  • Hero Member
  • *****
  • Posts: 508

Can you explain a little bit further, what is lipo?

BigChimp

  • Hero Member
  • *****
  • Posts: 5251
  • Add to the wiki - it's free ;)
    • FPCTwit twitter, PaperTiger scanning and other open source projects
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads