From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 11 05:44:36 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1A44816A46D for ; Sun, 11 Feb 2007 05:44:36 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id F16E213C8C0 for ; Sun, 11 Feb 2007 05:11:22 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 32310 invoked by uid 1001); 11 Feb 2007 05:12:20 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Sun, 11 Feb 2007 00:12:19 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17870.42419.779434.735451@bhuda.mired.org> Date: Sun, 11 Feb 2007 00:12:19 -0500 To: Garrett Cooper In-Reply-To: <45CE8BEC.7050404@u.washington.edu> References: <45CE8BEC.7050404@u.washington.edu> X-Mailer: VM 7.17 under 21.4 (patch 20) "Double Solitaire" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: Finding libraries to link with and autoconf resources? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Feb 2007 05:44:36 -0000 In <45CE8BEC.7050404@u.washington.edu>, Garrett Cooper typed: > Hello, > This is my first attempt at porting an application, so please bear with me. > I'm trying to port tvtime from Linux to FreeBSD and it's failing during > the configure stage (claims it can't find -lpng when running a link > test). I know I should probably use the Linux libpng library but I'm > trying to make the application as native as possible with FreeBSD. > Anyhow though, I was wondering what directories I should typically > search when using -L for searching for the png libraries, for instance > (/usr/lib.. ?). libpng isn't part of the base system, it's in the ports tree in graphics/png. Assuming you've got that installed, then use $LOCALBASE/bin/libpng-config to get the appropriate options. If you're creating a port, add "png.5:${PORTSDIR}/graphics/png" to LIB_DEPENDS. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.