From: cyg Simple <cygsimple@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Distributing program compiled with gcc on Cygwin to Windows users
Date: Tue, 16 Oct 2018 18:49:00 -0000 [thread overview]
Message-ID: <73f52643-1aa1-2ef8-ed49-26cf92ec7c40@gmail.com> (raw)
In-Reply-To: <k-FR7PNenfo1J53Q0MeVTHBabZ0w6SgeipwWNFvMxBIT202N0ZfvtYw6TJcdatirkNpqdJ1FptFfOLvInYQkVheckcD7-3MH_cqsTkrEWOQ=@protonmail.com>
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.
<untested>
/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
</untested>
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
next prev parent reply other threads:[~2018-10-16 18:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-14 21:20 hackerwiz
2018-10-14 21:49 ` R0b0t1
2018-10-15 19:32 ` Hans-Bernhard Bröker
2018-10-15 20:20 ` Andrey Repin
2018-10-16 18:49 ` cyg Simple [this message]
2019-04-04 22:16 ` drikosev
2019-04-04 23:20 ` drikosev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=73f52643-1aa1-2ef8-ed49-26cf92ec7c40@gmail.com \
--to=cygsimple@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).