<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Please, keep the list in copy.<div>You can get MSYS2 from <a href="https://www.msys2.org/">https://www.msys2.org/</a></div><div>Then install the following packages: <a href="https://github.com/FreeFem/FreeFem-sources/tree/master/etc/jenkins/deployRelease#windows-system">https://github.com/FreeFem/FreeFem-sources/tree/master/etc/jenkins/deployRelease#windows-system</a></div><div>Also install MS-MPI: <a href="https://www.microsoft.com/en-us/download/details.aspx?id=100593">https://www.microsoft.com/en-us/download/details.aspx?id=100593</a></div><div>Configure and compile PETSc under a MSYS2 MinGW x64 shell.</div><div>Compile your code, and copy the binary.</div><div>Notice in my screenshot that there are two shells, the MinGW one for building PETSc.</div><div>The Microsoft (native one) for launching the binary.</div><div><br></div><div>Thanks,</div><div>Pierre</div><div><br></div><div><img src="cid:B695E560-6A78-4BF5-AC40-4510062C3DE8" alt="Screenshot 2022-11-07 at 2.03.59 PM.png" width="640"><br><div><br><blockquote type="cite"><div>On 7 Nov 2022, at 1:53 PM, Mohammad Ali Yaqteen <mhyaqteen@sju.ac.kr> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Is there a guide for it? That would be very useful! Because I have been trying a lot of things but every now and then there is a little step that is either outdated or can’t run!<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Your help will be highly appreciated<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Thanks<span class="Apple-converted-space"> </span><o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Ali<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0in 0in;"><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><b>From:</b><span class="Apple-converted-space"> </span>Pierre Jolivet <pierre@joliv.et><span class="Apple-converted-space"> </span><br><b>Sent:</b><span class="Apple-converted-space"> </span>Monday, November 7, 2022 9:50 PM<br><b>To:</b><span class="Apple-converted-space"> </span>Mohammad Ali Yaqteen <mhyaqteen@sju.ac.kr><br><b>Cc:</b><span class="Apple-converted-space"> </span>petsc-users <petsc-users@mcs.anl.gov><br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [petsc-users] PETSc Windows Installation<o:p></o:p></div></div></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Or you can use MinGW, it’s not tricky, you don’t need to change any PETSc code, and you can ship .exe for either x86_64 (mingw-w64-x86_64-gcc) or ARM (mingw-w64-clang-aarch64-clang, without MPI).<o:p></o:p></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Thanks,<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Pierre<o:p></o:p></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><br><br><o:p></o:p></div><blockquote style="margin-top: 5pt; margin-bottom: 5pt;"><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">On 7 Nov 2022, at 1:38 PM, hamid badi <<a href="mailto:badi.hamid@gmail.com" style="color: blue; text-decoration: underline;">badi.hamid@gmail.com</a>> wrote:<o:p></o:p></div></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">You can try gcc/clang cross-compilers, it's a little but tricky, i had to change some petsc codes but it works fine.<o:p></o:p></div></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Le lun. 7 nov. 2022 à 13:30, Matthew Knepley <<a href="mailto:knepley@gmail.com" style="color: blue; text-decoration: underline;">knepley@gmail.com</a>> a écrit :<o:p></o:p></div></div><blockquote style="border-style: none none none solid; border-left-width: 1pt; border-left-color: rgb(204, 204, 204); padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;"><div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">On Mon, Nov 7, 2022 at 7:11 AM Mohammad Ali Yaqteen <<a href="mailto:mhyaqteen@sju.ac.kr" target="_blank" style="color: blue; text-decoration: underline;">mhyaqteen@sju.ac.kr</a>> wrote:<o:p></o:p></div></div><div><blockquote style="border-style: none none none solid; border-left-width: 1pt; border-left-color: rgb(204, 204, 204); padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;"><div><div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Once I finish writing the code, the .exe file will not change. Can I make an .exe file using WSL2 and VScode?<o:p></o:p></div></div></div></div></blockquote><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">If you build in WSL2, it will link to system libraries. You would probably need to run in WSL2 after that. If you are planning<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">on running on native Windows, you likely need to build there.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> Thanks,<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> Matt<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><blockquote style="border-style: none none none solid; border-left-width: 1pt; border-left-color: rgb(204, 204, 204); padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;"><div><div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Thanks,<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Ali<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0in 0in;"><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><b>From:</b><span class="Apple-converted-space"> </span>Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank" style="color: blue; text-decoration: underline;">knepley@gmail.com</a>><span class="Apple-converted-space"> </span><br><b>Sent:</b><span class="Apple-converted-space"> </span>Monday, November 7, 2022 7:13 PM<br><b>To:</b><span class="Apple-converted-space"> </span>Mohammad Ali Yaqteen <<a href="mailto:mhyaqteen@sju.ac.kr" target="_blank" style="color: blue; text-decoration: underline;">mhyaqteen@sju.ac.kr</a>><br><b>Cc:</b><span class="Apple-converted-space"> </span>petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank" style="color: blue; text-decoration: underline;">petsc-users@mcs.anl.gov</a>><br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [petsc-users] PETSc Windows Installation<o:p></o:p></div></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div><div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">On Mon, Nov 7, 2022 at 12:21 AM Mohammad Ali Yaqteen <<a href="mailto:mhyaqteen@sju.ac.kr" target="_blank" style="color: blue; text-decoration: underline;">mhyaqteen@sju.ac.kr</a>> wrote:<o:p></o:p></div></div><div><blockquote style="border-style: none none none solid; border-left-width: 1pt; border-left-color: rgb(204, 204, 204); padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt;"><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">I have written backend code for a software company. If WSL2 and VSCode(Linux) can be called through a command line and executed at the backend, then it will be great. But if I have to install WSL2 and other required things on every other PC that will run that software, then I think I will be at a disadvantage. What do you suggest?<o:p></o:p></div></blockquote><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">As long as you do not change the architecture and the compiler libraries are available, you can run the executable.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> Thanks,<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> Matt<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><blockquote style="border-style: none none none solid; border-left-width: 1pt; border-left-color: rgb(204, 204, 204); padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt;"><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 11pt; font-family: Calibri, sans-serif;">Thank you<br>Ali<br><br>-----Original Message-----<br>From: Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank" style="color: blue; text-decoration: underline;">balay@mcs.anl.gov</a>><span class="Apple-converted-space"> </span><br>Sent: Monday, November 7, 2022 12:00 AM<br>To: Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank" style="color: blue; text-decoration: underline;">knepley@gmail.com</a>><br>Cc: Mohammad Ali Yaqteen <<a href="mailto:mhyaqteen@sju.ac.kr" target="_blank" style="color: blue; text-decoration: underline;">mhyaqteen@sju.ac.kr</a>>;<span class="Apple-converted-space"> </span><a href="mailto:petsc-users@mcs.anl.gov" target="_blank" style="color: blue; text-decoration: underline;">petsc-users@mcs.anl.gov</a><br>Subject: Re: [petsc-users] PETSc Windows Installation<br><br>Likely the compilers are not setup correctly as per instructions.<br><br><a href="https://petsc.org/release/install/windows/#installation-with-microsoft-intel-windows-compilers" target="_blank" style="color: blue; text-decoration: underline;">https://petsc.org/release/install/windows/#installation-with-microsoft-intel-windows-compilers</a><br><br>And if you do not have a specific windows need - and only need IDE - perhaps a WSL2 (aka linux) install with VSCode(linux) might be the way to go.<br><br>Satish<br><br>On Sun, 6 Nov 2022, Matthew Knepley wrote:<br><br>> We need to see configure.log to see what is going on. Can you send it?<br>><span class="Apple-converted-space"> </span><br>> Thanks,<br>><span class="Apple-converted-space"> </span><br>> Matt<br>><span class="Apple-converted-space"> </span><br>> On Sun, Nov 6, 2022 at 4:29 AM Mohammad Ali Yaqteen<span class="Apple-converted-space"> </span><br>> <<a href="mailto:mhyaqteen@sju.ac.kr" target="_blank" style="color: blue; text-decoration: underline;">mhyaqteen@sju.ac.kr</a>><br>> wrote:<br>><span class="Apple-converted-space"> </span><br>> > Dear Sir/Madam,<br>> ><br>> ><br>> ><br>> > I am installing PETSc on windows but it keeps giving me unexpected errors.<br>> > I want to use it on MS Visual Studio or Codeblocks. When I use the<span class="Apple-converted-space"> </span><br>> > command on your webpage (./configure --with-cc='win32fe cl'<span class="Apple-converted-space"> </span><br>> > --with-fc='win32fe ifort' --with-cxx='win32fe cl' --with-mpi=0<span class="Apple-converted-space"> </span><br>> > --download-fblaslapack), I get the following error message:<br>> ><br>> ><br>> ><br>> > $ ./configure --with-cc='win32fe cl' --with-fc='win32fe ifort'<br>> > --with-cxx='win32fe cl' --with-mpi=0 --download-fblaslapack<br>> ><br>> ><br>> > ====================================================================<br>> > =========================<br>> ><br>> > Configuring PETSc to compile on your system<br>> ><br>> ><br>> > ====================================================================<br>> > =========================<br>> ><br>> > TESTING: checkCCompiler from<br>> > config.setCompilers(config/BuildSystem/config/setCompilers.py:1341)*<br>> > ********************************************************************<br>> > **********<br>> ><br>> > UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for<br>> > details):<br>> ><br>> ><br>> > --------------------------------------------------------------------<br>> > -----------<br>> ><br>> > C compiler you provided with -with-cc=win32fe cl cannot be found or<span class="Apple-converted-space"> </span><br>> > does not work.<br>> ><br>> > Cannot compile/link C with<br>> > /home/SEJONG/petsc-3.18.1/lib/petsc/bin/win32fe/win32fe cl.<br>> ><br>> ><br>> ><br>> > Kindly look into this problem! Your prompt response will highly be<span class="Apple-converted-space"> </span><br>> > appreciated<br>> ><br>> ><br>> ><br>> > Thank you<br>> ><br>> > Ali<br>> ><br>><span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><o:p></o:p></p></blockquote></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><br clear="all"><o:p></o:p></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">--<o:p></o:p></div><div><div><div><div><div><div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" style="color: blue; text-decoration: underline;">https://www.cse.buffalo.edu/~knepley/</a><o:p></o:p></div></div></div></div></div></div></div></div></div></div></div></div></blockquote></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><br clear="all"><o:p></o:p></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">--<span class="Apple-converted-space"> </span><o:p></o:p></div><div><div><div><div><div><div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" style="color: blue; text-decoration: underline;">https://www.cse.buffalo.edu/~knepley/</a></div></div></div></div></div></div></div></div></div></blockquote></div></div></blockquote></div></div></div></div></blockquote></div><br></div></body></html>