Re: compile python executable file on cygwin for windows
- Date: Wed, 21 Dec 2016 15:19:10 +0100
- From: Erik Bray <erik.m.bray@xxxxxxxxx>
- Subject: Re: compile python executable file on cygwin for windows
On Tue, Dec 20, 2016 at 5:52 PM, Goodman Leung <gbcbooksmj@xxxxxxxxx> 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
> 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 <gbcbooksmj@xxxxxxxxx>
>>> 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
>>> remember what it exactly is ).
>>> can cygwin compile a windows python executable program .or we should
>>> 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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple