X-Spam-Check-By: sourceware.org Message-ID: <44200586.1040209@byu.net> Date: Tue, 21 Mar 2006 06:54:14 -0700 From: Eric Blake User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: cygwin AT cygwin DOT com, utaker AT gmail DOT com Subject: Re: help needed for portable exes References: <25082fe70603201104y70de7bc8peca46e78ac2e7748 AT mail DOT gmail DOT com> In-Reply-To: <25082fe70603201104y70de7bc8peca46e78ac2e7748@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 -----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 AT byu DOT 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/