| Compiling |
For a minimal build of the
The other packages of
The sources can be downloaded from the svn server located at http://gforge.inria.fr/projects/mmx/ via the following command:
svn checkout svn://scm.gforge.inria.fr/svn/mmx
This will create a mmx directory containing all the source files. In the case that you wish to contribute, just ask for an account via the above gforge page.
Once the sources are downloaded, go into the mmx directory and setup the paths needed for the compilation.
cd /path/to/mmx source set-devel-paths
./configure
The default list of the package to be handled is thus printed. The latter list can be customized thanks to the –enable-package options. Dependencies are treated automatically. For instance
./configure --enable-algebramix --enable-mmxlight
will build the package algebramix and the interpreter mmxlight, as well as all dependencies (in this case basix and numerix). Notice that extra packages can be enabled a posteriori, simply by redoing a ./configure; this will not recompile the packages which are already available.
To build
./configure CPPFLAGS=-I/sw/include LDFLAGS=-L/sw/lib
To build it on Windows, you will first to install first MinGW and msys first. Then the configuration process is the same. The list of all options is obtained using
./configure --help
For more details on the configuration options, see here.
In order to compile the sources now type
make
in your console. As a result the packages will be configured and compiled automatically in a suitable order. When done, and assuming that you sourced the set-devel-paths script, you should have the binary mmx-light in your path. The interpreter is launched using
mmx-light
Typing 1+1 at the prompt should produce the output 2.
At this point, all libraries and binaries are located inside the
directory tree where you compiled
make install
By default the software will be installed into /usr/local. If you want to install elsewhere, then use
./configure --prefix=mypath
during the configuration phase.
In order to build the html documentation, setup –enable-doc within configure and type make html once the sources have been compiled. It is supposed that TeXmacs and Doxygen are installed on your platform.
The main documentation is located in the toplevel doc/ directory. Each package is then documented within its own doc/ directory, usually throughout the Doxygen software, and is produced via make html. Packages must have been configured with the –enable-doc option. Installation is made according to the datarootdir configuration setup via make.