From: dron@ak4719.spb.edu (Andrey Kiselev)
Date: Tue, 12 Aug 2003 13:51:06 +0400
Subject: [Tiff] building in directory other than source code
In-Reply-To: <009601c3603b$91cc7b20$320d1282@ercwin.erc.msstate.edu>
References: <009601c3603b$91cc7b20$320d1282@ercwin.erc.msstate.edu>
Message-ID: <20030812095106.GA19498@ak4719.spb.edu>

On Mon, Aug 11, 2003 at 02:05:46PM -0500, Pushkar Pradhan wrote:
> I would like to install my libtiff in a different dir. than the src. code.
> My dir. structure is:
> /rstc/user1/erc/pushkar/libtiff                (src code)
> /rstc/user1/erc/pushkar/tiff/solaris5.8    (want to install here)
> 
> As given on the website I ran ../../libtiff/configure from solaris5.8
> dir. But when I run make in this direc. it fails with following
> messages:

> Titan[136] pushkar$ pwd
> /rstc/user1/erc/pushkar/tiff/solaris5.8
> Titan[137] pushkar$ make
> = libtiff
> /usr/local/gnu/bin/gcc -o mkversion -fpic -g -O  -I. -I../../../libtiff/libtiff  ../../../libtiff/libtiff/mkversion.c
> rm -f ../../../libtiff/libtiff/tiffvers.h
> ./mkversion -v ../../../libtiff/VERSION ../../../libtiff/libtiff/tiffvers.h
> mkversion: ../dist/tiff.alpha: Could not open for reading.
> *** Error code 255
> make: Fatal error: Command failed for target `../../../libtiff/libtiff/tiffvers.h'
> Current working directory /rstc/user1/erc/pushkar/tiff/solaris5.8/libtiff
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> 
> Is this the correct way to make?

Pushkar,

Yes, this is the correct way and it should work. I have found and fixed
two small problems with building in external directory, but I can't
reproduce the one you encounter. What version of libtiff you are using?
I'm recommend take the recent CVS snapshot.

					Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517

