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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=lknevrtj52m04OPK 9I9YaZTBKA6ZvlkzDnAhI3C4fLMc+GnDl2S7ExRztgSR2vOVjEfire1UB5QHF+pi OZD7CM3z8lRlaGPGF4j1v/OJZ7O3Vnjgg4hyCxT0LKLyzF1WjWSnymsf5CUAtvn3 pU5tmQA9bgXIhbg1RQkGomskZ8w= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=N3x2128bTf3y47rh/DGNuK yKOII=; b=lQiLuDEwTApHW0UhM0LPZjtEjneW6OZFgRe7/GKM0DETFLFPr/lUt3 mf/PdoXv/7VmoCCho0GQO2ktOzC+2rro7gxb05PraBw0ixXip+TB2HjF3XwJ/6Dw xnhlLLjH8YHQTNd1LdEBEHTPKGrJqS49eAlREUaLb4nNbK+AAXfJ4= 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-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 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== Subject: Re: Distributing program compiled with gcc on Cygwin to Windows users To: cygwin AT cygwin DOT com References: From: cyg Simple Openpgp: preference=signencrypt Message-ID: <73f52643-1aa1-2ef8-ed49-26cf92ec7c40@gmail.com> Date: Tue, 16 Oct 2018 14:49:04 -0400 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 On 10/14/2018 5:20 PM, hackerwiz AT protonmail DOT 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