Date: Sun, 11 Feb 2007 00:12:19 -0500 From: Mike Meyer <mwm-keyword-freebsdhackers2.e313df@mired.org> To: Garrett Cooper <youshi10@u.washington.edu> Cc: freebsd-hackers@freebsd.org Subject: Re: Finding libraries to link with and autoconf resources? Message-ID: <17870.42419.779434.735451@bhuda.mired.org> In-Reply-To: <45CE8BEC.7050404@u.washington.edu> References: <45CE8BEC.7050404@u.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
In <45CE8BEC.7050404@u.washington.edu>, Garrett Cooper <youshi10@u.washington.edu> 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. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17870.42419.779434.735451>