Skip to content

Commit 29cb2e2

Browse files
authored
Update Cygwin-Build-for-Windows.md
I had a hard time to figure everything out, so I thought it could be posted here. Probably I forgot one or the other step, but the majority should be covered. Some reformatting might be needed. Best regards, Andreas
1 parent 5681189 commit 29cb2e2

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

_docs/Cygwin-Build-for-Windows.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,64 @@ At the package selection step, search for the following terms and select the ass
2424
* python: install the packages under the python sub-heading
2525
* cpp: all debug, pre-processor, regular expression packages.
2626

27+
#### Example SU2 installation on WINDOWS 10 using 64-bit Cygwin
28+
The shell used for all command line steps is the the default Cygwin bash shell.
29+
30+
1) Install CYGWIN (64-bit version)
31+
a) Download and run https://www.cygwin.com/setup-x86_64.exe
32+
b) Install development tools (also 64-bit versions):
33+
i) gcc, gfortran, python3.7, openmpi, automake, libtools, autoconf, etc.
34+
ii) python-configobj needs to be installed for the same python version
35+
(Python module for handling config files)
36+
often there are installation problems (not yet figured out when and why)
37+
after installation it should reside in the folder /usr/bin as shown below
38+
iii) folder /usr/bin as it should be for python3.7 and python-config
39+
lrwxrwxrwx 1 Andreas None 14 17. Mrz 19:29 /usr/bin/python3.7 -> python3.7m.exe
40+
-rwxr-xr-x 1 Andreas None 3,3K 17. Mrz 19:46 /usr/bin/python3.7-config
41+
-rwxr-xr-x 1 Andreas None 9,1K 15. Feb 10:05 /usr/bin/python3.7m.exe
42+
-rwxr-xr-x 1 Andreas None 3,3K 17. Mrz 19:46 /usr/bin/python3.7m-config
43+
44+
2) Set Python version for the installation process
45+
export PYTHON=/usr/bin/python3.7
46+
47+
3) Goto folder where the SU2 source distribtution has been unzipped
48+
a) download the SU2 source installation file for version 6.2.0
49+
https://github.com/su2code/SU2/archive/v6.2.0.tar.gz
50+
b) unzip and untar
51+
c) change into the folder where files were untarred
52+
NOTE: this is later (see step 7) the folder where the SU2_HOME variable points to
53+
54+
4) Launch following configure command:
55+
NOTE: didn't get tecio working, therefore disabled with --disable-tecio
56+
NOTE: "--enable-mpi-cxx" instead of "--enable-mpi"
57+
(see http://cygwin.1069669.n5.nabble.com/libmpi-cxx-dll-a-missing-td142324.html)
58+
59+
./configure --prefix=path_where_you_want_the_Executables --disable-tecio --enable-mpi-cxx CXXFLAGS=-O3
60+
61+
5) Compile and link using:
62+
make
63+
64+
6) Not really needed (if a setup like in 7 is used)
65+
make install
66+
67+
7) Add the $SU2_HOME and $SU2_RUN environment variables to ~/.bashrc (and "source ~/.bashrc")
68+
69+
export SU2_RUN="path_where_you_want_the_Executables" (use same folder here as in the configure command above)
70+
export SU2_HOME="/d/software/CFD/SU2/SU2-6.2.0" <-- UPDATE THIS folder to your environment
71+
export PATH=$PATH:$SU2_RUN
72+
export PYTHONPATH=$PYTHONPATH:$SU2_RUN
73+
74+
8) cd to the QuickStart folder and try serial and parallel versions
75+
76+
SERIAL command:
77+
78+
SU2_CFD.exe inv_NACA0012.cfg
79+
80+
PARALLEL command:
81+
(mpirun and mpiexec should be the same; mpiexec recommended as standard command)
82+
(-oversubscribe allows more processes than cores)
83+
(although I have 8 cores, even with "-n 6" I had to use the option)
84+
(otherwise I got: There are not enough slots available in the system ...)
85+
86+
mpiexec -n 6 -oversubscribe SU2_CFD.exe inv_NACA0012.cfg
87+

0 commit comments

Comments
 (0)