~ubuntu-branches/ubuntu/trusty/mtasc/trusty-proposed

« back to all changes in this revision

Viewing changes to ocaml/mtasc/doc/INSTALL.txt

  • Committer: Bazaar Package Importer
  • Author(s): Paul Wise
  • Date: 2006-03-25 17:15:45 UTC
  • Revision ID: james.westby@ubuntu.com-20060325171545-zjh6rxeqehxiv4v2
Tags: upstream-1.12
ImportĀ upstreamĀ versionĀ 1.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
This document is dedicated to people who want to compile MTASC from sources.
 
2
 
 
3
Quick Guide :
 
4
-------------
 
5
 
 
6
- install OCaml (at http://caml.inria.fr ). 3.08 is recommanded
 
7
- install CVS (http://www.cvshome.org)
 
8
- download and compile ZLIB (http://www.zlib.org)
 
9
- put the "install.ml" MTASC install script into a directory of your choice
 
10
- configure ocaml and cvs so it can run from commandline
 
11
- edit and *configure* install.ml (see below)
 
12
- run the following command "ocaml install.ml" to run compilation script
 
13
- the binary can be found in the "bin" subdirectory of install.ml
 
14
- you also need to copy somewhere on your system the "ocaml/mtasc/std"
 
15
  subdirectory (and use -cp <path to std> for mtasc commandline).
 
16
 
 
17
Configuration
 
18
-------------
 
19
 
 
20
install.ml is an install script that will download and compile sources.
 
21
It needs some minimal configuration in order to work correctly.
 
22
 
 
23
First you need to choose which of the two build you want to compile :
 
24
- native : native is compiled for your processor, it will run a lot faster
 
25
- bytecode : ocaml bytecode program, however it is not platform independant
 
26
  since it links some C code for ZLib bindings
 
27
 
 
28
Then you need to configure the path where zlib.lib or zlib.a can be found.
 
29
For example on Linux you will have to replace it by something like :
 
30
        let zlib = "/usr/lib/libz.a"
 
31
 
 
32
Problems :
 
33
----------
 
34
In case of problem please join the MTASC mailing list here :
 
35
http://lists.motion-twin.com/mailman/listinfo/mtasc