Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OCaml windows setup directions #1

Merged
merged 2 commits into from
Aug 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions ml-proto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ The interpreter can also be run as a REPL, allowing to enter pieces of scripts i

## Building

You'll need OCaml 4.02. Then go to the `src` directory and simply do
You'll need OCaml 4.02. The best way to get this is to download the source tarball from the ocaml website ( http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.2.tar.gz ) and do the configure / make dance.

Once you have ocaml, go to the `src` directory and simply do

```
make
Expand All @@ -29,8 +31,38 @@ Alternatively, you can also say (in `src`):
ocamlbuild -libs bigarray main.native
```

and get an executable named `src/main.native`. On Windows you'll need Cygwin.
and get an executable named `src/main.native`.


### Building on Windows

Install OCaml for Windows from the github page: http://protz.github.io/ocaml-installer/

The installer will automatically install core cygwin packages. Contrary to the directions, however, you need a set of additional packages for ocaml & ocamlbuild to work, so select them in the cygwin installer (or run cygwinsetup manually to add them after the fact):

```
make

mingw64-i686-binutils
-gcc-core
-gcc-g++
-headers
-runtime
-windows-default-manifest
-winpthreads

mingw64-x86_64-binutils
-gcc-core
-gcc-g++
-headers
-runtime
-windows-default-manifest
-winpthreads
```

The set of packages may be different on 32-bit Windows.

The current set of prototypes does not rely on opam or ocaml packages, but be aware that opam does not work on Windows.

## Synopsis

Expand Down