Installing |
Here is the list of packages to be installed before configuring
src | rpm | deb | port (Mac) |
basix | basix | – | – |
gmp-4.3.1 | gmp-devel | libgmp-dev | gmp |
mpfr-3.0.1 | mpfr-devel | libmpfr-dev | mpfr |
You can either
get the version under development with:
svn checkout svn://scm.gforge.inria.fr/svn/mmx/numerix
or download a source distribution if it is available at
http://gforge.inria.fr/project/mmx
and uncompress it with:
tar zxvf numerix-0.4-Source.tar.gz
To run the configuration, cmake version
at least should available on your platform.
Local installation. The package can be configured out-of-source (eg. in a folder ../build) as follows:
cmake ../(path_to_package) make
The folder where the construction will be run is in this case ../build.
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):
cmake ../(path_to_package) -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.
To see the operations performed during the make command, you can use:
make VERBOSE=1
In case you have not run make install, you can set up your environment locally in the folder build with:
cd ../build source local_env
To use the package
find_package(Numerix) include_directories (${NUMERIX_INCLUDE_DIR}) link_directories (${NUMERIX_LIBRARY_DIR}) link_libraries (${NUMERIX_LIBRARIES})