Web lists-archives.com

Re: compile python executable file on cygwin for windows




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 .

On 2016/12/20 0:45, Erik Bray wrote:
On Mon, Dec 19, 2016 at 4:07 PM, Goodman Leung <gbcbooksmj@xxxxxxxxx> 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