| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
1.3 Installation and using
MathGL can be installed by 3 ways.
-
Compile from sources. The standard script for autoconf/automake tools is included in library beginning from version 1.2.1. For its running one should execute 3 commands:
./configureafter itmakeandmake installwith root/sudo rights. Script./configurehave several additional options which is switched off by default. They are:--enable-fltk, --enable-glut, --enable-qtfor ebabling FLTK, GLUT and/or Qt windows;--enable-jpeg, --enable-tiff, --enable-hdf5for enabling corresponded file formats;--enable-allfor enabling all additional features. The full list of options can be viewed by command./configure --help. - Use precompiled binary. There are binaries for MinGW (platform Win32). For precompiled variant one needs only to unpack the archive to the compiler location (or in any other folder and setup paths). By default precompiled versions include the support of GSL (www.gsl.org) and PNG. So, one needs to have these libraries installed on system.
- Install precompiled versions from standard packages (RPM, deb, DevPak and so on, see Download section at homepage).
At the own program compilation one needs to specify the linker key -lmgl for compilation in console program or with the external (not MathGL) window library. If one wants to use FLTK or GLUT windows then he needs to add the keys -lmgl-fltk or -lmgl-glut. Fortran users also must add C++ library by option -lstdc++.
