| How to install and use |
Here is the list of packages to be installed before configuring
| src | rpm | deb | port (Mac) |
| basix | basix | – | – |
| readline-6.0 | readline-devel | libreadline-dev | readline |
| ncurses-5.7 | ncurses-devel | libncurses-dev | ncurses |
You can either
get the version under development with:
svn checkout svn://scm.gforge.inria.fr/svn/mmx/mmxlight
or download a source distribution if it is available at
http://gforge.inria.fr/project/mmx
and uncompress it with:
tar zxvf mmxlight-0.1-Source.tar.gz
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 <mmxlight_source_dir> make
where <mmxlight_source_dir> is the name of the folder of the package source (eg. ../mmxlight-0.1-Source or ../mmxlight),
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 <mmxlight_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
In case you have not run make install, you can set up your environment locally in the folder build with:
source local_env
To use the package
find_package(Mmxlight) include_directories (${MMXLIGHT_INCLUDE_DIR}) link_libraries (${MMXLIGHT_LIBRARIES}) link_library_dir (${MMXLIGHT_LIBRARY_DIR})