[Lazarus] Building Lazarus on Mac OS 10.5 Leopard
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Jul 17 22:03:11 CEST 2008
On Thu, 17 Jul 2008 17:36:02 +0200
Roland Turcan <konf at rotursoft.sk> wrote:
> Hello General mailing list!
>
> I have upgraded from 10.3.9 to 10.5.4 and the serious problem with
> compilation vanished, but I think, I have a little problem with
> library used during linking, but I have tried to set path to directory
> where are libraries located and problem is still present.
>
> I was trying to build Lazarus with:
>
> sudo make clean all LCL_PLATFORM=gtk
>
> and this is the result:
>
> ...
> Assembling lazarus
> Linking ../lazarus
> ld: library not found for -lglib-1.2.0
> An error occurred while linking
> Error: Error while linking
> Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> make[2]: *** [lazarus] Error 1
> make[1]: *** [ide] Error 2
> make: *** [ide] Error 2
>
>
> The setting of path variable is the following:
>
> echo $PATH
>
> /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/lib
The PATH variable is for executables only, not libs.
You can pass -k-L/opt/local/lib to the compiler options or create
symlinks in /usr/lib or /usr/local/lib.
Mattias
More information about the Lazarus
mailing list