From owner-freebsd-questions@FreeBSD.ORG Sun Jul 16 23:40:30 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FF3F16A4DA for ; Sun, 16 Jul 2006 23:40:30 +0000 (UTC) (envelope-from bob@tania.servebbs.org) Received: from mail2.panix.com (mail2.panix.com [166.84.1.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id A94B243D46 for ; Sun, 16 Jul 2006 23:40:29 +0000 (GMT) (envelope-from bob@tania.servebbs.org) Received: from mailspool2.panix.com (mailspool2.panix.com [166.84.1.79]) by mail2.panix.com (Postfix) with ESMTP id 15DF69D847; Sun, 16 Jul 2006 19:40:29 -0400 (EDT) Received: from [192.168.1.100] (pool-71-247-9-241.nycmny.east.verizon.net [71.247.9.241]) by mailspool2.panix.com (Postfix) with ESMTP id E66112350C3; Sun, 16 Jul 2006 19:40:28 -0400 (EDT) Message-ID: <44BACE63.9030800@tania.servebbs.org> Date: Sun, 16 Jul 2006 19:40:19 -0400 From: Bob User-Agent: Thunderbird 1.5 (X11/20060628) MIME-Version: 1.0 To: Mike Meyer References: <44BA98A9.9040903@tamara-b.org> <17594.43423.928991.591165@bhuda.mired.org> In-Reply-To: <17594.43423.928991.591165@bhuda.mired.org> X-Enigmail-Version: 0.94.0.0 OpenPGP: id=B2BF9879 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: LinkLib Issues In freebsd Lazarus X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jul 2006 23:40:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mike Meyer wrote: > > I'd say this is a mistake. You should probably install the fpc port in > /usr/ports/lang/fpc. There may be reasons to install your own version > instead of a port, but you haven't presented any. > Mike thanks! You gave me the missing piece of this puzzle! It all now works a charm! As per the Lazarus docs/INSTALL, compiling Lazarus requires the FPC source tree, A binary install of FPC won't do. > Again, you should probably have used the ports version, in > editors/fpc-ide. That's the text-mode IDE, not the GUI one, called Lazarus. >> the following libraries were not found by ld: glib12, gdk12, and gtk12. > > Where did you get these from? And what versions are they? > >From the FPC Source tree fpc-2.0.2/ packages/extra/gtk/gdk/gdk.pp <- wants gdk 1.2 packages/extra/gtk/gdk/gdk.pp <- wants gtk 1.2 and packages/extra/gtk/glib/glib.pp <- wants glib 1.2 each of the above .pp source files calls for the proper lib by the wrong name for freebsd. They all are missing the "-" in the version number. > Well, yeah - you're linking against *the wrong library*. My system has > a /usr/X11R6/lib/libgdk_pixbuf.a, installed from the > graphics/gdk-pixbuf port. That does have the function you're looking > for. And here is the Million Dollar answer! PORTS graphics/gdk-pixbuf When I went looking for the proper lib, I did not see it. Possibly because I was looking for gdk_pixbuf :-( > If you want to continue the way > you started, delete your bogus symlink, and install the > graphics/gdk-pixbuf port to get the library you need. > Since I need the sources, I didn't have any other option but to continue. I deleted the symlink, and installed the graphics/gdk-pixbuf port, and Lazarus compiled, and linked! So, all that is needed is to apply the patches I mentioned in my OP, get the proper gdk-pixbuf installed from ports, and it is as good as gold. Now, how can I create a port for Lazarus, now that I have it compiled and running? Bob -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEus5iAexE5bK/mHkRAjCCAKCAl3A2PPbQhSabqSFseYLiv6m86QCeMzdE dzHlNEGOEGyHI1GqDlcFehg= =B/PS -----END PGP SIGNATURE-----