From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q16I2n6I031056 for ; Mon, 6 Feb 2012 19:02:49 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhkCAHgVME9RZ90xkWdsb2JhbABCr0giAQEBAQkLCwcUAyKBcgEBAQQ6TwIBCBgKFBAyFwENAgQBGgEQh2YGsFqLLQoJEQUDBgE1gw0ECIEEChEfDYJJYwSVKJJb X-IronPort-AV: E=Sophos;i="4.73,372,1325458800"; d="scan'208";a="143091315" Received: from mtaout03-winn.ispmail.ntl.com ([81.103.221.49]) by mail1-smtp-roc.national.inria.fr with ESMTP; 06 Feb 2012 19:02:38 +0100 Received: from aamtaout02-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 <20120206180238.LTYZ24131.mtaout03-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com>; Mon, 6 Feb 2012 18:02:38 +0000 Received: from romulus.metastack.com ([81.102.132.77]) by aamtaout02-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20120206180238.EUD5924.aamtaout02-winn.ispmail.ntl.com@romulus.metastack.com>; Mon, 6 Feb 2012 18:02:38 +0000 Received: from remus.metastack.local ([172.16.0.1]) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id q16I2WxO024746 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 6 Feb 2012 18:02:32 GMT 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, 6 Feb 2012 18:02:32 +0000 From: David Allsopp To: Romain Bardou , "caml-list@inria.fr" Thread-Topic: [Caml-list] Compiling Cryptokit on Windows Thread-Index: AQIqlq8m01oH+9Cg8R/4Ezsyk8LhM5V0wkDA Date: Mon, 6 Feb 2012 18:02:31 +0000 Message-ID: References: <4F300957.5050708@lsv.ens-cachan.fr> In-Reply-To: <4F300957.5050708@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: [172.16.0.7] Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Organization: MetaStack Solutions Ltd. X-Scanned-By: MIMEDefang 2.65 on 81.102.132.77 X-Cloudmark-Analysis: v=1.1 cv=R50lirqlHffDPPkwUlkuVa99MrvKdVWo//yz83qex8g= c=1 sm=0 a=40hZHaDki8MA:10 a=5Ibc5xblSvgA:10 a=cTs9vV391PwA:10 a=kj9zAlcOel0A:10 a=xqWC_Br6kY4A:10 a=NEAV23lmAAAA:8 a=eh8eaQhiAAAA:8 a=NzajIMockZlhVkXPA_EA:9 a=CjuIK1q_8ugA:10 a=Ylf5In6jL18A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id q16I2n6I031056 Subject: RE: [Caml-list] Compiling Cryptokit on Windows Romain Bardou wrote: > Hi list, > > > There has been some discussion during the last few months were some > argued that there was not enough Windows users to test libraries. Well it > happens that I need to compile Cryptokit for Windows. Here are my first > results, which failed miserably. I'm using OCaml 3.12. > > > 1) With Cryptokit 1.5. > > INSTALL.txt states that I need findlib. I installed OCaml from: > http://protz.github.com/ocaml-installer/ > And it seems that ocamlfind is not installed by this tool. After more > search I read here: > http://www.camlcity.org/archive/programming/findlib.html > that "Volunteers are still wanted who port findlib to Windows and > Macintosh." findlib is perfectly ported, and has been for years (see Gerd's email) - you simply need to compile it. All that's required is a recent Cygwin with the make, mingw64-i686-gcc-core and m4 packages (patch is a good idea as well). Assuming a working OCaml environment (OCAMLLIB set with a correct *Windows* PATH etc). For findlib 1.2.7, you need to patch the configure script - find the line camlp4_dir=`camlp4 -where` and change it camlp4_dir=`camlp4 -where | tr -d '\015'` or you'll get a corrupt META file for camlp4. It's built using ./configure && make all opt install To compile Cryptokit with ZLIB support requires a patch (happy to send it - it's because of a limitation in OASIS - at least at the time I built it) but otherwise: ocaml setup.ml -configure ocaml setup.ml -build ocaml setup.ml -install While it's far from ideal, life is *much* easier on Windows with a compiler (i.e. building from sources). It's also a really good idea *not* to use spaces in anything (I use C:\Dev - although amusing that's had an issue with a buggy flexlink trying to write /dev/null!). Write your own software to handle spaces correctly, but don't expect Unix-only guys to think that way ;o) With my last refresh of OCaml to 3.12.2, I produced fully automated scripts for Windows compilation - at some point, I'll try to chuck them up somewhere in case they're of use to others (but the recent work with GODI on Windows is much more promising than what I was doing...). If you're feeling brave, I'm happy to send the scripts and patches off-list (OCaml with findlib, extlib, calendar, pcre, csv, pgocaml, zlib, camlzip, openssl, cryptokit, ocamlnet, json-wheel/static, spidermonkey+spidercaml, ocamlsha and ocamldap) David