www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type; q=dns; s=default; b=nJ6Y | |
kUc1IQoO1xoyjLYNQWJVK6y4xG+ppVuqfvZbDoOsf/DxTMgTsHsXR//oS2uSqf8W | |
ZfRilMfUkfiMxwwClDpLuc7FEvacc9jhPEbKp1L/7QfK2AOSjsPjkoYUJXWbDn44 | |
afjRd+VEf3wGFTnxz7BFDSDGNLQkqnjAbQvUccE= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type; s=default; bh=2E6DXLzvK7 | |
/mJ+4nGO7VWcEfPuA=; b=hQVkowHWNVarwt1r8wWCBZi3NXsU7PtR6TdCZxaETF | |
gruv8bEzGPu0IfSt/oLlw1et2dMobP53aUyise8fKR8+JoBVIbCv02j/5RE3NrmE | |
L1Z6adZ7mODPFBRWx1lxwYTofu1LT7kp0AMhNDfIqUOPeNfuTtTLqLOVThXdS4Ta | |
E= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 |
X-HELO: | mx1.redhat.com |
Subject: | Re: direct.h |
To: | cygwin AT cygwin DOT com |
References: | <CA+Ei1OcnP5GHCz3=cHKd9AK71O25F0BgvjGanVJ5VQNpzUEfPQ AT mail DOT gmail DOT com> |
From: | Eric Blake <eblake AT redhat DOT com> |
Openpgp: | url=http://people.redhat.com/eblake/eblake.gpg |
Message-ID: | <566886B5.7010008@redhat.com> |
Date: | Wed, 9 Dec 2015 12:53:25 -0700 |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <CA+Ei1OcnP5GHCz3=cHKd9AK71O25F0BgvjGanVJ5VQNpzUEfPQ@mail.gmail.com> |
X-IsSubscribed: | yes |
--CcICrF1IXLo5jqaX7gnOMGC9qAxgHkqO4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 12/09/2015 12:39 PM, Martin Landa wrote: > Hi, >=20 > I am trying to build GRASS GIS Windows package as I already described > [1]. Beside mingr32-w64 toolchain I am trying to compile GRASS also > using cygwin toolchain. On cygwin toolchain I have problem with > missing direct.h header which is required by one of GRASS's > dependencies: >=20 > /cygdrive/c/OSGeo4W64/include/cpl_port.h:169:22: fatal error: > direct.h: No such file or directory > # include <direct.h> > ^ That's because <direct.h> is an old, non-standard header not present on modern POSIX-y machines. You want <dirent.h> instead, when targetting cygwin. Or else your project is truly tied to Windows, and you should be targetting mingw, in which case the question is semi-off-topic here (other than how to properly use the mingw cross-compilers available from a cygwin installation). > compilation terminated. > configure: failed program was: > #line 6111 "configure" > #include "confdefs.h" > #include <gdal.h> > int main() { > GDALOpen("foo", GA_ReadOnly); > ; return 0; } >=20 > Is it possible to solve this issue without switching to mingw32-w64 > toolchain (problems described [1])? That depends on whether your code is POSIX-y and targetting cygwin, or is tied to Windows APIs and should be targetting mingw. >=20 > I am also not sure what will be difference between binaries compiled > using cygwin and mingw32-w64 toolchain except of dependencies (like > cygwin1.dll). MinGW32-w64 should produce native windows application, > but what does it mean exactly? A native app doesn't depend on cygwin, but that also means it can't use the POSIX-y interface provided by cygwin. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --CcICrF1IXLo5jqaX7gnOMGC9qAxgHkqO4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWaIa1AAoJEKeha0olJ0NqY7YIAK3Y2Y3Mc9tE3E8pSn7Xe0vk BpRHCmQNEnXueJQ3Vs1eRpGRMTqAHmTRh2Ol92NjMhDTl19q0J5iHuuBqk1ICUgk o3nSLSTVAZs2j++KwmHfFvL9qGgDJwTGTh8fOVMuO31btUEdb0yW4wDfNrAz7MbG 0dsOYbf86eCvfRL9/rEvTLXeWKqqFJZNcMMgakZPikLrJ0asbFYJ2dOVMrQMcqB8 6JSMYWA8bnj35JxGHrNkZMl1rYmt49itZeXXeLZ+2GN93XhQIBQuDHl4qpyZ4F3M +N4lH3jc02VHYMsvitlcCKzi2xS5Lh/QPfcNLtAKIJQra6Bol+f+CQrAG0/zDeo= =rrE7 -----END PGP SIGNATURE----- --CcICrF1IXLo5jqaX7gnOMGC9qAxgHkqO4--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |