Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2006 21:53:34 -0500
From:      "Jeremy Messenger" <mezz7@cox.net>
To:        "Bob Richards" <bob@tamara-b.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: LinkLib Issues In freebsd Lazarus
Message-ID:  <op.tctbnkuw9aq2h7@mezz.mezzweb.com>
In-Reply-To: <44BA98A9.9040903@tamara-b.org>
References:  <44BA98A9.9040903@tamara-b.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 16 Jul 2006 14:51:05 -0500, Bob Richards <bob@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@cox.net  -  mezz@FreeBSD.org
FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/  -  gnome@FreeBSD.org
http://wiki.freebsd.org/multimedia  -  multimedia@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.tctbnkuw9aq2h7>