From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q328NYQv027011 for ; Mon, 2 Apr 2012 10:23:34 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtUDABFheU9RZ90xgGdsb2JhbABEtX+DBiIBAQsHBAkJFAMkggkBAQEDAXkFCwIBCBgKJDIlAgQBDQ2HfAYDuWWQOWMEiCWNPJMW X-IronPort-AV: E=Sophos;i="4.75,355,1330902000"; d="scan'208";a="138653971" Received: from mtaout03-winn.ispmail.ntl.com ([81.103.221.49]) by mail4-smtp-sop.national.inria.fr with ESMTP; 02 Apr 2012 10:23:28 +0200 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20120402082328.OASI18388.mtaout03-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com>; Mon, 2 Apr 2012 09:23:28 +0100 Received: from romulus.metastack.com ([81.102.132.77]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20120402082328.IQVD13318.aamtaout03-winn.ispmail.ntl.com@romulus.metastack.com>; Mon, 2 Apr 2012 09:23:28 +0100 Received: from remus.metastack.local (remus.metastack.com [172.16.0.1]) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id q328NOou018070 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 2 Apr 2012 09:23:24 +0100 Received: from Remus.metastack.local ([fe80::547c:3c42:e1da:eda2]) by Remus.metastack.local ([fe80::547c:3c42:e1da:eda2%10]) with mapi id 14.01.0355.002; Mon, 2 Apr 2012 09:23:24 +0100 From: David Allsopp To: Romain Bardou , Jonathan Protzenko CC: "caml-list@inria.fr" Thread-Topic: [Caml-list] Re: New version of the binary installer for Windows Thread-Index: AQHNDn+hr8oSoUvN9kSbxrchdCyhfZaHIGWAgAAUhAA= Date: Mon, 2 Apr 2012 08:23:23 +0000 Message-ID: References: <4F730303.8000802@gmail.com> <4F75BFFA.6040407@gmail.com> <4F795D4D.1060503@lsv.ens-cachan.fr> In-Reply-To: <4F795D4D.1060503@lsv.ens-cachan.fr> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [87.213.128.2] Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Organization: MetaStack Solutions Ltd. X-Scanned-By: MIMEDefang 2.65 on 172.16.0.20 X-Cloudmark-Analysis: v=1.1 cv=JvdXmxIgLJv2/GthKqHpGJEEHukvLcvELVXUanXFreg= c=1 sm=0 a=1ajdqJ-tx_YA:10 a=3ZMfwvh8F5cA:10 a=cTs9vV391PwA:10 a=8nJEP1OIZ-IA:10 a=xqWC_Br6kY4A:10 a=g5AxTnJCx5EKc_MQXr0A:9 a=wPNLvfGTeEIA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id q328NYQv027011 Subject: RE: [Caml-list] Re: New version of the binary installer for Windows Romain Bardou wrote: > Le 30/03/2012 16:15, Jonathan Protzenko a écrit : > > Hi again, > > > > Following all the good suggestions in this thread, I've updated the > > installer. It now downloads and runs cygwin's setup.exe so as to > > provide a fully working environment for OCaml on windows after the > > installer completes. The cygwin installer runs in silent mode, that > > is, the progress window shows up, but there is no user prompt. > > Hello, > > I always heard that if you compile your program under the Cygwin > environment, then the application needs to be run under the Cygwin > environment as well; whereas if you use MinGW, you produce stand-alone > executables. Is that still the case? You misheard :o) If you compile your programs using the Cygwin *port* of OCaml (so either using Cygwin's OCaml package or by compiling OCaml from sources using ./configure && make world opt install) then your executables will depend on Cygwin. The MinGW and MSVC ports don't use configure (at the moment) but instead use custom Makefiles - however, all four ports use the Cygwin *environment* (i.e. bash, make, findutils, etc.) to perform the build. For the MinGW ports, Cygwin's mingw64 *cross-compilers* are used. > I need to give stand-alone executables to my users; I cannot tell them to > install Cygwin as well. If your installer does not let me compile stand- > alone executables, it has no value to me. It does - the installer will install Cygwin's gcc-mingw64-core package. You can still run ocamlopt from a normal command prompt. David