This is the mail archive of the
mailing list for the Cygwin project.
Re: help needed for portable exes
-----BEGIN PGP SIGNED MESSAGE-----
According to Usman Khan on 3/20/2006 12:04 PM:
> suppose i compiled a program and it runs successfully (make install done).
> now that i want that the program runs on any other pc, is there a way
> to find all the dlls that are required, some program, or a program
> that makes an installer that installs all the files with the dlls
> required for that program so i can easily isntall on other systems
> that dont have cygwin? or something?
If your program requires cygwin, then it will only run on systems that
have cygwin installed. If you want to break the dependence on cygwin,
then consider the mingw project (cygwin is even nice enough to provide the
- -mno-cygwin compiler switch for compiling a mingw app, but using that
means your app is no longer a cygwin app so this mailing list is no longer
the place to discuss it).
Having said all that, the cygcheck utility can show you all static
dependencies of an executable. For example, 'cygcheck /bin/bash' shows
that bash requires cygwin1.dll, cygintl-3.dll, cygiconv-2.dll,
cygreadline6.dll, and cygncurses-8.dll. But cygcheck is unable to pick up
dynamic dependencies (for example, if your app uses dlsym).
It may be that the easiest way to get your program installed on any PC is
to get your program accepted as part of the cygwin distribution, then tell
users to use cygwin's setup.exe to install your program.
One other thing - if you are planning on distributing your program that
depends on cygwin, remember to obey the GPL: your program must be open
source, with anyone obtaining your program having the ability to obtain
the source at the same time if they desire.
Life is short - so eat dessert first!
Eric Blake email@example.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v188.8.131.52 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html