This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: help needed for portable exes


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEIAWG84KuGfSFAYARAvUJAJ49oAVPGrm700RxNbGLiDjw+OxoyQCgqHMs
7MFChvWPwBkxBfq+mC6Jv08=
=5E8P
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]