Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Gerd Stolpmann" <info@gerd-stolpmann.de>
To: "Romain Bardou" <bardou@lsv.ens-cachan.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Compiling Cryptokit on Windows
Date: Mon, 6 Feb 2012 18:56:26 +0100	[thread overview]
Message-ID: <afa75288ddc1c50a5e4111e58d9f4596.squirrel@gps.dynxs.de> (raw)
In-Reply-To: <4F300957.5050708@lsv.ens-cachan.fr>


> 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."

This URL points to an archived web page, starting with "This is the
archived Findlib page. The new homepage can be found here!", plus a link
to more recent information. Maybe this can be overlooked. The new link is
http://projects.camlcity.org/projects/findlib.html.

Findlib is fully supported on Win32.

> 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.

I'd call this a self-made trap. I'd never install Unixish software into a
path with spaces. (I know Windows people think differently about that, but
that's how it is.)

> 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 it was renamed to libocamlrun.a. But this is wrong for Win32
anyway, because the suffix should be .lib.

> I think I'll try cross-compiling now, or maybe editing "setup.ml" to put
> quotes around the command.

Yes, it's not a pleasure to build Ocaml software on Windows.

Gerd

> Cheers,
>
> --
> Romain Bardou
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa-roc.inria.fr/wws/info/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>
>


-- 
Gerd Stolpmann, Darmstadt, Germany    gerd@gerd-stolpmann.de
Creator of GODI and camlcity.org.
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
*** Searching for new projects! Need consulting for system
*** programming in Ocaml? Gerd Stolpmann can help you.



  reply	other threads:[~2012-02-06 17:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-06 17:09 Romain Bardou
2012-02-06 17:56 ` Gerd Stolpmann [this message]
2012-02-06 18:02 ` David Allsopp
2012-02-06 21:37 ` Adrien
2012-02-20 13:50 ` Romain Bardou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=afa75288ddc1c50a5e4111e58d9f4596.squirrel@gps.dynxs.de \
    --to=info@gerd-stolpmann.de \
    --cc=bardou@lsv.ens-cachan.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox