public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Developing for Cygwin from POSIX host
@ 2020-08-07  1:58 John Scott
  2020-08-07  4:56 ` Brian Inglis
  0 siblings, 1 reply; 4+ messages in thread
From: John Scott @ 2020-08-07  1:58 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 606 bytes --]

Hi,

I'm writing an application in C that's increasingly dependent on the POSIX 
APIs and would like to use the Cygwin DLL to help port it to Windows. I 
currently use MinGW-w64 but foresee that will stop being sufficient eventually.

I want to do this using only free software without a Windows installation. A 
GNU/Linux to Cygwin cross compiler doesn't seem available, at least on Debian. 
Cygwin also fails to run under Wine.

I'm not interested in the Cygwin userspace, I just need the POSIX layer. Aside 
from booting up a ReactOS VM, is there a more clean way to do what I seek to 
do?

Thanks,
John

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Developing for Cygwin from POSIX host
  2020-08-07  1:58 Developing for Cygwin from POSIX host John Scott
@ 2020-08-07  4:56 ` Brian Inglis
  2020-08-07  8:24   ` Hamish McIntyre-Bhatty
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Inglis @ 2020-08-07  4:56 UTC (permalink / raw)
  To: cygwin

On 2020-08-06 19:58, John Scott via Cygwin wrote:
> I'm writing an application in C that's increasingly dependent on the POSIX 
> APIs and would like to use the Cygwin DLL to help port it to Windows. I 
> currently use MinGW-w64 but foresee that will stop being sufficient eventually.
> 
> I want to do this using only free software without a Windows installation. A 
> GNU/Linux to Cygwin cross compiler doesn't seem available, at least on Debian. 
> Cygwin also fails to run under Wine.

Should work as there are fixes in each for the other.

> I'm not interested in the Cygwin userspace, I just need the POSIX layer. Aside 
> from booting up a ReactOS VM, is there a more clean way to do what I seek to 
> do?

There's a Fedora->Cygwin cross environment documented in:

	https://cygwin.com/pipermail/cygwin/2020-July/245695.html

or your local copy from July 27-28.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in IEC units and prefixes, physical quantities in SI.]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Developing for Cygwin from POSIX host
  2020-08-07  4:56 ` Brian Inglis
@ 2020-08-07  8:24   ` Hamish McIntyre-Bhatty
  0 siblings, 0 replies; 4+ messages in thread
From: Hamish McIntyre-Bhatty @ 2020-08-07  8:24 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1.1: Type: text/plain, Size: 895 bytes --]

On 07/08/2020 05:56, Brian Inglis wrote:
> On 2020-08-06 19:58, John Scott via Cygwin wrote:
>> I'm writing an application in C that's increasingly dependent on the POSIX 
>> APIs and would like to use the Cygwin DLL to help port it to Windows. I 
>> currently use MinGW-w64 but foresee that will stop being sufficient eventually.
>>
>> I want to do this using only free software without a Windows installation. A 
>> GNU/Linux to Cygwin cross compiler doesn't seem available, at least on Debian. 
>> Cygwin also fails to run under Wine.
> Should work as there are fixes in each for the other.
>
I tried this a while back too, before I gave up and used a Windows VM.
Cygwin currently doesn't seem to work in wine, sadly. It does almost
work though, by the looks of it. I'm going to see if I can report some
bugs on WineHQ if any of the Wine developers are interested.

Hamish


[-- Attachment #1.1.2: 0x87B761FE07F548D6.asc --]
[-- Type: application/pgp-keys, Size: 3235 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Developing for Cygwin from POSIX host
@ 2020-08-17 11:01 Hamish McIntyre-Bhatty
  0 siblings, 0 replies; 4+ messages in thread
From: Hamish McIntyre-Bhatty @ 2020-08-17 11:01 UTC (permalink / raw)
  To: Cygwin General Mailing List


[-- Attachment #1.1.1: Type: text/plain, Size: 351 bytes --]

So I reported that it doesn't work on WineHQ, and there was a helpful comment that suggests recompiling WINE with a patch can get it working.

Here are the links, hopefully this isn't too late to be useful:

Bug report: https://bugs.winehq.org/show_bug.cgi?id=48891
Patch: https://bugs.winehq.org/attachment.cgi?id=67113&action=diff

Hamish


[-- Attachment #1.1.2: 0x87B761FE07F548D6.asc --]
[-- Type: application/pgp-keys, Size: 3235 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-17 11:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-07  1:58 Developing for Cygwin from POSIX host John Scott
2020-08-07  4:56 ` Brian Inglis
2020-08-07  8:24   ` Hamish McIntyre-Bhatty
2020-08-17 11:01 Hamish McIntyre-Bhatty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).