Recent

Author Topic: Can not load default MySQL library - Mac OS X  (Read 24135 times)

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: Re: Can not
« Reply #15 on: April 30, 2008, 06:52:47 pm »
Quote from: "IndianaJones"

Mac default library paths are /usr/lib and /usr/local/lib so I made a link in /usr/lib for libmysqlclient.dylib.
But the question is, Is there any other solution to add other directories to the default library path for Mac OS X?


Adding directories to the library search path works exactly the same on Mac OS X as on all other supported platforms: using the -Fl command line switch. I assume there is also a separate setting for it in Lazarus, but since I don't use Lazarus I can't help with that.

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
RE: Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: Re: Can
« Reply #16 on: April 30, 2008, 08:02:50 pm »
I entered the Fl command line to the fpc.cfg before but it did not work.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: Re:
« Reply #17 on: April 30, 2008, 08:53:42 pm »
Quote from: "IndianaJones"
I entered the Fl command line to the fpc.cfg before but it did not work.


Then either that fpc.cfg was not used, the part of the fpc.cfg file you added the -Fl statement to was inside an inactive #ifdef, or you made an error in the -Fl statement. The -Fl parameter itself does work.

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
RE: Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: Re: RE:
« Reply #18 on: April 30, 2008, 09:23:28 pm »
I entered the statement like this;

-Fl/usr/local/mysql/lib

I think the syntax is right.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: Re:
« Reply #19 on: May 01, 2008, 12:10:43 am »
Quote from: "IndianaJones"
I entered the statement like this;

-Fl/usr/local/mysql/lib

I think the syntax is right.


It is (if the library is located in that directory). If you compile with -Cn, you can look in the generated link.res file to see whether this directory is added to the linker search path.

 

TinyPortal © 2005-2018