manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.3 Installation and using

MathGL can be installed by 3 ways.

  1. 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: ./configure after it make and make install with root/sudo rights. Script ./configure have several additional options which is switched off by default. They are: --enable-fltk, --enable-glut, --enable-qt for ebabling FLTK, GLUT and/or Qt windows; --enable-jpeg, --enable-tiff, --enable-hdf5 for enabling corresponded file formats; --enable-all for enabling all additional features. The full list of options can be viewed by command ./configure --help.
  2. 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.
  3. 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++.


© manpagez.com 2000-2026
Individual documents may contain additional copyright information.