This is the mail archive of the
mailing list for the Cygwin project.
Re: compile python executable file on cygwin for windows
- From: Erik Bray <erik dot m dot bray at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 19 Dec 2016 17:45:49 +0100
- Subject: Re: compile python executable file on cygwin for windows
- Authentication-results: sourceware.org; auth=none
- References: <firstname.lastname@example.org>
On Mon, Dec 19, 2016 at 4:07 PM, Goodman Leung <email@example.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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple