X-Account-Key: account1
X-UIDL: 5b0fbd8145d739592f2aea889c76c2e9
X-Mozilla-Status: 0011
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
Received: from lists.maptools.org (localhost [127.0.0.1])
	by mail.howardsilvan.com (Postfix) with ESMTPS id DA755C4204B
	for <faxguy@howardsilvan.com>; Wed, 24 Jun 2015 09:23:52 -0700 (PDT)
Received: from lists.maptools.org ([94.23.4.142] helo=lists.maptools.org)
	by fangorn.howardsilvan.com with SMTP (2.3.3); 24 Jun 2015 09:23:52 -0800
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 0D78B35C069;
	Wed, 24 Jun 2015 11:23:21 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by lists.maptools.org (Postfix) with ESMTPS id DD1E435C066
	for <tiff@lists.maptools.org>; Wed, 24 Jun 2015 11:23:15 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4)
	with ESMTP id	t5OGNKIj010049; Wed, 24 Jun 2015 11:23:20 -0500 (CDT)
Date: Wed, 24 Jun 2015 11:23:20 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Rhys Thomas <R.G.Thomas@leeds.ac.uk>
In-Reply-To: 
 <AM3PR03MB1122614D91FF9386CB56806D84AF0@AM3PR03MB1122.eurprd03.prod.outlook
	.com>
Message-ID: <alpine.GSO.2.01.1506241120210.5760@freddy.simplesystems.org>
References:
	<AM3PR03MB1122614D91FF9386CB56806D84AF0@AM3PR03MB1122.eurprd03.prod.outlook.com>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);	Wed, 24 Jun 2015 11:23:20 -0500
 (CDT)
Cc: "'tiff@lists.maptools.org'" <tiff@lists.maptools.org>
Subject: Re: [Tiff] CMake support for building libtiff
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-Assp-ID: fangorn.howardsilvan.com m1-63032-10932
X-Assp-Session: 7F06B5FBCDB0 (mail 1)
X-Assp-Detected-RIP: 65.66.246.65, 65.66.246.74
X-Assp-Source-IP: 65.66.246.65
X-Assp-Envelope-From: tiff-bounces@lists.maptools.org
X-Assp-Intended-For: faxguy@howardsilvan.com
X-Assp-Version: 2.3.3(14029) on fangorn.howardsilvan.com
X-Assp-Server-TLS: yes
X-Assp-Delay: not delayed (whitelisted); 24 Jun 2015 09:23:52 -0800
X-Assp-Message-Score: -40 (KnownGoodHelo)
X-Assp-IP-Score: -40 (KnownGoodHelo)
X-Assp-Whitelisted: Yes (whitelistdb)
Return-Path: tiff-bounces@lists.maptools.org
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

On Wed, 24 Jun 2015, Rhys Thomas wrote:
>
> The other three configurations (VS2008 64-bit, VS2012 32-bit and VS2012 64-bit) again do not compile out of the
> box on my "dirty" system. I get errors stating that "unistd.h" cannot be found, referenced from zconf.h in the
> GnuWin32 zlib installation. It does look like my installation of GnuWin32 is the reason behind this. I'm not sure
> what version I have. The version of zlib looks to be out-of-date, the header is copyright 1995-2005, whereas a
> later version that I have elsewhere is copyright 1995-2012 and this isn't the latest version. The old version
> contains a "#ifdef 1" in it, and this section is changed and commented out in the more recent version that I have.
> If I change the CMake options to point to the new version it compiles successfully. I successfully built and tested
> the VS2012 32-bit version with zlib support disabled (for some reason my zlib headers aren't all in the same
> directory) and a non-GnuWin32 version of libtiff.

How is CMake finding these installed files?  Are they installed in the 
compiler's directory or in a system directory?

I would not expect CMake to search the system for installed packages 
but it could use them if the compiler finds them by default.

It is quite unwise to mix GnuWin32 code with MSVC code, particularly 
with newer MSVC versions.

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/


