LinkLib Issues In freebsd Lazarus

Jeremy Messenger mezz7 at cox.net
Mon Jul 17 02:53:16 UTC 2006


On Sun, 16 Jul 2006 14:51:05 -0500, Bob Richards <bob at tamara-b.org> wrote:

<snip>
> I went back to the Lazarus source tree gmake clean; gmake and received
> the following error:
>
>   Free Pascal Compiler version 2.0.2 [2006/07/14] for i386
>   Copyright (c) 1993-2005 by Florian Klaempfl
>   Target OS: FreeBSD/ELF for i386
>   Compiling lazarus.pp
>   Linking ../lazarus
>   /usr/bin/ld: cannot find -lgdk_pixbuf
>   lazarus.pp(113,1) Error: Error while linking
>
> a locate gdk_pixbuf finds: /usr/X11R6/lib/libgdk_pixbuf-2.0
>
> So, at this point I just sym-linked my libgdk_pixbuf-2.0 to
> libgdk_pixbuf: ln -s libgdk_pixbuf-2.0.a libgdk_pixbuf.a
>
> and ran gmake again, only to produce:
>
> Linking ../lazarus
> /usr/home/bob/lazarus/lcl/units/i386-freebsd/gtk/gtkint.o(.text+0x6f65):
> In function `DATASOURCEINITIALIZE':
> gtkobject.inc:2309: undefined reference to `gdk_pixbuf_get_from_drawable'
>
> Many many more "undefined reference" to something missing in  gdk_pixbuf.

libgdk_pixbuf-2.0 is a GTK2 stuff, not GTK1. If it's GTK1  
(libgdk_pixbuf.a) is what you need, install graphics/gdk-pixbuf. The 'ln  
-s libgdk_pixbuf-2.0.a libgdk_pixbuf.a' is incorrect and will causing more  
break stuff.

> so: freebsd's stock-installed gdk_pixbuf does not contain the functions
> needed! So, I went to ports and found "ruby18-gdk_pixbuf2-0.14.1" a make
> install provided "gdk_pixbuf2.so" but no "gdk_pixbuf2.a" !! I find it
> odd that no provision is provided to link to this lib!

It is a Ruby binding, which it is not a gdk_pixbuf library that you are  
looking for.

Cheers,
Mezz


-- 
mezz7 at cox.net  -  mezz at FreeBSD.org
FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org
http://wiki.freebsd.org/multimedia  -  multimedia at FreeBSD.org


More information about the freebsd-hackers mailing list