From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 34535 invoked by alias); 19 Dec 2016 16:45:58 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 34042 invoked by uid 89); 19 Dec 2016 16:45:53 -0000 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@gmail.com X-HELO: mail-ua0-f182.google.com Received: from mail-ua0-f182.google.com (HELO mail-ua0-f182.google.com) (209.85.217.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 19 Dec 2016 16:45:51 +0000 Received: by mail-ua0-f182.google.com with SMTP id b35so79540925uaa.0 for ; Mon, 19 Dec 2016 08:45:51 -0800 (PST) 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 Received: by 10.103.133.70 with HTTP; Mon, 19 Dec 2016 08:45:49 -0800 (PST) In-Reply-To: References: From: Erik Bray Date: Mon, 19 Dec 2016 16:45:00 -0000 Message-ID: Subject: Re: compile python executable file on cygwin for windows To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00196.txt.bz2 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