mozul created page: compilation authored by Rémy Mozul's avatar Rémy Mozul
# Compilation #
After downloading or updating you must have the `lmgc90_user` directory somewhere. Inside, you should have the following
subdirectories:
* *src* : the sources of LMGC90 software
* *examples* : the user examples working with the sources
* *manuals* : a list of manuals/documentation for the software in pdf format
* *docs* : the html documentation generated from the sources
The first step of the *compilation* is only to create an other subdirectory there callde `build`.
Then depending on your operating system follow the directions:
* [Unix/MacOs] (#compile)
* [Windows] (#precompiled)
## <a name=compile> Unix and MacOs </a> ##
You must a set of commands from the terminal to build LMGC90 software for your system.
Thus open a terminal and go to your `lmgc90_user/build` directory.
Run the following commands:
```shell
cmake ..
make
```
Instead of simply running `cmake`, you can run `ccmake` or `cmake-gui` to help change some
configuration parameters. For examples people interested only in rigid computation can change
the configuration to:
```shell
cmake . -DMATLIB_VERSION=none -DSPARSE_LIBRARY=none
make
```
If you want to re-build the documentation run:
```shell
make docs
```
It will build the sphinx documentation in:
* docs/chipy/
* docs/dev/
* docs/Pre/
But the one provided shoud be up-to-date
## <a name=precompiled> Windows </a> ##
For Windows operating systems, a pre-compiled version is provided. Depending on the version of Anaconda you downloaded
(from [here](https://git-xen.lmgc.univ-montp2.fr/lmgc90/lmgc90_user/wikis/win_dependencies_install))
choose the corresponding binaries of LMGC90:
* [32 bits](https://mycore.core-cloud.net/public.php?service=files&t=9bb2e3561373c64a4855596873aa98bd)
* [64 bits](https://mycore.core-cloud.net/public.php?service=files&t=9525fc1c270aaddf7e8eae96214f4b49)
Then unzip the downloaded in the `lmgc90_user/build` directory. It should create a `pylmgc90-xxxx-py27` (where `xxxx`
is to replaced by `i686` or `x86_64` depending on the downloaded version).