X-Recipient: archive-cygwin@delorie.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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type; q=dns; s=default; b=FcB4VqK
	fikzXaqpeCPN/osBQ9wteMSpHX+3vTtRfWnZMy19tsxwwaTD6PsWhmrnGLQqwGUk
	nI+cXg/nM210eAMYObj+NeEWytBYxNRCp3U+HqDjTOgD6w+ZAzx9MoF5jNxFv2vc
	bJLlEUmGKdqyeE7hh9qd7TssY5AxipM+PAtc=
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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type; s=default; bh=xxats1jcEgPVA
	7FWycWBYgvopQI=; b=mDdiX1+oi0ZQCu6XDtLUdMIjiTtbF6vL9JoMl2ZIeLYPh
	w4WUYd9uppYftLvsYmHwVvaBOE5I+UX9AwRelubXPjCTHwLhwD3neTFAuxVPIaft
	6/YD7yFsihhzV3KCd2pg73n1f0qzaxjRgx1FmFEK8gIk0TsQLr/7xNWQQ5VIBE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=gbcbooksmjgmailcom, sk:gbcbook, U*gbcbooksmj, gbcbooksmj@gmail.com
X-HELO: mail-ua0-f182.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:mime-version:in-reply-to:references:from:date         :message-id:subject:to;        bh=YcEUeS4UAKVPtU+Xr9UfVFkCtK8V3WCCZOZveIdQfL0=;        b=YtOfxaigvKvCD7HDyCuf/rAnobIHRxqDvEfeW6vFowddUAi8J/Y/KI0rKRxUCI5moD         PxzoqVrt1Ax33XGG2zhy7rG2H9gtKHu6NQ8rQaAG1Z/4aFwD/O0v+94RtfFLLmxbftox         Y3wgPq5dPplfwooMm1ZtMk88y2swvLvnBBR4EiiM+uFjcAdTuVS1TFElWhC7w9GooDQu         n7SPHNs5FwFs+xaJgBXINUZbSp5i19QNbhQcPQ9gbZUiaIM6bjOgdvLy1BkJEhH8Ifaf         fw5MdJH/qa2hKQl5gM0ijnIPD+v4BxhBTjW+mLjAlmP9Vnx2PHbE+XG6XzX3TOqqv6eh         7+4w==
X-Gm-Message-State: AIkVDXIia4Ba/5uqSKXakHDBdPi9BPYikg5/wjVl54mUjkY8bZa1AXjDp9CBTJcpfLgykQMMSEsragCUpoBqNw==
X-Received: by 10.176.71.87 with SMTP id i23mr8815752uac.123.1482165949947; Mon, 19 Dec 2016 08:45:49 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <eacbe085-fe64-b701-cbe8-a301b9daeb3a@gmail.com>
References: <eacbe085-fe64-b701-cbe8-a301b9daeb3a@gmail.com>
From: Erik Bray <erik.m.bray@gmail.com>
Date: Mon, 19 Dec 2016 17:45:49 +0100
Message-ID: <CAOTD34aZ0NJPnrFYM=MnYh9u_OKBNKi2NcfHKijZb89yKkC_CA@mail.gmail.com>
Subject: Re: compile python executable file on cygwin for windows
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

On Mon, Dec 19, 2016 at 4:07 PM, Goodman Leung <gbcbooksmj@gmail.com> wrote:
> hi all
>
> i install python and pyinstaller on cygwin , and i can run pyinstaller
> successfully to compile a exe file on the  cygwin environment .
>
> but when i launch this executable file on window with double click , it
> occur a error and tell me the program can not find "cygwin.dll" (i can not
> remember what it exactly is ).
>
> can cygwin compile a windows python executable program .or we should treat
> cygwin like a pure linux OS that all things we have done on it just
> compatible with linux only

I don't think pyinstaller knows anything about Cygwin explicitly.
Instead, you need to list all DLLs used by your program (namely
cygwin1.dll, possibly others) in the spec file for your installer, so
that it copies them into the package too.

You can use the cygcheck program to check exactly which DLLs are
required by the executables in your program.  For example you will
also likely need Cygwin's libpythonXY.dll, and possibly others.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

