I - How to Build SPOC

1 - Configuration

Modify “config” file according to your system

2 - Dependencies

LINUX

SPOC requires

   ocaml >= 3.12 
   ocamlopt >= 3.12
   camlp4 >= 3.12
   gcc >= 4.4
   opengl (gl, glu, glut)

For example, with ubuntu :

    $sudo aptitude install ocaml camlp4-extra ocaml-native-compilers \
    mesa-common-dev libglu1-mesa-dev freeglut3-dev

should install everything needed to compile SPOC correctly

To compile SPOC: cd Spoc make make install

OSX

SPOC requires

   ocaml >= 3.12 
   ocamlopt >= 3.12
   camlp4 >= 3.12
   clang

3 - Compilation & Installation

To compile SPOC:

  cd Spoc
  make
  make install

4 - Build Documentation

  make htdoc

Will build the ocamldoc html pages in the Spoc/doc directory

5 - Windows...

WINDOWS

SPOC is not currently supported for windows. Requires, OCaml (MSVC), cygwin (or equivalent) to use Makefile and basic Unix commands.

II - Testing SPOC

The “Samples” directory contains few programs using SPOC.

To compile those programs:

  cd Samples
  make

Binaries will be located in the Samples/bin folder

installation_notes.txt · Last modified: 2012/09/14 12:15 by mathias
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki