Recent

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

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • 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: 5368
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.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

IndianaJones

  • Hero Member
  • *****
  • Posts: 509

@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: 5368
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.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

kamischi

  • Full Member
  • ***
  • Posts: 177
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.4, lazarus 1.4.0, Mac OS X, fink

IndianaJones

  • Hero Member
  • *****
  • Posts: 509

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

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, 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

 

TinyPortal © 2005-2018