public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Erik Bray <erik.m.bray@gmail.com>
To: cygwin@cygwin.com
Subject: Re: compile python executable file on cygwin for windows
Date: Wed, 21 Dec 2016 14:19:00 -0000	[thread overview]
Message-ID: <CAOTD34Z-35tKTq8TfUXuN1hguWVSHj8U3VzW_ypWYndkyxZWJg@mail.gmail.com> (raw)
In-Reply-To: <b81176cd-8234-4f53-0c85-7224bc71de25@gmail.com>

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

      reply	other threads:[~2016-12-21 14:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-19 15:07 Goodman Leung
2016-12-19 15:13 ` Marco Atzeri
2016-12-19 16:31   ` Goodman Leung
2016-12-19 16:45 ` Erik Bray
2016-12-20 16:52   ` Goodman Leung
2016-12-21 14:19     ` Erik Bray [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOTD34Z-35tKTq8TfUXuN1hguWVSHj8U3VzW_ypWYndkyxZWJg@mail.gmail.com \
    --to=erik.m.bray@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).