<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://sobereva.com/wfnbbs/extern.php?action=feed&amp;tid=670&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Multiwfn forum / Build GUI version under Windows]]></title>
		<link>http://sobereva.com/wfnbbs/viewtopic.php?id=670</link>
		<description><![CDATA[The most recent posts in Build GUI version under Windows.]]></description>
		<lastBuildDate>Mon, 16 May 2022 10:09:50 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Build GUI version under Windows]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=2499#p2499</link>
			<description><![CDATA[<p>Dear Igor,</p><p>Probably I have already updated the compilation document before due to the new implementation of libreta introduced some months ago (I don&#039;t remember clearly), the least document has the following content now:</p><div class="codebox"><pre class="vscroll"><code>===== Compile Multiwfn by Intel Visual Fortran in Windows 64bit system ======

In Windows platform, Multiwfn can only be compiled by Intel Visual Fortran. Below I describe how to compile Multiwfn using Intel Visual Fortran (version 2021.2.0) under Microsoft Visual Studio 2019, this is also the environment I am using for developing current Multiwfn version.

1 Boot up Visual Studio, create a new Intel Visual Fortran project named &quot;Multiwfn&quot; (Console Application - Empty Project), copy all content from Multiwfn source code package to the project folder, and then add all following files into &quot;Source Files&quot; of the current project:
all .F and .f90 files (including those in &quot;libreta_hybrid&quot; folder)
disifl_d.lib

2 &quot;Build&quot; - &quot;Configuration Manager&quot;, switch to &quot;Release&quot;, in &quot;Platform&quot; select &lt;New...&gt;, click &quot;OK&quot;, then click &quot;Close&quot;. Now compilation mode has been changed from the default Win32 to x64 (i.e. Windows 64bit).

3 Enter &quot;Project&quot; - &quot;Properties&quot;, choose &quot;Fortran&quot; tab, then
In &quot;General&quot; sub-tab, set &quot;Multi-process Compilation&quot; to &quot;Yes (/MP)&quot;
In &quot;Optimization&quot; sub-tab, set &quot;Enable Matrix Multiply Library Call&quot; to &quot;Yes&quot;.
In &quot;Preprocessor&quot; sub-tab, set &quot;Preprocess Source File&quot; to &quot;Yes (/fpp)&quot;.
In &quot;Code Generation&quot; sub-tab, set &quot;Enable Enhanced Instruction Set&quot; to &quot;Streaming SIMD Extensions 3&quot; (If your CPU supports AVX, set to &quot;Intel Advanced Vector Extensions&quot;)
In &quot;Language&quot; sub-tab, set &quot;Process OpenMP Directives&quot; to &quot;Generate Parallel Code (/Qopenmp)&quot;.
In &quot;Diagnostics&quot; sub-tab, set &quot;Disable Specific Diagnostics&quot; to &quot;8290,8291,6371,10316,6843&quot;.
In &quot;Libraries&quot; sub-tab, set &quot;Runtime Library&quot; to &quot;Multithread&quot;, set &quot;Use Intel Math Kernel Library&quot; to &quot;Parallel&quot;, set &quot;Use Common Windows Libraries&quot; to &quot;Yes&quot;.

4 Choose &quot;Linker&quot; tab, then
In &quot;Input&quot; sub-tab, write &quot;legacy_stdio_definitions.lib&quot; in the &quot;Additional Dependencies&quot; textbox.
In &quot;System&quot; sub-tab, set &quot;Stack Reserve Size&quot; sub-tab to &quot;1900000000&quot; (namely about 1.8GB). If you have large physical memory, you can set this value larger, so that larger system/wavefunction can be analyzed by Multiwfn without crashing.

5 Click &quot;blockhrr_012345.f90&quot; in Visual Studio by right mouse button, select &quot;Properties&quot;, enter &quot;Fortran&quot; - &quot;General&quot;, set &quot;Optimization&quot; to &quot;Minimize Size (/O1)&quot; (otherwise the compilation may take a few hours!)

6 Compiling this project by choosing &quot;Build&quot; - &quot;Build Solution&quot;. Error may encounter during the compliation, it doesn&#039;t matter, in this case clicking &quot;function.f90&quot; by right mouse button, select &quot;Compile&quot; to solely compile this file, and then choose &quot;Build&quot; - &quot;Build Solution&quot; again, the compilation should normally continue.

Compilation of blockhrr_012345.f90 is the most time-consuming step, it usually takes 10+ minutes.

Finally you will get &quot;x64\Release\Multiwfn.exe&quot; in the project folder. Then copy this file into Multiwfn binary package to overwrite the old one.</code></pre></div><p>Best, </p><p>Tian</p>]]></description>
			<author><![CDATA[dummy@example.com (sobereva)]]></author>
			<pubDate>Mon, 16 May 2022 10:09:50 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=2499#p2499</guid>
		</item>
		<item>
			<title><![CDATA[Re: Build GUI version under Windows]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=2498#p2498</link>
			<description><![CDATA[<p>Dear Tian Lu,</p><p>Thank you so much! I will have a look.</p><p>Best regards,<br />Igor</p>]]></description>
			<author><![CDATA[dummy@example.com (i.s.ger)]]></author>
			<pubDate>Mon, 16 May 2022 10:01:07 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=2498#p2498</guid>
		</item>
		<item>
			<title><![CDATA[Re: Build GUI version under Windows]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=2497#p2497</link>
			<description><![CDATA[<p>Dear Igor,</p><p>Please check Multiwfn_3.7_src_Win64.rar in download page of Multiwfn official site.<br />The way of compilation of Windows version is unchanged compared to version 3.7, only the source codes are updated.</p><p>Best regards,</p><p>Tian</p>]]></description>
			<author><![CDATA[dummy@example.com (sobereva)]]></author>
			<pubDate>Mon, 16 May 2022 09:58:25 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=2497#p2497</guid>
		</item>
		<item>
			<title><![CDATA[Build GUI version under Windows]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=2493#p2493</link>
			<description><![CDATA[<p>Dear Tian Lu,</p><p>How can I build Windows GUI version? Should I just link MultiWFN with <a href="https://www.dislin.de/downloads/win64/dl_11_ic.zip" rel="nofollow">https://www.dislin.de/downloads/win64/dl_11_ic.zip</a>?</p><p>Best regards,<br />Igor</p>]]></description>
			<author><![CDATA[dummy@example.com (i.s.ger)]]></author>
			<pubDate>Mon, 16 May 2022 05:27:15 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=2493#p2493</guid>
		</item>
	</channel>
</rss>
