How to install and use mmx

1.Dependencies

Here is the list of packages to be installed before configuring mmx:

src rpm deb port (Mac)
libtool-2.2.4 libtool-ltdl-devel libtool-dev libtool
gmp-4.3.1 gmp-devel libgmp-dev gmp
mpfr-2.4.2 mpfr-devel libmpfr-dev mpfr
readline-6.0 readline-devel libreadline-dev readline
ncurses-5.7 ncurses-devel libncurses-dev ncurses
blas blas-devel atlas(-sse2)(-dev) blas
lapack-3.2.1 lapack-devel lapack lapack
cddlib-094f cddlib-devel
gf2x gf2x
qt4 qt4 qt4

To construct the plugins for axel (AXL=ON), the following packages should be installed:

src rpm deb port (Mac)
axel axel

2.Download

You can either

3.Configuration with cmake

To run the configuration, cmake (version ⩾ 2.6) should first be installed.

Local installation. The package can be configured out-of-source (eg. in a folder build) as follows:

mkdir build;
cd build;
cmake <mmx_source_dir>
make

where <mmx_source_dir> is the name of the folder of the package source (eg. ../mmx-0.1-Source or ../mmx),

Global installation. If you want to install it globally in your environment after it is compiled, you can run the following instructions (possibly with the superuser rights):

mkdir build;
cd build;
cmake <mmx_source_dir> -DCMAKE_INSTALL_PREFIX=<install_dir>
make && make install

where <install_dir> is the folder where to install the package so that the libraries go in <install_dir>/lib; and the headers in <install_dir>/include. If not specified, the package is installed by default in /usr/local. For more details, on the different options see here.

To see the operations performed during the make command, you can use:

make VERBOSE=1

To see the other available targets, you can use:

make help

4.Configuration with configure

To run the configuration with configure as follows:

cd mmx
./configure
make

For more details, on the different options see here.

5.How to set locally your environment variables

In case you have not run make install, you can set up your environment locally in the folder build with:

source local_env

6.Using mmx

To use the package mmx in a cmake project, you can simply add the following lines in your file CMakeLists.txt:

find_package(Mmx)
include_directories (${MMX_INCLUDE_DIR})
link_libraries (${MMX_LIBRARIES})
link_library_dir (${MMX_LIBRARY_DIR})