Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

http://www.python.org/boost
Compilers
C++http://gcc.gnu.org/The compiler must support C++14. GCC supports it from version 5
Fortranhttp://gcc.gnu.org/fortran/If Fortran or BUFR support neededOnly needed to run Fortran tests
Utilities

make

http://www.gnu.org/software/make/
cmakehttps://cmake.orgversion >3.1
Python Support
pythonversions 2.7 and 3.x supportedpython-jinja2pip install jinja2
Third party libraries
projhttp://trac.osgeo.org/proj/Proj4 to handle projectionshttp://www.boost.org/used for coastlines
netcdfhttp://www.unidata.ucar.edu/software/netcdf/

if netcdf support needed

Please note: You also need to install the legacy C++ interface and HDF5

pangohttp://www.pango.org/if png/pdf support needed
expathttp://expat.sourceforge.net/for XML parsing
ECMWF libraries
ecCodesECCEnables GRIB and BUFR support 
odb-apiODB-API Homeif ODB support needed

...

After changing into the build Magics directory, the user  user has to run CMake with his/her own options. The command gives feedback on what requirements are fulfilled and what software is still required. Table below gives an overview of the different options of configure. The default (without any options) will compile a share library only and install it in /usr/local/.

cmake optionsdocdefault
ECCODES_PATHwhere to find eccodes ( if non-standard installation  )
ENABLE_NETCDFenable netcdf supporton
NETCDF_PATHwhere to find netcdf  ( if non-standard installation  )
ENABLE_ODBenable odb supportoff
ODB_API_PATHwhere to find odb ( if non-standard installation  )
ENABLE_PYTHONenable python interfaceautoENABLE_FORTRANenable fortran interfaceon
ENABLE_METVIEWenable metview support(and Qt support)off
ENABLE_CAIROenable Cairo supporton
BOOST_ROOTwhere to find boost ( if non-standard installation  )PROJ4_PATHwhere to find proj4 ( if non-standard installation  )

To make sure that a feature is really enabled, you will have to specify with the option ex: -DENABLE_GRIBNETCDF=ON. In that case CMake will fail if the GRIB NetCDF support cannot be enabled.

...

The Magics code contains a directory called test in which, in separate sub-directories, tests for the various interfaces of Magics are provided. Test programs in Fortran , and C , Python and MagML are compiled and run if MAGPLUS_HOME=$PWD make check is invoked from the root directory. (Note that the MAGPLUS_HOME needs to be set!)

...