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 q16LbieX002316 for ; Mon, 6 Feb 2012 22:37:44 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Am0BAMVHME/RVde2kGdsb2JhbABDrz0IIgEBAQEJCQ0HFAQhgXIBAQEEEgIsARsdAQMMBgULDS4iAREBBQEOAQ0GEwkVBIdjmyAKi3GCcIUtP4hxAgULiygCAQICCQICAQYHBAYBCA0OCgwCDIQbCx8NgywEjV+HSY4cPYQD X-IronPort-AV: E=Sophos;i="4.73,372,1325458800"; d="scan'208";a="143109927" Received: from mail-ey0-f182.google.com ([209.85.215.182]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 06 Feb 2012 22:37:14 +0100 Received: by eaan10 with SMTP id n10so3102628eaa.27 for ; Mon, 06 Feb 2012 13:37:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/myV6iqkIhpJYXg5tNzEqPwwTTIKvB8IOuc2/wo7BZI=; b=eTXsEk6XnKSp+bpwsQ2TfbaTb0ea44etHbmTMOwS42hPXn3IBetsxCOGq9TCTFPjQ2 dfEaaaQpsEyu97Jb/5Fr5el1WxHjZ2jfbVyvdJV3G9F/kL+3hkaL9mAVvTJ/CD2vZpVH rHKfvvu3cpTZikEMK+zjHORX4cs2/t3pecmqs= MIME-Version: 1.0 Received: by 10.213.7.18 with SMTP id b18mr1635964ebb.89.1328564233747; Mon, 06 Feb 2012 13:37:13 -0800 (PST) Received: by 10.213.6.195 with HTTP; Mon, 6 Feb 2012 13:37:13 -0800 (PST) In-Reply-To: <4F300957.5050708@lsv.ens-cachan.fr> References: <4F300957.5050708@lsv.ens-cachan.fr> Date: Mon, 6 Feb 2012 22:37:13 +0100 Message-ID: From: Adrien To: Romain Bardou Cc: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Caml-list] Compiling Cryptokit on Windows On 06/02/2012, 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." > > So I guess that every OASIS project needs findlib, but findlib does not > work on Windows, so all OASIS projects will not be usable on Windows? I > thought on the contrary that OASIS was a step towards unification? > > I tried anyway without findlib, running: > ocaml setup.ml -configure > I get this error: "'c:\Program' n'est pas reconnu en tant que commande > interne" (i.e. "unrecognized internal command"). The command which is > supposed to be run is: > c:\Program Files\OCaml\bin\ocamlc.opt.EXE -config > somefile.txt > It just misses quotes, which seems kind of silly. > > > 2) With Cryptokit 1.3. > > So I gave up and tried an older version whose INSTALL file explains how > to install on Windows. > > I checked variables in Makefile.win and ran: > make -f Makefile.win > Now the error I get is that gcc cannot find "C:\Program > Files\OCaml\lib/ocamlrun.a", which actually does not exist, so this is > not a surprise. This file "ocamlrun.a" does not exist either on my > Debian computer, so I'm a little surprised here. > > > I think I'll try cross-compiling now, or maybe editing "setup.ml" to put > quotes around the command. IIRC, what you want is in setup.data. -- Adrien Nader