This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compile python executable file on cygwin for windows

On Tue, Dec 20, 2016 at 5:52 PM, Goodman Leung <> 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:

> On 2016/12/20 0:45, Erik Bray wrote:
>> On Mon, Dec 19, 2016 at 4:07 PM, Goodman Leung <>
>> 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:
>> FAQ:         
>> Documentation:
>> Unsubscribe info:
> --
> Problem reports:
> FAQ:         
> Documentation:
> Unsubscribe info:

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]