Skip to content

Commit 9962fe8

Browse files
Update INSTALL_WIN.rst
1 parent 2bc6c6e commit 9962fe8

File tree

1 file changed

+37
-18
lines changed

1 file changed

+37
-18
lines changed

INSTALL_WIN.rst

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ PATH.
7979
e.g.:
8080

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

108109
You can alse try the following instructions for manual installation.
109110

111+
110112
Manual installation
111113
...................
112114

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

151+
152+
Problems with cmake configuration
153+
=================================
154+
155+
If cmake can't install pygccxml or pyplusplus then you can provide those packages using pip from the anaconda distribution.
156+
First make sure the needed scripts are in your path.
157+
158+
.. code-block:: bash
159+
160+
export PATH=$PATH:$ANACONDA/Scripts
161+
162+
Then you can install those both packages in your user space
163+
164+
.. code-block:: bash
165+
166+
pip install pygccxml --user
167+
pip install pyplusplus --user
168+
169+
If cmake complains about misssig numpy, python can't probably import numpy, which you can test:
170+
171+
.. code-block:: bash
172+
173+
python -c 'import numpy'
174+
175+
Probably anaconda additional needs another path setting, don't ask me why
176+
177+
.. code-block:: bash
178+
179+
export PATH=$PATH:$ANACONDA/Library/bin
180+
181+
Now python should be able to find numpy and cmake will work as supposed and you can continue the build process.
182+
183+
149184
To build the library, just run
150185

151186
.. code-block:: bash
@@ -177,19 +212,3 @@ You can test the pygimli build with:
177212
.. code-block:: bash
178213
179214
python -c 'import pygimli as pg; print(pg.version())'
180-
181-
182-
Using cmake with CodeBlocks
183-
...........................
184-
185-
Codeblocks is a nice C++ IDE available on http://www.codeblocks.org/downloads/
186-
187-
Tested versions 13.12/16.01, each without integrated mingw but a real MinGW/MSYS.
188-
189-
To generate the codeblocks project files run
190-
191-
.. code-block:: bash
192-
193-
cmake -G "CodeBlocks - MinGW Makefiles"
194-
195-
and open the libgimli.cbp with codeblocks. Set up your compiler and run Build All.

0 commit comments

Comments
 (0)