X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=FcB4VqK fikzXaqpeCPN/osBQ9wteMSpHX+3vTtRfWnZMy19tsxwwaTD6PsWhmrnGLQqwGUk nI+cXg/nM210eAMYObj+NeEWytBYxNRCp3U+HqDjTOgD6w+ZAzx9MoF5jNxFv2vc bJLlEUmGKdqyeE7hh9qd7TssY5AxipM+PAtc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=xxats1jcEgPVA 7FWycWBYgvopQI=; b=mDdiX1+oi0ZQCu6XDtLUdMIjiTtbF6vL9JoMl2ZIeLYPh w4WUYd9uppYftLvsYmHwVvaBOE5I+UX9AwRelubXPjCTHwLhwD3neTFAuxVPIaft 6/YD7yFsihhzV3KCd2pg73n1f0qzaxjRgx1FmFEK8gIk0TsQLr/7xNWQQ5VIBE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=gbcbooksmjgmailcom, sk:gbcbook, U*gbcbooksmj, gbcbooksmj AT gmail DOT com X-HELO: mail-ua0-f182.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=YcEUeS4UAKVPtU+Xr9UfVFkCtK8V3WCCZOZveIdQfL0=; b=YtOfxaigvKvCD7HDyCuf/rAnobIHRxqDvEfeW6vFowddUAi8J/Y/KI0rKRxUCI5moD PxzoqVrt1Ax33XGG2zhy7rG2H9gtKHu6NQ8rQaAG1Z/4aFwD/O0v+94RtfFLLmxbftox Y3wgPq5dPplfwooMm1ZtMk88y2swvLvnBBR4EiiM+uFjcAdTuVS1TFElWhC7w9GooDQu n7SPHNs5FwFs+xaJgBXINUZbSp5i19QNbhQcPQ9gbZUiaIM6bjOgdvLy1BkJEhH8Ifaf fw5MdJH/qa2hKQl5gM0ijnIPD+v4BxhBTjW+mLjAlmP9Vnx2PHbE+XG6XzX3TOqqv6eh 7+4w== X-Gm-Message-State: AIkVDXIia4Ba/5uqSKXakHDBdPi9BPYikg5/wjVl54mUjkY8bZa1AXjDp9CBTJcpfLgykQMMSEsragCUpoBqNw== X-Received: by 10.176.71.87 with SMTP id i23mr8815752uac.123.1482165949947; Mon, 19 Dec 2016 08:45:49 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Erik Bray Date: Mon, 19 Dec 2016 17:45:49 +0100 Message-ID: Subject: Re: compile python executable file on cygwin for windows To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes 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: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple