Difference between revisions of "Installing"

From CometWiki
Jump to: navigation, search
(First draft)
 
Line 1: Line 1:
 
==Installing the program==
 
==Installing the program==
  
We provide a [http://kinglab.berkeley.edu/public/mark/comet_0.1.dmg precompiled binary for Mac OS X], and instructions for compiling from source for OS X, Linux and Windows.  '''The program requires ImageMagick for writing images and bzip2 for compressing data files.''' (we recommenced using [http://macports.org macports] to install ImageMagick on OS X (bzip2 is included in the OS), and [http://cygwin.org cygwin] to install ImageMagick and bzip2 on windows.)  
+
'''The program requires ImageMagick for writing images and bzip2 for compressing data files.''' (we recommenced using [http://macports.org macports] to install ImageMagick on OS X (bzip2 is included in the OS), and [http://cygwin.org cygwin] to install ImageMagick and bzip2 on windows.)  
 +
 
 +
 
 +
===Precomiled binary for OS X===
 +
 
 +
We provide a [http://kinglab.berkeley.edu/public/mark/comet_0.1.dmg precompiled binary for Mac OS X], and instructions for compiling from source for OS X, Linux and Windows.
  
 
===Compiling from source===
 
===Compiling from source===
 +
 +
====Downloading the source====
 +
 +
The source is available via svn.  E.g. to checkout the latest source into a directory called 'comet' type:
 +
svn co https://kinglab.berkeley.edu/svn/comet/model/comet/src/ comet
 +
 +
====Dependencies====
  
 
The code has two optional dependencies, the [http://www.gnu.org/software/gsl/ Gnu Scientific Library (GSL)] which provides the Mersenne Twister random number generator (more statistically valid than the standard rand()  function), and [http://vtk.org The Visualization Toolkit (VTK)] which provides the 3D visualization routines.  If these libraries are not available, you can compile without them by changing the #define's USE_GSL_RANDOM  and LINK_VTK in the file stdafx.h  from 1  to 0  respectively.  (I will upload instructions on how to make OS X universal libraries for VTK and GSL soon. [[User:Markdayel|Markdayel]])
 
The code has two optional dependencies, the [http://www.gnu.org/software/gsl/ Gnu Scientific Library (GSL)] which provides the Mersenne Twister random number generator (more statistically valid than the standard rand()  function), and [http://vtk.org The Visualization Toolkit (VTK)] which provides the 3D visualization routines.  If these libraries are not available, you can compile without them by changing the #define's USE_GSL_RANDOM  and LINK_VTK in the file stdafx.h  from 1  to 0  respectively.  (I will upload instructions on how to make OS X universal libraries for VTK and GSL soon. [[User:Markdayel|Markdayel]])

Revision as of 10:50, 2 October 2008

Installing the program

The program requires ImageMagick for writing images and bzip2 for compressing data files. (we recommenced using macports to install ImageMagick on OS X (bzip2 is included in the OS), and cygwin to install ImageMagick and bzip2 on windows.)


Precomiled binary for OS X

We provide a precompiled binary for Mac OS X, and instructions for compiling from source for OS X, Linux and Windows.

Compiling from source

Downloading the source

The source is available via svn. E.g. to checkout the latest source into a directory called 'comet' type:

svn co https://kinglab.berkeley.edu/svn/comet/model/comet/src/ comet

Dependencies

The code has two optional dependencies, the Gnu Scientific Library (GSL) which provides the Mersenne Twister random number generator (more statistically valid than the standard rand() function), and The Visualization Toolkit (VTK) which provides the 3D visualization routines. If these libraries are not available, you can compile without them by changing the #define's USE_GSL_RANDOM and LINK_VTK in the file stdafx.h from 1 to 0 respectively. (I will upload instructions on how to make OS X universal libraries for VTK and GSL soon. Markdayel)

OS X

First install the Apple Developer Tools, then open the Xcode project file supplied (soon! Markdayel). Include the GSL and VTK libraries in the search path, or disable before compiling (see above).

Linux

A makefile is included for compilation with GNU Make. This should be edited to point to the GSL and VTK libraries, or disable them before compiling (see above).

Windows

First install cygwin, then use cygwin to install ImageMagick, bzip2 and gcc, then compile as for Linux.