-
Notifications
You must be signed in to change notification settings - Fork 17
Building CCDC
The project README provides basic information on how to build CCDC. The short version is this:
$ make
This wiki page is for covering topics that are more focused than the general content of a README file. Some of the specific information that was originally there has been moved here instead.
On Ubuntu, you will need the following packages installed in order to compile the CCDC C library:
$ sudo apt-get install build-essential
$ sudo apt-get install libgsl0-dev libgsl0ldbl gsl-bin
$ sudo apt-get install gfortranThe classification tool requires the additional installs:
$ sudo apt-get install libmatio-dev libmatio2TBD
The CCDC Makefile defines several variables using the override operator ?=, allowing you to provide different values for these via command line or environment variables. The variables are as follows:
BINCCXML2INCESPANICGSL_SCI_INCGSL_SCI_LIBFORTRANHDF5INCHDF5LIBMATIOLIB
Note that some of these may no longer be used, but are maintained (for now) for backwards compatibility (users of older versions of CCDC who wrote scripts wrapping the original Makefile).
If, for example, you want to compile with cc instead of gcc, to install the executable(s) into your home directory's bin dir, and have a non-standard include location for libxml2, you would do the following:
$ CC=cc BIN=~/bin XML2INC=/opt/include/libxml2/libxml make