From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78570 invoked by alias); 16 Oct 2018 18:49:13 -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 78539 invoked by uid 89); 16 Oct 2018 18:49:11 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=P.S, PS, UD:P.S, sk:hackerw X-HELO: mail-it1-f181.google.com Received: from mail-it1-f181.google.com (HELO mail-it1-f181.google.com) (209.85.166.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 16 Oct 2018 18:49:09 +0000 Received: by mail-it1-f181.google.com with SMTP id e74-v6so33502710ita.2 for ; Tue, 16 Oct 2018 11:49:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zh2Ze3CTBSEwZ3HEq0HLXhmXmE8JkD5dMDOT2abikoI=; b=CWJlff8R9t7LfvH1xBhY4XZm4MPKItEDpli7Q+CGvt0TXAhdhnAGEFEmoe2XIw0V7g 8ILr+jRO4aPDSmWlmp7imatrmYj5NBQXRHrfiHD2wk8npIte5hHGo8h7XRaWK4W0NSj7 LVjhXQSeN895qg6p/CzXYcrpZ/iwKIh1li2L3xk/hBMhyeAxcYYTsrs+ZU6TrqmGh4VT 9swgDmxS06fRSerTKnn1ZWsap0l5IkEGvba/z5rWMcQzc4Pc0nc/TfIU0xuxMR8smqxX 5lW7D9Dt7E/5ODiOH60Wx/msxLjkfXVKYQcxxzWZyqg+0DVIheXwhrNNevuI+rXVXgoE IYTA== Return-Path: Received: from [192.168.0.3] (d47-69-109-131.nap.wideopenwest.com. [69.47.131.109]) by smtp.gmail.com with ESMTPSA id u4-v6sm4360782iob.0.2018.10.16.11.49.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Oct 2018 11:49:06 -0700 (PDT) Subject: Re: Distributing program compiled with gcc on Cygwin to Windows users To: cygwin@cygwin.com References: From: cyg Simple Openpgp: preference=signencrypt Message-ID: <73f52643-1aa1-2ef8-ed49-26cf92ec7c40@gmail.com> Date: Tue, 16 Oct 2018 18:49:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-10/txt/msg00140.txt.bz2 On 10/14/2018 5:20 PM, hackerwiz@protonmail.com wrote: > Hello, > > I have a program that uses X11/Motif and runs fine, within Cygwin/X on the PC it was compiled on. > > What is the *minimum* required set of Cygwin libs and any other files I need to distribute along with, it to end-users who may just have Windows (and not Cygwin) installed? > > I appreciate your help. > > "ldd " on my program gives these dependencies listed below: As far as Cygwin is concerned the list can be obtained via `ldd FOO.EXE | grep /usr/bin'. You can determine what else is needed by the following rooted procedure. Change ROOTED and FOO.EXE to match what you desire to name it. /usr/bin/bash $ mkdir -p /cygdrive/c/ROOTED/{bin,tmp,home,etc} $ for FILE in `ldd FOO.EXE | grep /usr/bin`; do $ cp ${FILE} /cygdrive/c/ROOTED/bin $ done CMD.EXE cd -d c:\ROOTED\bin FOO.EXE You should be able to use XMing for the clients X Windows manager but has already been noted you still need to connect to an X client. You will need to insure the DISPLAY variable is set appropriately for FOO.EXE to communicate to the X server in CMD.EXE. -- cyg Simple P.S. Remember to follow the license requirements of each of the distributed packages. -- 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