Changes
Page history
No longer use git to download
authored
May 05, 2017
by
Rémy Mozul
Hide whitespace changes
Inline
Side-by-side
compilation.md
View page @
8d9676a6
# Compilation #
After downloading
or updat
ing you must have the
`lmgc90_user`
directory somewhere. Inside, you should have the following
After downloading
and uncompress
ing 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 called
`build`
.
*
*build*
: (windows only) the precompiled binary of LMGC90 software
Then depending on your operating system follow the directions:
*
[Unix/MacOs] (#compile)
...
...
@@ -19,10 +18,12 @@ in the [FAQ](Faq#compile_error)
## <a name=compile> Unix and MacOs </a> ##
You must run 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.
Thus open a terminal and go to your
`lmgc90_user`
directory.
Run the following commands:
```
shell
mkdir
build
cd
build
cmake ..
make
```
...
...
@@ -67,18 +68,9 @@ export PATH=${PATH}:mysourcepath/src/addons
## <a name=precompiled> Windows </a> ##
For Windows operating system, 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).
Finally start the
`Spyder`
program. Then click on the upper line
`tools`
and
`PYTHONPATH manager`
.
Then click
`Add a path`
on lower left corner and select the path to the directory
previously unzipped (
*.../lmgc90_user/build/pylmgc90-xxxx-py27*
).
Start the
`Spyder`
program. Then click on the upper line
`tools`
and
`PYTHONPATH manager`
.
Then click
`Add a path`
on lower left corner and select the path to the
`build`
directory
of the previously unzipped package (
*.../lmgc90_user/build*
).
Finally, so that the previous step is taken into account in your current environment, simply restart
`Spyder`
program.
\ No newline at end of file