Changes
Page history
Update compilation
authored
May 04, 2020
by
Rémy Mozul
Hide whitespace changes
Inline
Side-by-side
compilation.md
View page @
5eda5d17
...
@@ -69,33 +69,39 @@ On the use of LMGC90 itself, read the [first steps](./first_steps) section.
...
@@ -69,33 +69,39 @@ On the use of LMGC90 itself, read the [first steps](./first_steps) section.
## Windows Anaconda ##
## Windows Anaconda ##
Open an Anaconda prompt
Open an Anaconda prompt and activate the
*lmgc90*
environment
(or whatever the name you choose during the
[
dependencies installation
](
./win_dependencies_install#by-using-python-anaconda-environment-manager
)
step) with the following command:
```
cmd
conda activate lmgc90
```
Move to
`lmgc90_user_xxxx`
folder with
`cd`
command
Move to
`lmgc90_user_xxxx`
folder with
`cd`
command
Then you have to set up an environment, with some required packages, that will allow to build lmgc90.
To build lmgc90 the following commands must be carefully issued:
Run the following command:
```
cmd
```
cmd
conda create -n lmgc90 python=3.7
conda activate lmgc90
conda install m2w64-gcc-fortran m2w64-make m2w64-openblas libpython
conda install swig cmake=3.9.4
conda install numpy scipy matplotlib vtk
cd build
cd build
cmake .. -DVENV_PATH=%CONDA_PREFIX% -G "MinGW Makefiles"
cmake .. -DVENV_PATH=%CONDA_PREFIX% -G "MinGW Makefiles"
mingw32-make install
mingw32-make install
..\finalize_conda_env.bat
..\finalize_conda_env.bat
```
```
Then you can start the _Anaconda Navigator_ application.
If you made any mistake, it is recommended to close the prompt, to
delete the content of the build directory and start again from scratch.
It is especially important TO NOT RUN the
`cmake`
command from the
`lmgc90_user_xxxx`
directory (see the
[
faq
](
./faq#known-compilation-errors
)
in this case.
If everything went well, then you can start the _Anaconda Navigator_ application.
The first thing is to activate the environment to use LMGC90 by
The first thing is to activate the environment to use LMGC90 by
selection _lmgc90_ in the menu next to _Applications on_ on the upper part of the window.
selection _lmgc90_ in the menu next to _Applications on_ on the upper part of the window.
Then start spyder for example to start using python.
Then start spyder or jupyter notebook application for example to start using python
with lmgc90 python module available.
On the use of LMGC90 itself, read the
[
first steps
](
./first_steps
)
section.
On the use of LMGC90 itself, read the
[
first steps
](
./first_steps
)
section.
****
****
|
[
back
](
./Download_and_install
)
|
[
home
](
./Home
)
|
[
next
](
./First_steps
)
|
|
[
back
](
./Download_and_install
)
|
[
home
](
./Home
)
|
[
next
](
./First_steps
)
|
|:--------------------------|:--------------:|-----------------:|
|:--------------------------
-----
|:--------------:|-----------------:|