...
Magics and third-party dependent software packages might also be available as binary packages for you platform in form of RPMs or Debian packages. You might find them by going to the software search services, such as for OpenSuSE and SLES at http://software.opensuse.org/search (select "Search options" - "Include users' home projects"). Ubuntu maintains a Magics version in their system default repository.
Static versus shared library
...
The advantages of using shared libraries are that the size of executables will be smaller and that a different version of Magics can be used without recompiling the executable (if the libraries are binary compatible).
Requirements
The following table lists the dependency Magics requires to be build from source. Please note, if you install these package from source you also might have to install the respective "-devel" packages.
Compilers | |||
---|---|---|---|
C++ | http://gcc.gnu.org/ | ||
Fortran | http://gcc.gnu.org/fortran/ | If Fortran or BUFR support needed | |
Utilities | |||
make | http://www.gnu.org/software/make/ | ||
cmake | http://www.cmake.org/ | version 2.8.4 minimum | |
Python Support | |||
swig | http://www.swig.org/ | to generate the python interface | |
python | http://www.python.org/ | ||
python-numpy | http://www.numpy.org/ | ||
Third party libraries | |||
proj | http://trac.osgeo.org/proj/ | Proj4 to handle projections | |
boost | http://www.boost.org/ (Requires 1.5) | used for coastlines | |
netcdf | http://www.unidata.ucar.edu/software/netcdf/ | if netcdf support needed Please note: You also need to install the legacy C++ interface and HDF5 | |
pango | http://www.pango.org/ | if png/jpeg pdf support needed | |
expat | http://expat.sourceforge.net/ | for XML parsing | |
Ecmwf libraries | |||
grib-api | GRIB-API Home (Requires 1.9) | if grib support needed | |
odb-api | ODB-API Home | if odb support needed | |
emoslib | if bufr support needed |
...
cmake options | doc | default |
---|---|---|
CMAKE_INSTALL_PREFIX | where you want to install your Magics library | /usr/local |
CMAKE_BUILD_TYPE | to select the type of compilation:
| ? |
CMAKE_CXX_FLAGS | More flags for the C++ compiler | |
ENABLE_GRIB | enable grib support | on |
GRIB_API_PATH | where to find grib-api ( if non-standard installation ) | |
ENABLE_NETCDF | enable netcdf support | on |
NETCDF4_PATH | where to find netcdf ( if non-standard installation ) | |
ENABLE_ODB | enable odb support | off |
ODB_API_PATH | where to find odb ( if non-standard installation ) | |
ENABLE_BUFR | enable bufr support The bufr support is done through emoslib . | off |
BUFREMOS_LIBPATH | Where to find emos lib ( if non-standard installation ) | |
ENABLE_PYTHON | enable python interface | auto |
ENABLE_FORTRAN | enable fortran interface | on |
ENABLE_METVIEW | enable metview support(and Qt support) | off |
ENABLE_CAIRO | enable cairo support | on |
BOOST_ROOT | where to find boost ( if non-standard installation ) | |
PROJ4_PATH | where to find proj4 ( if non-standard installation ) |
...