[Xastir] libtiff / geotiff install hiccup

Tom Russo russo at bogodyn.org
Mon Sep 20 16:14:29 EDT 2010


On Mon, Sep 20, 2010 at 12:34:46PM -0700, we recorded a bogon-computron collision of the <curt.we7u at gmail.com> flavor, containing:
> On Mon, 20 Sep 2010, T Wegner wrote:
> 
> > 3)   ./configure --prefix=/usr/local
> >
> > Following step 3, I get this error message:
> >
> > checking for TIFFOpen in -ltiff... no
> > configure: error: You will need to substantially rewrite libxtiff to
> > build libgeotiff without libtiff
> 
> You need to install tiff library and tiff headers (devel package).
> It's looking to compile a test program against libtiff and not
> finding the TIFFOpen function.
> 
> I don't know how you find the right packages for a Mac.

Tom is attempting to install libgeotiff from source, so the recommendation
to install packages is off the mark.

The libgeotiff install process installs both the libraries and header files.

The issue is that configure is probably not looking in /usr/local/ for anything
unless you've told it to.

Please try this configure line:

./configure --prefix=/usr/local/ CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"

On linux systems packages are installed into /usr instead of /usr/local, so
this is usually not necessary unless you've got hand-installed code.

There are some conditions that can force these CPP and LD flags to be
used without manually specifying them, but they're obviously not happening
in your case.  Among those conditions are running with GDAL, whose "gdal-config"
program will usually force /usr/local into your flags variables when it's
run by configure.  I think a few other "*-config" programs that Xastir's
configure script runs can do that, too, which is why those on Linux systems
rarely run into this.

As a BSD user, where all third-party packages are always installed into 
/usr/local instead of polluting the base-system directories /usr/lib and 
/usr/include, adding those CPPFLAGS and LDFLAGS is almost second nature
when running configure.  

Give it a shot.  I bet you'll find that it satisfies in your case, too.

-- 
Tom Russo    KM5VY   SAR502   DM64ux          http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236        http://kevan.org/brain.cgi?DDTNM
 "The truth will set you free, but first it will piss you off."




More information about the Xastir mailing list