Finding libraries to link with and autoconf resources?
Mike Meyer
mwm-keyword-freebsdhackers2.e313df at mired.org
Sun Feb 11 05:44:36 UTC 2007
In <45CE8BEC.7050404 at u.washington.edu>, Garrett Cooper <youshi10 at 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 at mired.org> http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
More information about the freebsd-hackers
mailing list