@@ -165,7 +165,65 @@ the Git window select "Clone Existing Repository".
165165
166166 The Git GUI to clone repositories
167167
168- We are starting with Eigen3, so in the first box of the window that pops up set
168+ As a default, MoorDyn uses the Egien package that is internal in the source code.
169+ If you would like to use an external copy of Eigen, please follow the instructions
170+ in the :ref: `installing with external eigen <external_eigen >` note at this point.
171+
172+ We will install MoorDyn following a very similar process.
173+ Launch CMake again, and set "C:\M oorDyn\M oorDyn" in the source box and
174+ "C:\M oorDyn\M oorDyn.build" in the binaries box, clicking "Configure" afterwards.
175+ Select again the "MinGW Makefiles" for the generator.
176+ When the configuration options appear, set CMAKE_BUILD_TYPE as "Release", and
177+ enable FORTRAN_WRAPPER and PYTHON_WRAPPER:
178+
179+ .. figure :: win_cmake_moordyn.png
180+ :alt: Configuration options for MoorDyn
181+
182+ Configuration options for MoorDyn
183+
184+ You can also enable MATLAB_WRAPPER if you have MATLAB installed in your system.
185+ We are ready, click "Configure" once more and then "Generate".
186+
187+ Now go back to your Command Prompt from earlier (which has administrative rights), and
188+ type the following commands:
189+
190+ .. code-block :: bash
191+
192+ cd C:\M oorDyn\M oorDyn.build
193+ mingw32-make
194+ mingw32-make install
195+
196+ This will generate three libraries in the MoorDyn/build/source directory labeled
197+ libmoordyn, libmoordyn.2, and libmoordyn.2.2. The first two are symbolic links to the
198+ latter, setup that way for development purposes. In your project you should use
199+ libmoordyn.
200+
201+
202+ NOTE: If you want to generate a Windows installer, disable the PYTHON_WRAPPER
203+ option and type
204+
205+ .. code-block :: bash
206+
207+ cd C:\M oorDyn\M oorDyn.build
208+ mingw32-make
209+ cpack -C Release
210+
211+ NOTE: If you are working on a proxy serveryou may need to add the .crt file for your proxy
212+ configuration to the folder ``C:/msys64/etc/pki/ca-trust/source/anchors `` or equivalent for your
213+ system.
214+
215+ NOTE: You may need to upgrade or install the build tool using pip
216+
217+ .. code-block :: bash
218+
219+ \< path-to-python> /python< version> .exe -m pip install --upgrade build
220+
221+ NOTE: Installing External Eigen
222+
223+ .. _external_eigen :
224+
225+ To use an external copy of Eigen, ensure that the DEXTERNAL_EIGEN flag is turned on.
226+ In the first box of the window that pops up set
169227"https://gitlab.com/libeigen/eigen.git", and in the second "C:\M oorDyn\e igen":
170228
171229.. figure :: win_git_eigen.png
@@ -235,55 +293,6 @@ Now you just need to type the following commands:
235293
236294 We will need to use cmd with administrative rights later on, so do not close it.
237295
238- Now we will install MoorDyn following a very similar process.
239- Launch CMake again, and set "C:\M oorDyn\M oorDyn" in the source box and
240- "C:\M oorDyn\M oorDyn.build" in the binaries box, clicking "Configure" afterwards.
241- Select again the "MinGW Makefiles" for the generator.
242- When the configuration options appear, set CMAKE_BUILD_TYPE as "Release", and
243- enable FORTRAN_WRAPPER and PYTHON_WRAPPER:
244-
245- .. figure :: win_cmake_moordyn.png
246- :alt: Configuration options for MoorDyn
247-
248- Configuration options for MoorDyn
249-
250- You can also enable MATLAB_WRAPPER if you have MATLAB installed in your system.
251- We are ready, click "Configure" once more and then "Generate".
252-
253- Now go back to your Command Prompt from earlier (which has administrative rights), and
254- type the following commands:
255-
256- .. code-block :: bash
257-
258- cd C:\M oorDyn\M oorDyn.build
259- mingw32-make
260- mingw32-make install
261-
262- This will generate three libraries in the MoorDyn/build/source directory labeled
263- libmoordyn, libmoordyn.2, and libmoordyn.2.2. The first two are symbolic links to the
264- latter, setup that way for development purposes. In your project you should use
265- libmoordyn.
266-
267-
268- NOTE: If you want to generate a Windows installer, disable the PYTHON_WRAPPER
269- option and type
270-
271- .. code-block :: bash
272-
273- cd C:\M oorDyn\M oorDyn.build
274- mingw32-make
275- cpack -C Release
276-
277- NOTE: If you are working on a proxy serveryou may need to add the .crt file for your proxy
278- configuration to the folder ``C:/msys64/etc/pki/ca-trust/source/anchors `` or equivalent for your
279- system.
280-
281- NOTE: You may need to upgrade or install the build tool using pip
282-
283- .. code-block :: bash
284-
285- \< path-to-python> /python< version> .exe -m pip install --upgrade build
286-
287296Linux and Mac
288297^^^^^^^^^^^^^
289298
0 commit comments