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=F+O0UR/
	jEYzQwFLBCVpYhpzoAnlYtDVNqxoNUxZAvzboIDySORLqyVZhdD1CTqO/I2N4z/7
	ORQ6JQZhRtsbT4OED+h0m98Hk32drQpTM//uvKAf+QFvBF5qUIPreXD7qb1I/28j
	DGADgmdAbYLIJZdmvrLcMQnmoO02d+aA58ok=
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=Mso4fCwInuhW7
	Ei72TnZlCxusbE=; b=A3/Ja3Q4FXm3Gu3oASz5jqNvibwGsvYj0uK1noQQq1Oby
	ukOOVoKkBaJf0m7q2ohF3So1mRmMK09wNnHMn8rVM9UHvlmr0KBBXq6iDrse3qAE
	n4tAYKTPLWgogG02eIdi6mwsPo7ihyqyIJCZL0+lD9iUvfHnela/XhQK+hkeUg=
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.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:b81176c, H*f:sk:b81176c, launch, click
X-HELO: mail-ua0-f178.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=H3E1BWPfbxAZ6UBBqYOj1ifgmNAkniU1Uk059nMYxVE=;        b=dGjAZ5O+QuJoAu9NCOefn0dfggDVJCmIrspv9UjrRGDq65VnWapNY1wJAnW1GyFNYg         hOi9rjvBKiIsj0dPQjVTRvht5h3zyvu7T+BDVGG5xPodLYFwEnJs8v/IN6zsplJjAQO8         aS6pFuvCY67KsZGJiq6En0OxrJIY49IWip8f/n/Y4RkljhJz1gK+uu1MIr4pf/HcqQC8         3muT2cZF3QarjVXayK72AFtu2f4SpZNjZb8bFlIY7tkD2NANaxbLLbW/vwojUxcIx4/N         rThtMaGGbtbPIOA+ZBQVRPlNZ5M9ju94nt5CBj64+Y7wHcAh8qVgL5wpo5pEJX3u28LF         MpNA==
X-Gm-Message-State: AIkVDXJ7VPu8OpAM49kbZC+ve306Ei84OddXyTmlG+yKb32bu1S9zh4AmdPV6OWQsPk9LL55Yd4VaWo/cul/qA==
X-Received: by 10.159.32.99 with SMTP id 90mr3233913uam.138.1482329951065; Wed, 21 Dec 2016 06:19:11 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <b81176cd-8234-4f53-0c85-7224bc71de25@gmail.com>
References: <eacbe085-fe64-b701-cbe8-a301b9daeb3a@gmail.com> <CAOTD34aZ0NJPnrFYM=MnYh9u_OKBNKi2NcfHKijZb89yKkC_CA@mail.gmail.com> <b81176cd-8234-4f53-0c85-7224bc71de25@gmail.com>
From: Erik Bray <erik.m.bray@gmail.com>
Date: Wed, 21 Dec 2016 15:19:10 +0100
Message-ID: <CAOTD34Z-35tKTq8TfUXuN1hguWVSHj8U3VzW_ypWYndkyxZWJg@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 Tue, Dec 20, 2016 at 5:52 PM, Goodman Leung <gbcbooksmj@gmail.com> wrote:
> i tried cygcheck , there was no error report from it .
> and i check my program again, the error info is  , program can not find
> cygwin1.dll,
>
> i check that fell,it is under c:\cygwin\bin\cygwin1.dll
> cygcheck can also find it .

You need to make sure that cygwin1.dll and any other required DLLs are
bundled with your application, preferably in the same directory, or
else it won't be able to find them.  There's a good tutorial here:

https://www.youtube.com/watch?v=abM_ysmpenc

> On 2016/12/20 0:45, Erik Bray wrote:
>>
>> 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
>>
>
>
> --
> 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
>

--
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

