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: Mon, 19 Dec 2016 16:45:00 -0000	[thread overview]
Message-ID: <CAOTD34aZ0NJPnrFYM=MnYh9u_OKBNKi2NcfHKijZb89yKkC_CA@mail.gmail.com> (raw)
In-Reply-To: <eacbe085-fe64-b701-cbe8-a301b9daeb3a@gmail.com>

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

  parent reply	other threads:[~2016-12-19 16:45 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 [this message]
2016-12-20 16:52   ` Goodman Leung
2016-12-21 14:19     ` Erik Bray

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='CAOTD34aZ0NJPnrFYM=MnYh9u_OKBNKi2NcfHKijZb89yKkC_CA@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).