Skip to content

Commit

Permalink
Update INSTALL_WIN.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
carsten-forty2 committed Oct 18, 2019
1 parent 2bc6c6e commit 9962fe8
Showing 1 changed file with 37 additions and 18 deletions.
55 changes: 37 additions & 18 deletions INSTALL_WIN.rst
Expand Up @@ -79,8 +79,9 @@ PATH.
e.g.:

.. code-block:: bash
export PATH=$PATH:/c/ProgramData/Anaconda3
export ANACONDA=/c/ProgramData/Anaconda3
export PATH=$PATH:$ANACONDA
This is necessary since gimli needs to know valid python installation and
version. Ideally the following one-liner will suffice to compile pyGIMLi in the
Expand All @@ -107,6 +108,7 @@ If something goes wrong, please take a look on the error message.

You can alse try the following instructions for manual installation.


Manual installation
...................

Expand Down Expand Up @@ -146,6 +148,39 @@ using the Unix makefile generator to find the correct gcc versions:
If cmake complains about missing python stuff, make sure the Python interpreter
is in your execution path.


Problems with cmake configuration
=================================

If cmake can't install pygccxml or pyplusplus then you can provide those packages using pip from the anaconda distribution.
First make sure the needed scripts are in your path.

.. code-block:: bash
export PATH=$PATH:$ANACONDA/Scripts
Then you can install those both packages in your user space

.. code-block:: bash
pip install pygccxml --user
pip install pyplusplus --user
If cmake complains about misssig numpy, python can't probably import numpy, which you can test:

.. code-block:: bash
python -c 'import numpy'
Probably anaconda additional needs another path setting, don't ask me why

.. code-block:: bash
export PATH=$PATH:$ANACONDA/Library/bin
Now python should be able to find numpy and cmake will work as supposed and you can continue the build process.


To build the library, just run

.. code-block:: bash
Expand Down Expand Up @@ -177,19 +212,3 @@ You can test the pygimli build with:
.. code-block:: bash
python -c 'import pygimli as pg; print(pg.version())'
Using cmake with CodeBlocks
...........................

Codeblocks is a nice C++ IDE available on http://www.codeblocks.org/downloads/

Tested versions 13.12/16.01, each without integrated mingw but a real MinGW/MSYS.

To generate the codeblocks project files run

.. code-block:: bash
cmake -G "CodeBlocks - MinGW Makefiles"
and open the libgimli.cbp with codeblocks. Set up your compiler and run Build All.

0 comments on commit 9962fe8

Please sign in to comment.