AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2001.05.18 03:21 "libtiff on OSX?", by Ben Dubin-Thaler
2001.05.18 07:05 "Re: libtiff on OSX?", by Doug Holton
2001.05.18 12:45 "Re: libtiff on OSX?", by Frank Warmerdam
2001.05.18 13:41 "A small fix", by Martí_Maria
2001.05.21 21:30 "Re: libtiff on OSX?", by

2001.05.18 07:05 "Re: libtiff on OSX?", by Doug Holton

On Thursday, May 17, 2001, at 10:21 PM, Ben Dubin-Thaler wrote:

i was wondering if anyone has gotten any version of libtiff to compile on Mac OSX which as far as I know is a version of BSD at the bottom. if so, could you enlighten me?

Hi, you can compile it for Carbon OSX apps with Codewarrior, or to compile the command line tools you can follow the instructions in the README file, with the exception that the configure script doesn't yet recognize Darwin. Those steps are laid out below, including at the bottom instructions for jpeglib and zlib if you want to install

those before compiling libtiff.

Otherwise, an easier way to install this all which might or might not work is

to use fink (fink install libtiff) from http://fink.sourceforge.net/

 From your Terminal.app:
wget http://www.libtiff.org/tiff-v3.5.6-beta.tar.gz
tar xvzf tiff-v3.5.6-beta.tar.gz
cd tiff-v3.5.6-beta/
cp /usr/libexec/config.guess. (note the period)
cp /usr/libexec/config.sub.
Then follow the instructions in README:
(edit the configure file to turn on jpeg and zip support if need be
first,
see below)
./configure (hit return when it asks you if install paths are okay)
make
sudo -s (prompted to enter password)
make install
(or "make install-private" (geotiff wants that))

There are also some tiff files for testing apparently: wget ftp://ftp.remotesensing.org/pub/libtiff/v3.4pics.tar.gz tar xvzf v3.4pics.tar.gz ./test_pics.sh -f pics/*.tif

**Before installing libtiff, you may want to install jpeglib and zlib and edit the libtiff configure file to enable them. See http://www.libtiff.org/internals.html#Config

//Installing jpeg lib:
wget ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
tar xzvf jpegsrc.v6b.tar.gz
cd jpeg-6b/
./configure
make
sudo -s
make install

//Installing zlib
wget ftp://ftp.uu.net/pub/archiving/zip/zlib/zlib-1.1.3.tar.gz
tar xzvf zlib-1.1.3.tar.gz
cd zlib-1.1.3/
./configure
make
sudo -s
make install

//Now cd back into the libtiff directory
Edit configure ("pico configure") to say
JPEG=yes
ZIP=yes
# assuming you unzipped jpeg & zlib in your home directory:
DIRS_LIBINC=~/jpeg-6b
DIR_JPEGLIB=~/jpeg-6b
DIR_GZLIB=~/zlib-1.1.3

After I finished installing libtiff I installed geotiff: ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/libgeotiff-1.1.4.tar.gz and ran ./configure --with-libtiff=~/tiff-v3.5.6-beta/libtiff/ but got a make error:

/usr/bin/ld: table of contents for archive: /usr/local/lib/libtiff.a is out of date; rerun ranlib(1) (can't load from it)