<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mudlet.org/index.php?action=history&amp;feed=atom&amp;title=Some_bash_scripts</id>
	<title>Some bash scripts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mudlet.org/index.php?action=history&amp;feed=atom&amp;title=Some_bash_scripts"/>
	<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;action=history"/>
	<updated>2026-06-15T03:17:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=21539&amp;oldid=prev</id>
		<title>Slysven: /*Update scripts*/ Rename an environmental variable that is already used elsewhere</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=21539&amp;oldid=prev"/>
		<updated>2024-04-13T22:28:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Update scripts: &lt;/span&gt; Rename an environmental variable that is already used elsewhere&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:28, 13 April 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Close that terminal because it is the wrong one for Mudlet right now. We will be using one of the other types either MING64 for 64-Bit builds or MINGW32 for 32-Bit one. For the details on the differences refer to [https://www.msys2.org/docs/environments/ MSYS2 environments]. Open (you will find them on your Start menu) one of &amp;#039;&amp;#039;those&amp;#039;&amp;#039; two types of terminal as appropriate for what is wanted, you should find it will open in your MSYS2 &amp;quot;home&amp;quot; directory denoted by a &amp;lt;tt&amp;gt;~&amp;lt;/tt&amp;gt; character - in reality it is likely to be &amp;lt;tT&amp;gt;C:\msys64\home\YourWindows UserName&amp;lt;/tT&amp;gt;, however if your name cannot be represented in ASCII or maybe Latin-1 characters or if it has spaces in it then &amp;#039;&amp;#039;your mileage may vary&amp;#039;&amp;#039; going onwards!&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Close that terminal because it is the wrong one for Mudlet right now. We will be using one of the other types either MING64 for 64-Bit builds or MINGW32 for 32-Bit one. For the details on the differences refer to [https://www.msys2.org/docs/environments/ MSYS2 environments]. Open (you will find them on your Start menu) one of &amp;#039;&amp;#039;those&amp;#039;&amp;#039; two types of terminal as appropriate for what is wanted, you should find it will open in your MSYS2 &amp;quot;home&amp;quot; directory denoted by a &amp;lt;tt&amp;gt;~&amp;lt;/tt&amp;gt; character - in reality it is likely to be &amp;lt;tT&amp;gt;C:\msys64\home\YourWindows UserName&amp;lt;/tT&amp;gt;, however if your name cannot be represented in ASCII or maybe Latin-1 characters or if it has spaces in it then &amp;#039;&amp;#039;your mileage may vary&amp;#039;&amp;#039; going onwards!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Meanwhile download the scripts zipped up in this archive file: https://wiki.mudlet.org/images/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;b&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;bb&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mudlet_windows_build_scripts_1_4&lt;/del&gt;.zip and unzip them into a convenient location where they can be run from (most simply it could be one of the locations show in your path - type &amp;lt;tt&amp;gt;echo $PATH&amp;lt;/tt&amp;gt; in the terminal window to see what those are; typically the likely location would be to put them in a &amp;lt;tt&amp;gt;~/bin&amp;lt;/tt&amp;gt; directory, though they can be anywhere if the full path to where they are compared to the current location in the file-system is given). Using &amp;lt;tt&amp;gt;ls -l&amp;lt;/tt&amp;gt; in the chosen location check that they have execution permissions, signified by the &amp;#039;x&amp;#039;s in the attributes to the left in the listing output:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Meanwhile download the scripts zipped up in this archive file: https://wiki.mudlet.org/images/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;d&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;d7&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Mudlet_windows_build_scripts_1_5&lt;/ins&gt;.zip and unzip them into a convenient location where they can be run from (most simply it could be one of the locations show in your path - type &amp;lt;tt&amp;gt;echo $PATH&amp;lt;/tt&amp;gt; in the terminal window to see what those are; typically the likely location would be to put them in a &amp;lt;tt&amp;gt;~/bin&amp;lt;/tt&amp;gt; directory, though they can be anywhere if the full path to where they are compared to the current location in the file-system is given). Using &amp;lt;tt&amp;gt;ls -l&amp;lt;/tt&amp;gt; in the chosen location check that they have execution permissions, signified by the &amp;#039;x&amp;#039;s in the attributes to the left in the listing output:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;small&amp;gt;&amp;lt;tt&amp;gt;stephen@Hunt MINGW64 ~/bin&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;small&amp;gt;&amp;lt;tt&amp;gt;stephen@Hunt MINGW64 ~/bin&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-21537:rev-21539 --&gt;
&lt;/table&gt;</summary>
		<author><name>Slysven</name></author>
	</entry>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=21537&amp;oldid=prev</id>
		<title>Slysven: Up</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=21537&amp;oldid=prev"/>
		<updated>2024-04-13T22:23:07Z</updated>

		<summary type="html">&lt;p&gt;Up&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:23, 13 April 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot; &gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Until the Lua 5.4 version (currently) of the &amp;#039;&amp;#039;luafilesystem&amp;#039;&amp;#039; rock is installed, the &amp;lt;tt&amp;gt;luarocks&amp;lt;/tt&amp;gt; program (and the related &amp;lt;tt&amp;gt;luarocks-admin&amp;lt;/tt&amp;gt;) will both use a built-in Windows &amp;lt;tt&amp;gt;CMD.EXE MKDIR&amp;lt;/tt&amp;gt; command to create directories - and that is not capable of creating missing &amp;quot;intermediate&amp;quot; directories, unlike the MSYS &amp;lt;tt&amp;gt;bash&amp;lt;/tt&amp;gt; shell whose &amp;lt;tt&amp;gt;mkdir -p&amp;lt;/tt&amp;gt; will do so silently and without complaint. So before using the &amp;lt;tt&amp;gt;luarocks&amp;lt;/tt&amp;gt; command to &amp;lt;tt&amp;gt;build&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;install&amp;lt;/tt&amp;gt; any Lua 5.&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; version modules for Mudlet to use, the 5.&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; &amp;lt;tt&amp;gt;luafilesystem&amp;lt;/tt&amp;gt; rock must be inserted into the system which may take more than one attempt with creating sub-directories needed that it cannot do itself whilst using it&amp;#039;s defective native Windows command to create a directory.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Until the Lua 5.4 version (currently) of the &amp;#039;&amp;#039;luafilesystem&amp;#039;&amp;#039; rock is installed, the &amp;lt;tt&amp;gt;luarocks&amp;lt;/tt&amp;gt; program (and the related &amp;lt;tt&amp;gt;luarocks-admin&amp;lt;/tt&amp;gt;) will both use a built-in Windows &amp;lt;tt&amp;gt;CMD.EXE MKDIR&amp;lt;/tt&amp;gt; command to create directories - and that is not capable of creating missing &amp;quot;intermediate&amp;quot; directories, unlike the MSYS &amp;lt;tt&amp;gt;bash&amp;lt;/tt&amp;gt; shell whose &amp;lt;tt&amp;gt;mkdir -p&amp;lt;/tt&amp;gt; will do so silently and without complaint. So before using the &amp;lt;tt&amp;gt;luarocks&amp;lt;/tt&amp;gt; command to &amp;lt;tt&amp;gt;build&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;install&amp;lt;/tt&amp;gt; any Lua 5.&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; version modules for Mudlet to use, the 5.&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; &amp;lt;tt&amp;gt;luafilesystem&amp;lt;/tt&amp;gt; rock must be inserted into the system which may take more than one attempt with creating sub-directories needed that it cannot do itself whilst using it&amp;#039;s defective native Windows command to create a directory.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Finally this script checks for a &amp;lt;tt&amp;gt;~/src/mudlet&amp;lt;/tt&amp;gt; directory, and if one is not found it will clone the current [https://github.com/Mudlet/Mudlet.git main Mudlet repository] into that location. As things are currently configured this will checkout the current &amp;#039;&amp;#039;development&amp;#039;&amp;#039; branch code. If the directory already exists than this step is skipped.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Finally this script checks for a &amp;lt;tt&amp;gt;~/src/mudlet&amp;lt;/tt&amp;gt; directory, and if one is not found it will clone the current [https://github.com/Mudlet/Mudlet.git main Mudlet repository] into that location. As things are currently configured this will checkout the current &amp;#039;&amp;#039;development&amp;#039;&amp;#039; branch code. If the directory already exists than this step is skipped&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, so should a different branch be desired to be built it should be sufficient to checkout (and edit if wanted) the code before running the next script&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Next it will be necessary to run the &amp;lt;tt&amp;gt;build-mudlet-for-windows.sh&amp;lt;/tt&amp;gt; which will create a &amp;lt;tt&amp;gt;~/src/mudlet/build-MINGW32&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;~/src/mudlet/build-MINGW64&amp;lt;/tt&amp;gt; directory as per the terminal type it is being run from. However the script needs to know whether to make a &amp;#039;&amp;#039;release&amp;#039;&amp;#039; or a &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; type build which is to be specified by setting the environmental variable &amp;lt;tt&amp;gt;BUILD_TYPE&amp;lt;/tt&amp;gt; to either &amp;lt;tt&amp;gt;release&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;debug&amp;lt;/tt&amp;gt; - it will check and abort if that has not been done. After that, it configures some other environmental variables appropriate to the Mudlet build being done {specifically &amp;lt;tt&amp;gt;WITH_OWN_QTKEYCHAIN&amp;lt;/tt&amp;gt; as the MINGW64 environment already has that packaged but the MINGW32 does not; &amp;lt;tt&amp;gt;WITH_UPDATER&amp;lt;/tt&amp;gt; is set to &amp;lt;tt&amp;gt;NO&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;WITH_MAIN_BUILD_SYSTEM&amp;lt;/tt&amp;gt; is also set to &amp;lt;tt&amp;gt;NO&amp;lt;/tt&amp;gt; as this is the precise environment (MSYS2/Mingw-w64) for which that option exists!} and then runs &amp;lt;tt&amp;gt;qmake&amp;lt;/tt&amp;gt; to create the required &amp;#039;&amp;#039;MAKEFILE&amp;#039;&amp;#039;s. If it is intended to do development work in this setup it is possible to use the &amp;lt;tt&amp;gt;ccache&amp;lt;/tt&amp;gt; utility to cache compilation results which is ideal when switching between different points in the &amp;lt;tt&amp;gt;git&amp;lt;/tt&amp;gt; repository. It has been found that setting the &amp;lt;tt&amp;gt;QMAKE_CC&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;QMAKE_CXX&amp;lt;/tt&amp;gt; &amp;#039;&amp;#039;qmake&amp;#039;&amp;#039; variables to &amp;lt;tt&amp;gt;ccache gcc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ccache g++&amp;lt;/tt&amp;gt; in the appropriate place inside the &amp;#039;&amp;#039;Qt Creator&amp;#039;&amp;#039; project tab so that they appear in the &amp;#039;&amp;#039;effective qmake&amp;#039;&amp;#039; call is sufficient to get that tool working:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Next it will be necessary to run the &amp;lt;tt&amp;gt;build-mudlet-for-windows.sh&amp;lt;/tt&amp;gt; which will create a &amp;lt;tt&amp;gt;~/src/mudlet/build-MINGW32&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;~/src/mudlet/build-MINGW64&amp;lt;/tt&amp;gt; directory as per the terminal type it is being run from. However the script needs to know whether to make a &amp;#039;&amp;#039;release&amp;#039;&amp;#039; or a &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; type build which is to be specified by setting the environmental variable &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;tt&amp;gt;BUILD_CONFIG&amp;lt;/tt&amp;gt; (was &lt;/ins&gt;&amp;lt;tt&amp;gt;BUILD_TYPE&amp;lt;/tt&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;in versions prior to 1.5.0 but that clashed with Mudlet&amp;#039;s own CI/CB processes that also used a variable with that name for a different purpose) &lt;/ins&gt;to either &amp;lt;tt&amp;gt;release&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;debug&amp;lt;/tt&amp;gt; - it will check and abort if that has not been done. After that, it configures some other environmental variables appropriate to the Mudlet build being done {specifically &amp;lt;tt&amp;gt;WITH_OWN_QTKEYCHAIN&amp;lt;/tt&amp;gt; as the MINGW64 environment already has that packaged but the MINGW32 does not; &amp;lt;tt&amp;gt;WITH_UPDATER&amp;lt;/tt&amp;gt; is set to &amp;lt;tt&amp;gt;NO&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;WITH_MAIN_BUILD_SYSTEM&amp;lt;/tt&amp;gt; is also set to &amp;lt;tt&amp;gt;NO&amp;lt;/tt&amp;gt; as this is the precise environment (MSYS2/Mingw-w64) for which that option exists!} and then runs &amp;lt;tt&amp;gt;qmake&amp;lt;/tt&amp;gt; to create the required &amp;#039;&amp;#039;MAKEFILE&amp;#039;&amp;#039;s. If it is intended to do development work in this setup it is possible to use the &amp;lt;tt&amp;gt;ccache&amp;lt;/tt&amp;gt; utility to cache compilation results which is ideal when switching between different points in the &amp;lt;tt&amp;gt;git&amp;lt;/tt&amp;gt; repository. It has been found that setting the &amp;lt;tt&amp;gt;QMAKE_CC&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;QMAKE_CXX&amp;lt;/tt&amp;gt; &amp;#039;&amp;#039;qmake&amp;#039;&amp;#039; variables to &amp;lt;tt&amp;gt;ccache gcc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ccache g++&amp;lt;/tt&amp;gt; in the appropriate place inside the &amp;#039;&amp;#039;Qt Creator&amp;#039;&amp;#039; project tab so that they appear in the &amp;#039;&amp;#039;effective qmake&amp;#039;&amp;#039; call is sufficient to get that tool working:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Using ccache in Qt Creator in Windows in a MINGW32 or 64 environment.png|frame 200x150px left|Using ccache in Qt Creator in Windows in a MINGW32 or 64 environment]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Using ccache in Qt Creator in Windows in a MINGW32 or 64 environment.png|frame 200x150px left|Using ccache in Qt Creator in Windows in a MINGW32 or 64 environment]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;However, the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;same does NOT work &lt;/del&gt;when using &amp;lt;tt&amp;gt;qmake&amp;lt;/tt&amp;gt; directly from a shell script.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;However, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;to get &lt;/ins&gt;the when using &amp;lt;tt&amp;gt;qmake&amp;lt;/tt&amp;gt; directly from a shell &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;script a little manipulation of the &amp;#039;&amp;#039;MAKEFILES&amp;#039;&amp;#039; is needed and will be carried out by the &lt;/ins&gt;script.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;After producing the makefile it will then run the &amp;lt;tt&amp;gt;mingw32-make&amp;lt;/tt&amp;gt; command - which has that name for &amp;#039;&amp;#039;both&amp;#039;&amp;#039; MINGW32 and MINGW64 cases but is a different command from a different location in each. This should then compile and link all the object files for the selected build type. Due to the way that &amp;lt;tt&amp;gt;qmake&amp;lt;/tt&amp;gt; functions in a MSYS2/Mingw-w64 environment &amp;#039;&amp;#039;release&amp;#039;&amp;#039; and &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; builds are built in separate subdirectories of the &amp;#039;&amp;#039;build&amp;#039;&amp;#039; one which is at the same level as the &amp;#039;&amp;#039;source&amp;#039;&amp;#039; code. This is accounted for already in various internal file location dependent places and should not prove to be an issue (this can be researched in more detail by consulting the Qt Documentation about the [https://doc.qt.io/qt-5/qmake-variable-reference.html#config CONFIG] variable, specifically the &amp;lt;tt&amp;gt;debug_and_release_target&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;debug_and_release&amp;lt;/tt&amp;gt; values which both default to being used in this environment. If the machine on which the build is being done is detected to have more than one processor cores then the make will be done using all of them and will also have the &amp;lt;tt&amp;gt;-k&amp;lt;/tt&amp;gt; option set so that it keeps going to build as much as possible even if one or more files fail to compile.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;After producing the makefile it will then run the &amp;lt;tt&amp;gt;mingw32-make&amp;lt;/tt&amp;gt; command - which has that name for &amp;#039;&amp;#039;both&amp;#039;&amp;#039; MINGW32 and MINGW64 cases but is a different command from a different location in each. This should then compile and link all the object files for the selected build type. Due to the way that &amp;lt;tt&amp;gt;qmake&amp;lt;/tt&amp;gt; functions in a MSYS2/Mingw-w64 environment &amp;#039;&amp;#039;release&amp;#039;&amp;#039; and &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; builds are built in separate subdirectories of the &amp;#039;&amp;#039;build&amp;#039;&amp;#039; one which is at the same level as the &amp;#039;&amp;#039;source&amp;#039;&amp;#039; code. This is accounted for already in various internal file location dependent places and should not prove to be an issue (this can be researched in more detail by consulting the Qt Documentation about the [https://doc.qt.io/qt-5/qmake-variable-reference.html#config CONFIG] variable, specifically the &amp;lt;tt&amp;gt;debug_and_release_target&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;debug_and_release&amp;lt;/tt&amp;gt; values which both default to being used in this environment. If the machine on which the build is being done is detected to have more than one processor cores then the make will be done using all of them and will also have the &amp;lt;tt&amp;gt;-k&amp;lt;/tt&amp;gt; option set so that it keeps going to build as much as possible even if one or more files fail to compile.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Finally, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;one &lt;/del&gt;the build has been successfully completed the final script &amp;lt;tt&amp;gt;package-mudlet-for-windows.sh&amp;lt;/tt&amp;gt; will copy the &amp;lt;tt&amp;gt;mudlet.exe&amp;lt;/tt&amp;gt; file (and the &amp;lt;tt&amp;gt;mudlet.exe.debug&amp;lt;/tt&amp;gt; file for a &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; type build) and place them in a directory &amp;lt;tt&amp;gt;~/src/mudlet/package-MINGW32|MINGW64-release|debug&amp;lt;/tt&amp;gt; as appropriate and copy in all the other files that will be needed to run the Mudlet application in a stand-alone manner, even on another machine that does not have a MSYS2/Mingw-w64 installation. In the case of debug builds it also includes the &amp;lt;tt&amp;gt;.debug&amp;lt;/tt&amp;gt; files for the Qt5 library files so that in the event of a crash in the main Mudlet code or the Qt framework it should be possible to identify the details of that crash. This is an advance over our current Windows builds. The downside to this is that, even after compressing all the files into an archive file that will be constructed in that directory (called &amp;lt;tt&amp;gt;Mudlet-MINGW32.zip&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Mudlet-MINGW64.zip&amp;lt;/tt&amp;gt; for the &amp;#039;&amp;#039;release&amp;#039;&amp;#039; builds or &amp;lt;tt&amp;gt;Mudlet-MINGW32-debug.zip&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Mudlet-MINGW64-debug.zip&amp;lt;/tt&amp;gt;) the &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; versions are significantly larger e.g. for a build of recent &amp;#039;&amp;#039;development&amp;#039;&amp;#039; branch code in 64-Bits the &amp;#039;&amp;#039;release&amp;#039;&amp;#039; archive file was 62 MBytes but the &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; one was 400MByte!&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Finally, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;once &lt;/ins&gt;the build has been successfully completed the final script &amp;lt;tt&amp;gt;package-mudlet-for-windows.sh&amp;lt;/tt&amp;gt; will copy the &amp;lt;tt&amp;gt;mudlet.exe&amp;lt;/tt&amp;gt; file (and the &amp;lt;tt&amp;gt;mudlet.exe.debug&amp;lt;/tt&amp;gt; file for a &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; type build) and place them in a directory &amp;lt;tt&amp;gt;~/src/mudlet/package-MINGW32|MINGW64-release|debug&amp;lt;/tt&amp;gt; as appropriate and copy in all the other files that will be needed to run the Mudlet application in a stand-alone manner, even on another machine that does not have a MSYS2/Mingw-w64 installation. In the case of debug builds it also includes the &amp;lt;tt&amp;gt;.debug&amp;lt;/tt&amp;gt; files for the Qt5 library files so that in the event of a crash in the main Mudlet code or the Qt framework it should be possible to identify the details of that crash. This is an advance over our current Windows builds. The downside to this is that, even after compressing all the files into an archive file that will be constructed in that directory (called &amp;lt;tt&amp;gt;Mudlet-MINGW32.zip&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Mudlet-MINGW64.zip&amp;lt;/tt&amp;gt; for the &amp;#039;&amp;#039;release&amp;#039;&amp;#039; builds or &amp;lt;tt&amp;gt;Mudlet-MINGW32-debug.zip&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Mudlet-MINGW64-debug.zip&amp;lt;/tt&amp;gt;) the &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; versions are significantly larger e.g. for a build of recent &amp;#039;&amp;#039;development&amp;#039;&amp;#039; branch code in 64-Bits the &amp;#039;&amp;#039;release&amp;#039;&amp;#039; archive file was 62 MBytes but the &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; one was 400MByte!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Note: to work on or run Mudlet within the Qt Creator IDE it now seems to require some configuration of the LUA_PATH and LUA_CPATH environmental variables to point at the correct places to find the Lua 5,1 modules installed directly and via the Luarocks utility. Failing to have that configured will show up as a failure to build the UI translation files (and analyse how complete each one is) during the running of &amp;#039;&amp;#039;qmake&amp;#039;&amp;#039; and also by error messages in red and yellow on the main console in Mudlet when a profile is opened within it. Further investigations and documentation is needed by the author or other interested parties.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-20485:rev-21537 --&gt;
&lt;/table&gt;</summary>
		<author><name>Slysven</name></author>
	</entry>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20485&amp;oldid=prev</id>
		<title>Slysven: Correct error in URL for MSYS/Mingw-w64 homepage</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20485&amp;oldid=prev"/>
		<updated>2023-07-10T17:27:13Z</updated>

		<summary type="html">&lt;p&gt;Correct error in URL for MSYS/Mingw-w64 homepage&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:27, 10 July 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Go to [https://www.msys2.org/|the MSYS2 homepage] and, following the instructions on that page, download and run its installer up until step 5 where a &amp;#039;&amp;#039;UCRT64&amp;#039;&amp;#039; terminal will have been started for you.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Go to [https://www.msys2.org/ |the MSYS2 homepage] and, following the instructions on that page, download and run its installer up until step 5 where a &amp;#039;&amp;#039;UCRT64&amp;#039;&amp;#039; terminal will have been started for you.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Unfortunately only 64-Bit Windows 10 or later is supported nowadays for installation of this product. However it can be used to build 32-Bit products that can run on any Windows 10 (or later) systems, though that does impose a memory limit of just over 3GBytes, even within the [https://en.wikipedia.org/wiki/WoW64 WindowsOnWindows64] environment provided on 64-Bit Windows OSes in which to run 32-Bit applications.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Unfortunately only 64-Bit Windows 10 or later is supported nowadays for installation of this product. However it can be used to build 32-Bit products that can run on any Windows 10 (or later) systems, though that does impose a memory limit of just over 3GBytes, even within the [https://en.wikipedia.org/wiki/WoW64 WindowsOnWindows64] environment provided on 64-Bit Windows OSes in which to run 32-Bit applications.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-20484:rev-20485 --&gt;
&lt;/table&gt;</summary>
		<author><name>Slysven</name></author>
	</entry>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20484&amp;oldid=prev</id>
		<title>Slysven: Updated zip file because of improvements in scripts in it</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20484&amp;oldid=prev"/>
		<updated>2023-07-08T23:26:29Z</updated>

		<summary type="html">&lt;p&gt;Updated zip file because of improvements in scripts in it&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:26, 8 July 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Close that terminal because it is the wrong one for Mudlet right now. We will be using one of the other types either MING64 for 64-Bit builds or MINGW32 for 32-Bit one. For the details on the differences refer to [https://www.msys2.org/docs/environments/ MSYS2 environments]. Open (you will find them on your Start menu) one of &amp;#039;&amp;#039;those&amp;#039;&amp;#039; two types of terminal as appropriate for what is wanted, you should find it will open in your MSYS2 &amp;quot;home&amp;quot; directory denoted by a &amp;lt;tt&amp;gt;~&amp;lt;/tt&amp;gt; character - in reality it is likely to be &amp;lt;tT&amp;gt;C:\msys64\home\YourWindows UserName&amp;lt;/tT&amp;gt;, however if your name cannot be represented in ASCII or maybe Latin-1 characters or if it has spaces in it then &amp;#039;&amp;#039;your mileage may vary&amp;#039;&amp;#039; going onwards!&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Close that terminal because it is the wrong one for Mudlet right now. We will be using one of the other types either MING64 for 64-Bit builds or MINGW32 for 32-Bit one. For the details on the differences refer to [https://www.msys2.org/docs/environments/ MSYS2 environments]. Open (you will find them on your Start menu) one of &amp;#039;&amp;#039;those&amp;#039;&amp;#039; two types of terminal as appropriate for what is wanted, you should find it will open in your MSYS2 &amp;quot;home&amp;quot; directory denoted by a &amp;lt;tt&amp;gt;~&amp;lt;/tt&amp;gt; character - in reality it is likely to be &amp;lt;tT&amp;gt;C:\msys64\home\YourWindows UserName&amp;lt;/tT&amp;gt;, however if your name cannot be represented in ASCII or maybe Latin-1 characters or if it has spaces in it then &amp;#039;&amp;#039;your mileage may vary&amp;#039;&amp;#039; going onwards!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Meanwhile download the scripts zipped up in this archive file: https://wiki.mudlet.org/images/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;3&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;33&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mudlet_windows_build_scripts_1_3&lt;/del&gt;.zip and unzip them into a convenient location where they can be run from (most simply it could be one of the locations show in your path - type &amp;lt;tt&amp;gt;echo $PATH&amp;lt;/tt&amp;gt; in the terminal window to see what those are; typically the likely location would be to put them in a &amp;lt;tt&amp;gt;~/bin&amp;lt;/tt&amp;gt; directory, though they can be anywhere if the full path to where they are compared to the current location in the file-system is given). Using &amp;lt;tt&amp;gt;ls -l&amp;lt;/tt&amp;gt; in the chosen location check that they have execution permissions, signified by the &amp;#039;x&amp;#039;s in the attributes to the left in the listing output:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Meanwhile download the scripts zipped up in this archive file: https://wiki.mudlet.org/images/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;b&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;bb&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Mudlet_windows_build_scripts_1_4&lt;/ins&gt;.zip and unzip them into a convenient location where they can be run from (most simply it could be one of the locations show in your path - type &amp;lt;tt&amp;gt;echo $PATH&amp;lt;/tt&amp;gt; in the terminal window to see what those are; typically the likely location would be to put them in a &amp;lt;tt&amp;gt;~/bin&amp;lt;/tt&amp;gt; directory, though they can be anywhere if the full path to where they are compared to the current location in the file-system is given). Using &amp;lt;tt&amp;gt;ls -l&amp;lt;/tt&amp;gt; in the chosen location check that they have execution permissions, signified by the &amp;#039;x&amp;#039;s in the attributes to the left in the listing output:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;small&amp;gt;&amp;lt;tt&amp;gt;stephen@Hunt MINGW64 ~/bin&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;small&amp;gt;&amp;lt;tt&amp;gt;stephen@Hunt MINGW64 ~/bin&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-20435:rev-20484 --&gt;
&lt;/table&gt;</summary>
		<author><name>Slysven</name></author>
	</entry>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20435&amp;oldid=prev</id>
		<title>Slysven: Updated zip file because of removal of Qt5 Gamepad usages in scripts in it</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20435&amp;oldid=prev"/>
		<updated>2023-05-01T16:47:09Z</updated>

		<summary type="html">&lt;p&gt;Updated zip file because of removal of Qt5 Gamepad usages in scripts in it&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:47, 1 May 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Close that terminal because it is the wrong one for Mudlet right now. We will be using one of the other types either MING64 for 64-Bit builds or MINGW32 for 32-Bit one. For the details on the differences refer to [https://www.msys2.org/docs/environments/ MSYS2 environments]. Open (you will find them on your Start menu) one of &amp;#039;&amp;#039;those&amp;#039;&amp;#039; two types of terminal as appropriate for what is wanted, you should find it will open in your MSYS2 &amp;quot;home&amp;quot; directory denoted by a &amp;lt;tt&amp;gt;~&amp;lt;/tt&amp;gt; character - in reality it is likely to be &amp;lt;tT&amp;gt;C:\msys64\home\YourWindows UserName&amp;lt;/tT&amp;gt;, however if your name cannot be represented in ASCII or maybe Latin-1 characters or if it has spaces in it then &amp;#039;&amp;#039;your mileage may vary&amp;#039;&amp;#039; going onwards!&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Close that terminal because it is the wrong one for Mudlet right now. We will be using one of the other types either MING64 for 64-Bit builds or MINGW32 for 32-Bit one. For the details on the differences refer to [https://www.msys2.org/docs/environments/ MSYS2 environments]. Open (you will find them on your Start menu) one of &amp;#039;&amp;#039;those&amp;#039;&amp;#039; two types of terminal as appropriate for what is wanted, you should find it will open in your MSYS2 &amp;quot;home&amp;quot; directory denoted by a &amp;lt;tt&amp;gt;~&amp;lt;/tt&amp;gt; character - in reality it is likely to be &amp;lt;tT&amp;gt;C:\msys64\home\YourWindows UserName&amp;lt;/tT&amp;gt;, however if your name cannot be represented in ASCII or maybe Latin-1 characters or if it has spaces in it then &amp;#039;&amp;#039;your mileage may vary&amp;#039;&amp;#039; going onwards!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Meanwhile download the scripts zipped up in this archive file: https://wiki.mudlet.org/images/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;b&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;b9&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mudlet_windows_build_scripts_1_2&lt;/del&gt;.zip and unzip them into a convenient location where they can be run from (most simply it could be one of the locations show in your path - type &amp;lt;tt&amp;gt;echo $PATH&amp;lt;/tt&amp;gt; in the terminal window to see what those are; typically the likely location would be to put them in a &amp;lt;tt&amp;gt;~/bin&amp;lt;/tt&amp;gt; directory, though they can be anywhere if the full path to where they are compared to the current location in the file-system is given). Using &amp;lt;tt&amp;gt;ls -l&amp;lt;/tt&amp;gt; in the chosen location check that they have execution permissions, signified by the &amp;#039;x&amp;#039;s in the attributes to the left in the listing output:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Meanwhile download the scripts zipped up in this archive file: https://wiki.mudlet.org/images/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;3&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;33&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Mudlet_windows_build_scripts_1_3&lt;/ins&gt;.zip and unzip them into a convenient location where they can be run from (most simply it could be one of the locations show in your path - type &amp;lt;tt&amp;gt;echo $PATH&amp;lt;/tt&amp;gt; in the terminal window to see what those are; typically the likely location would be to put them in a &amp;lt;tt&amp;gt;~/bin&amp;lt;/tt&amp;gt; directory, though they can be anywhere if the full path to where they are compared to the current location in the file-system is given). Using &amp;lt;tt&amp;gt;ls -l&amp;lt;/tt&amp;gt; in the chosen location check that they have execution permissions, signified by the &amp;#039;x&amp;#039;s in the attributes to the left in the listing output:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;small&amp;gt;&amp;lt;tt&amp;gt;stephen@Hunt MINGW64 ~/bin&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;small&amp;gt;&amp;lt;tt&amp;gt;stephen@Hunt MINGW64 ~/bin&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Slysven</name></author>
	</entry>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20425&amp;oldid=prev</id>
		<title>Slysven: Updated zip file because of improvements in scripts in it</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20425&amp;oldid=prev"/>
		<updated>2023-04-23T16:06:12Z</updated>

		<summary type="html">&lt;p&gt;Updated zip file because of improvements in scripts in it&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:06, 23 April 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Close that terminal because it is the wrong one for Mudlet right now. We will be using one of the other types either MING64 for 64-Bit builds or MINGW32 for 32-Bit one. For the details on the differences refer to [https://www.msys2.org/docs/environments/ MSYS2 environments]. Open (you will find them on your Start menu) one of &amp;#039;&amp;#039;those&amp;#039;&amp;#039; two types of terminal as appropriate for what is wanted, you should find it will open in your MSYS2 &amp;quot;home&amp;quot; directory denoted by a &amp;lt;tt&amp;gt;~&amp;lt;/tt&amp;gt; character - in reality it is likely to be &amp;lt;tT&amp;gt;C:\msys64\home\YourWindows UserName&amp;lt;/tT&amp;gt;, however if your name cannot be represented in ASCII or maybe Latin-1 characters or if it has spaces in it then &amp;#039;&amp;#039;your mileage may vary&amp;#039;&amp;#039; going onwards!&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Close that terminal because it is the wrong one for Mudlet right now. We will be using one of the other types either MING64 for 64-Bit builds or MINGW32 for 32-Bit one. For the details on the differences refer to [https://www.msys2.org/docs/environments/ MSYS2 environments]. Open (you will find them on your Start menu) one of &amp;#039;&amp;#039;those&amp;#039;&amp;#039; two types of terminal as appropriate for what is wanted, you should find it will open in your MSYS2 &amp;quot;home&amp;quot; directory denoted by a &amp;lt;tt&amp;gt;~&amp;lt;/tt&amp;gt; character - in reality it is likely to be &amp;lt;tT&amp;gt;C:\msys64\home\YourWindows UserName&amp;lt;/tT&amp;gt;, however if your name cannot be represented in ASCII or maybe Latin-1 characters or if it has spaces in it then &amp;#039;&amp;#039;your mileage may vary&amp;#039;&amp;#039; going onwards!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Meanwhile download the scripts zipped up in this archive file: https://wiki.mudlet.org/images/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;d&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;d7&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mudlet_windows_build_scripts_1_1&lt;/del&gt;.zip and unzip them into a convenient location where they can be run from (most simply it could be one of the locations show in your path - type &amp;lt;tt&amp;gt;echo $PATH&amp;lt;/tt&amp;gt; in the terminal window to see what those are; typically the likely location would be to put them in a &amp;lt;tt&amp;gt;~/bin&amp;lt;/tt&amp;gt; directory, though they can be anywhere if the full path to where they are compared to the current location in the file-system is given). Using &amp;lt;tt&amp;gt;ls -l&amp;lt;/tt&amp;gt; in the chosen location check that they have execution permissions, signified by the &amp;#039;x&amp;#039;s in the attributes to the left in the listing output:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Meanwhile download the scripts zipped up in this archive file: https://wiki.mudlet.org/images/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;b&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;b9&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Mudlet_windows_build_scripts_1_2&lt;/ins&gt;.zip and unzip them into a convenient location where they can be run from (most simply it could be one of the locations show in your path - type &amp;lt;tt&amp;gt;echo $PATH&amp;lt;/tt&amp;gt; in the terminal window to see what those are; typically the likely location would be to put them in a &amp;lt;tt&amp;gt;~/bin&amp;lt;/tt&amp;gt; directory, though they can be anywhere if the full path to where they are compared to the current location in the file-system is given). Using &amp;lt;tt&amp;gt;ls -l&amp;lt;/tt&amp;gt; in the chosen location check that they have execution permissions, signified by the &amp;#039;x&amp;#039;s in the attributes to the left in the listing output:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;small&amp;gt;&amp;lt;tt&amp;gt;stephen@Hunt MINGW64 ~/bin&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;small&amp;gt;&amp;lt;tt&amp;gt;stephen@Hunt MINGW64 ~/bin&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-20419:rev-20425 --&gt;
&lt;/table&gt;</summary>
		<author><name>Slysven</name></author>
	</entry>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20419&amp;oldid=prev</id>
		<title>Slysven: Revise for a later set (1.1) of scripts</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20419&amp;oldid=prev"/>
		<updated>2023-04-16T23:45:04Z</updated>

		<summary type="html">&lt;p&gt;Revise for a later set (1.1) of scripts&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:45, 16 April 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot; &gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:As they are &amp;#039;&amp;#039;bash&amp;#039;&amp;#039; script files they are purely text and can be opened and reviewed in a text editor.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:As they are &amp;#039;&amp;#039;bash&amp;#039;&amp;#039; script files they are purely text and can be opened and reviewed in a text editor.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;First run the &amp;lt;tt&amp;gt;setup-windows-sdk.sh&amp;lt;/tt&amp;gt; script, it will check whether it is being run from a MINGW32 or MINGW64 terminal and install the additional packages currently needed to build that version of Mudlet. Note that for those wishing to do more than just download and build Mudlet, but who also want to work on the code &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;there are &lt;/del&gt;some extra &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;files that can be uncommented &lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;remove the &amp;#039;&amp;lt;tt&amp;gt;#&amp;lt;&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;tt&amp;gt;&lt;/del&gt;&amp;#039;s &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;text between the two blocks and put &lt;/del&gt;a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&amp;lt;tt&amp;gt;\&amp;lt;/tt&amp;gt;&amp;#039; line&lt;/del&gt;-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;continuation marking in after the &amp;lt;tt&amp;gt;...luarocks&amp;lt;/tt&amp;gt; item in &lt;/del&gt;that &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;file&lt;/del&gt;)&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;First run the &amp;lt;tt&amp;gt;setup-windows-sdk.sh&amp;lt;/tt&amp;gt; script &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;with one of either &amp;#039;&amp;#039;base&amp;#039;&amp;#039; or &amp;#039;&amp;#039;full&amp;#039;&amp;#039; as a command line option&lt;/ins&gt;, it will check whether it is being run from a MINGW32 or MINGW64 terminal and install the additional packages currently needed to build that version of Mudlet. Note that &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the &amp;#039;&amp;#039;full&amp;#039;&amp;#039; option is &lt;/ins&gt;for those wishing to do more than just download and build Mudlet, but who also want to work on the code &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;as it will install &lt;/ins&gt;some extra &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;packages &lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;including MSYS2&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Mingw-w64&lt;/ins&gt;&amp;#039;s &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;own build of &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Qt Creator IDE - however that now only runs in &lt;/ins&gt;a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;MINGW64 environment but can cross&lt;/ins&gt;-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;compile a MINGW32 application if &lt;/ins&gt;that &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is selected as a kit&lt;/ins&gt;)&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;small&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;tt&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;The script &lt;/ins&gt;will &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;also &lt;/ins&gt;fix a couple of current problems with the &amp;#039;&amp;#039;luarocks&amp;#039;&amp;#039; packages:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;quot;mingw-w64-${BUILDCOMPONENT}-lua51&amp;quot; \&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;quot;mingw-w64-${BUILDCOMPONENT}-lua51-lpeg&amp;quot; \&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;quot;mingw-w64-${BUILDCOMPONENT}-lua51-lsqlite3&amp;quot; \&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;quot;mingw-w64-${BUILDCOMPONENT}-hunspell&amp;quot; \&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;quot;mingw-w64-${BUILDCOMPONENT}-zlib&amp;quot; \&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;quot;mingw-w64-${BUILDCOMPONENT}-boost&amp;quot; \&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;quot;mingw-w64-${BUILDCOMPONENT}-yajl&amp;quot; \&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;quot;mingw-w64-${BUILDCOMPONENT}-SDL2&amp;quot; \&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;quot;mingw-w64-${BUILDCOMPONENT}-lua-luarocks&amp;quot;&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;lt;nowiki&amp;gt;# Optional extras for development:&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;lt;nowiki&amp;gt;#  &amp;quot;mingw-w64-${BUILDCOMPONENT}-ccache \&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;lt;nowiki&amp;gt;#  &amp;quot;mingw-w64-${BUILDCOMPONENT}-qt-creator \&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;lt;nowiki&amp;gt;#  &amp;quot;mingw-w64-${BUILDCOMPONENT}-qt5-doc \&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;lt;nowiki&amp;gt;#  &amp;quot;mingw-w64-${BUILDCOMPONENT}-cmake \&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;lt;nowiki&amp;gt;#  &amp;quot;mingw-w64-${BUILDCOMPONENT}-clang \&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;lt;nowiki&amp;gt;#  &amp;quot;mingw-w64-${BUILDCOMPONENT}-ninja&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&amp;lt;/tt&amp;gt;&amp;lt;/small&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;It &lt;/del&gt;will fix a couple of current problems with the &amp;#039;&amp;#039;luarocks&amp;#039;&amp;#039; packages:&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#that defaults to having the same location for rocks that are compiled to binary files (&amp;lt;tt&amp;gt;.dll&amp;lt;/tt&amp;gt;s) when a per user &amp;quot;user&amp;quot; tree rather than a &amp;quot;system&amp;quot; one with the &amp;lt;tt&amp;gt;--tree &amp;quot;user&amp;quot;&amp;lt;/tt&amp;gt; option is used. {The normal alternative for the &amp;quot;system&amp;quot;-wide locations for storage of installed lua modules built from rocks to &amp;lt;tt&amp;gt;luarocks&amp;lt;/tt&amp;gt; of &amp;lt;tt&amp;gt;--local&amp;lt;/tt&amp;gt; seems to be hard-coded to &amp;lt;tt&amp;gt;~/.luarocks&amp;lt;/tt&amp;gt; and that also suffers from the same problem in that if building for both 32- and 64-Bit builds of Mudlet the two different builds of the luarocks it fails to keep them separate and not mixed up.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#that defaults to having the same location for rocks that are compiled to binary files (&amp;lt;tt&amp;gt;.dll&amp;lt;/tt&amp;gt;s) when a per user &amp;quot;user&amp;quot; tree rather than a &amp;quot;system&amp;quot; one with the &amp;lt;tt&amp;gt;--tree &amp;quot;user&amp;quot;&amp;lt;/tt&amp;gt; option is used. {The normal alternative for the &amp;quot;system&amp;quot;-wide locations for storage of installed lua modules built from rocks to &amp;lt;tt&amp;gt;luarocks&amp;lt;/tt&amp;gt; of &amp;lt;tt&amp;gt;--local&amp;lt;/tt&amp;gt; seems to be hard-coded to &amp;lt;tt&amp;gt;~/.luarocks&amp;lt;/tt&amp;gt; and that also suffers from the same problem in that if building for both 32- and 64-Bit builds of Mudlet the two different builds of the luarocks it fails to keep them separate and not mixed up.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Until the Lua 5.4 version (currently) of the &amp;#039;&amp;#039;luafilesystem&amp;#039;&amp;#039; rock is installed, the &amp;lt;tt&amp;gt;luarocks&amp;lt;/tt&amp;gt; program (and the related &amp;lt;tt&amp;gt;luarocks-admin&amp;lt;/tt&amp;gt;) will both use a built-in Windows &amp;lt;tt&amp;gt;CMD.EXE MKDIR&amp;lt;/tt&amp;gt; command to create directories - and that is not capable of creating missing &amp;quot;intermediate&amp;quot; directories, unlike the MSYS &amp;lt;tt&amp;gt;bash&amp;lt;/tt&amp;gt; shell whose &amp;lt;tt&amp;gt;mkdir -p&amp;lt;/tt&amp;gt; will do so silently and without complaint. So before using the &amp;lt;tt&amp;gt;luarocks&amp;lt;/tt&amp;gt; command to &amp;lt;tt&amp;gt;build&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;install&amp;lt;/tt&amp;gt; any Lua 5.&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; version modules for Mudlet to use, the 5.&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; &amp;lt;tt&amp;gt;luafilesystem&amp;lt;/tt&amp;gt; rock must be inserted into the system which may take more than one attempt with creating sub-directories needed that it cannot do itself whilst using it&amp;#039;s defective native Windows command to create a directory.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Until the Lua 5.4 version (currently) of the &amp;#039;&amp;#039;luafilesystem&amp;#039;&amp;#039; rock is installed, the &amp;lt;tt&amp;gt;luarocks&amp;lt;/tt&amp;gt; program (and the related &amp;lt;tt&amp;gt;luarocks-admin&amp;lt;/tt&amp;gt;) will both use a built-in Windows &amp;lt;tt&amp;gt;CMD.EXE MKDIR&amp;lt;/tt&amp;gt; command to create directories - and that is not capable of creating missing &amp;quot;intermediate&amp;quot; directories, unlike the MSYS &amp;lt;tt&amp;gt;bash&amp;lt;/tt&amp;gt; shell whose &amp;lt;tt&amp;gt;mkdir -p&amp;lt;/tt&amp;gt; will do so silently and without complaint. So before using the &amp;lt;tt&amp;gt;luarocks&amp;lt;/tt&amp;gt; command to &amp;lt;tt&amp;gt;build&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;install&amp;lt;/tt&amp;gt; any Lua 5.&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; version modules for Mudlet to use, the 5.&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; &amp;lt;tt&amp;gt;luafilesystem&amp;lt;/tt&amp;gt; rock must be inserted into the system which may take more than one attempt with creating sub-directories needed that it cannot do itself whilst using it&amp;#039;s defective native Windows command to create a directory.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-20418:rev-20419 --&gt;
&lt;/table&gt;</summary>
		<author><name>Slysven</name></author>
	</entry>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20418&amp;oldid=prev</id>
		<title>Slysven: Refer to updated archive of the associated scripts</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20418&amp;oldid=prev"/>
		<updated>2023-04-16T23:39:34Z</updated>

		<summary type="html">&lt;p&gt;Refer to updated archive of the associated scripts&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:39, 16 April 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Close that terminal because it is the wrong one for Mudlet right now. We will be using one of the other types either MING64 for 64-Bit builds or MINGW32 for 32-Bit one. For the details on the differences refer to [https://www.msys2.org/docs/environments/ MSYS2 environments]. Open (you will find them on your Start menu) one of &amp;#039;&amp;#039;those&amp;#039;&amp;#039; two types of terminal as appropriate for what is wanted, you should find it will open in your MSYS2 &amp;quot;home&amp;quot; directory denoted by a &amp;lt;tt&amp;gt;~&amp;lt;/tt&amp;gt; character - in reality it is likely to be &amp;lt;tT&amp;gt;C:\msys64\home\YourWindows UserName&amp;lt;/tT&amp;gt;, however if your name cannot be represented in ASCII or maybe Latin-1 characters or if it has spaces in it then &amp;#039;&amp;#039;your mileage may vary&amp;#039;&amp;#039; going onwards!&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Close that terminal because it is the wrong one for Mudlet right now. We will be using one of the other types either MING64 for 64-Bit builds or MINGW32 for 32-Bit one. For the details on the differences refer to [https://www.msys2.org/docs/environments/ MSYS2 environments]. Open (you will find them on your Start menu) one of &amp;#039;&amp;#039;those&amp;#039;&amp;#039; two types of terminal as appropriate for what is wanted, you should find it will open in your MSYS2 &amp;quot;home&amp;quot; directory denoted by a &amp;lt;tt&amp;gt;~&amp;lt;/tt&amp;gt; character - in reality it is likely to be &amp;lt;tT&amp;gt;C:\msys64\home\YourWindows UserName&amp;lt;/tT&amp;gt;, however if your name cannot be represented in ASCII or maybe Latin-1 characters or if it has spaces in it then &amp;#039;&amp;#039;your mileage may vary&amp;#039;&amp;#039; going onwards!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Meanwhile download the scripts zipped up in this archive file: https://wiki.mudlet.org/images/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;a&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;a9&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mudlet_windows_build_scripts&lt;/del&gt;.zip and unzip them into a convenient location where they can be run from (most simply it could be one of the locations show in your path - type &amp;lt;tt&amp;gt;echo $PATH&amp;lt;/tt&amp;gt; in the terminal window to see what those are; typically the likely location would be to put them in a &amp;lt;tt&amp;gt;~/bin&amp;lt;/tt&amp;gt; directory, though they can be anywhere if the full path to where they are compared to the current location in the file-system is given). Using &amp;lt;tt&amp;gt;ls -l&amp;lt;/tt&amp;gt; in the chosen location check that they have execution permissions, signified by the &amp;#039;x&amp;#039;s in the attributes to the left in the listing output:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Meanwhile download the scripts zipped up in this archive file: https://wiki.mudlet.org/images/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;d&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;d7&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Mudlet_windows_build_scripts_1_1&lt;/ins&gt;.zip and unzip them into a convenient location where they can be run from (most simply it could be one of the locations show in your path - type &amp;lt;tt&amp;gt;echo $PATH&amp;lt;/tt&amp;gt; in the terminal window to see what those are; typically the likely location would be to put them in a &amp;lt;tt&amp;gt;~/bin&amp;lt;/tt&amp;gt; directory, though they can be anywhere if the full path to where they are compared to the current location in the file-system is given). Using &amp;lt;tt&amp;gt;ls -l&amp;lt;/tt&amp;gt; in the chosen location check that they have execution permissions, signified by the &amp;#039;x&amp;#039;s in the attributes to the left in the listing output:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;small&amp;gt;&amp;lt;tt&amp;gt;stephen@Hunt MINGW64 ~/bin&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;small&amp;gt;&amp;lt;tt&amp;gt;stephen@Hunt MINGW64 ~/bin&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Slysven</name></author>
	</entry>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20411&amp;oldid=prev</id>
		<title>Slysven: Initial entry about these Windows Mingw-w64 scripts</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=Some_bash_scripts&amp;diff=20411&amp;oldid=prev"/>
		<updated>2023-04-10T23:05:14Z</updated>

		<summary type="html">&lt;p&gt;Initial entry about these Windows Mingw-w64 scripts&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Go to [https://www.msys2.org/|the MSYS2 homepage] and, following the instructions on that page, download and run its installer up until step 5 where a &amp;#039;&amp;#039;UCRT64&amp;#039;&amp;#039; terminal will have been started for you.&lt;br /&gt;
&lt;br /&gt;
:Unfortunately only 64-Bit Windows 10 or later is supported nowadays for installation of this product. However it can be used to build 32-Bit products that can run on any Windows 10 (or later) systems, though that does impose a memory limit of just over 3GBytes, even within the [https://en.wikipedia.org/wiki/WoW64 WindowsOnWindows64] environment provided on 64-Bit Windows OSes in which to run 32-Bit applications.&lt;br /&gt;
&lt;br /&gt;
Close that terminal because it is the wrong one for Mudlet right now. We will be using one of the other types either MING64 for 64-Bit builds or MINGW32 for 32-Bit one. For the details on the differences refer to [https://www.msys2.org/docs/environments/ MSYS2 environments]. Open (you will find them on your Start menu) one of &amp;#039;&amp;#039;those&amp;#039;&amp;#039; two types of terminal as appropriate for what is wanted, you should find it will open in your MSYS2 &amp;quot;home&amp;quot; directory denoted by a &amp;lt;tt&amp;gt;~&amp;lt;/tt&amp;gt; character - in reality it is likely to be &amp;lt;tT&amp;gt;C:\msys64\home\YourWindows UserName&amp;lt;/tT&amp;gt;, however if your name cannot be represented in ASCII or maybe Latin-1 characters or if it has spaces in it then &amp;#039;&amp;#039;your mileage may vary&amp;#039;&amp;#039; going onwards!&lt;br /&gt;
&lt;br /&gt;
Meanwhile download the scripts zipped up in this archive file: https://wiki.mudlet.org/images/a/a9/Mudlet_windows_build_scripts.zip and unzip them into a convenient location where they can be run from (most simply it could be one of the locations show in your path - type &amp;lt;tt&amp;gt;echo $PATH&amp;lt;/tt&amp;gt; in the terminal window to see what those are; typically the likely location would be to put them in a &amp;lt;tt&amp;gt;~/bin&amp;lt;/tt&amp;gt; directory, though they can be anywhere if the full path to where they are compared to the current location in the file-system is given). Using &amp;lt;tt&amp;gt;ls -l&amp;lt;/tt&amp;gt; in the chosen location check that they have execution permissions, signified by the &amp;#039;x&amp;#039;s in the attributes to the left in the listing output:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;small&amp;gt;&amp;lt;tt&amp;gt;stephen@Hunt MINGW64 ~/bin&amp;lt;br&amp;gt;&lt;br /&gt;
:$ ls -l&amp;lt;br&amp;gt;&lt;br /&gt;
:total 36&amp;lt;br&amp;gt;&lt;br /&gt;
:-rwxr-xr-x 1 stephen stephen  6379 Apr 10 20:52 build-mudlet-for-windows.sh&amp;lt;br&amp;gt;&lt;br /&gt;
:-rwxr-xr-x 1 stephen stephen 13863 Apr 10 20:51 package-mudlet-for-windows.sh&amp;lt;br&amp;gt;&lt;br /&gt;
:-rwxr-xr-x 1 stephen stephen  8368 Apr 10 20:48 setup-windows-sdk.sh&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;br&amp;gt;&lt;br /&gt;
:stephen@Hunt MINGW64 ~/bin&amp;lt;br&amp;gt;&lt;br /&gt;
:$&amp;lt;/tt&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:As they are &amp;#039;&amp;#039;bash&amp;#039;&amp;#039; script files they are purely text and can be opened and reviewed in a text editor.&lt;br /&gt;
&lt;br /&gt;
First run the &amp;lt;tt&amp;gt;setup-windows-sdk.sh&amp;lt;/tt&amp;gt; script, it will check whether it is being run from a MINGW32 or MINGW64 terminal and install the additional packages currently needed to build that version of Mudlet. Note that for those wishing to do more than just download and build Mudlet, but who also want to work on the code there are some extra files that can be uncommented (remove the &amp;#039;&amp;lt;tt&amp;gt;#&amp;lt;/tt&amp;gt;&amp;#039;s and the text between the two blocks and put a &amp;#039;&amp;lt;tt&amp;gt;\&amp;lt;/tt&amp;gt;&amp;#039; line-continuation marking in after the &amp;lt;tt&amp;gt;...luarocks&amp;lt;/tt&amp;gt; item in that file):&lt;br /&gt;
&amp;lt;small&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;mingw-w64-${BUILDCOMPONENT}-lua51&amp;quot; \&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;quot;mingw-w64-${BUILDCOMPONENT}-lua51-lpeg&amp;quot; \&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;quot;mingw-w64-${BUILDCOMPONENT}-lua51-lsqlite3&amp;quot; \&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;quot;mingw-w64-${BUILDCOMPONENT}-hunspell&amp;quot; \&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;quot;mingw-w64-${BUILDCOMPONENT}-zlib&amp;quot; \&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;quot;mingw-w64-${BUILDCOMPONENT}-boost&amp;quot; \&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;quot;mingw-w64-${BUILDCOMPONENT}-yajl&amp;quot; \&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;quot;mingw-w64-${BUILDCOMPONENT}-SDL2&amp;quot; \&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;quot;mingw-w64-${BUILDCOMPONENT}-lua-luarocks&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;# Optional extras for development:&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;#  &amp;quot;mingw-w64-${BUILDCOMPONENT}-ccache \&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;#  &amp;quot;mingw-w64-${BUILDCOMPONENT}-qt-creator \&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;#  &amp;quot;mingw-w64-${BUILDCOMPONENT}-qt5-doc \&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;#  &amp;quot;mingw-w64-${BUILDCOMPONENT}-cmake \&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;#  &amp;quot;mingw-w64-${BUILDCOMPONENT}-clang \&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;#  &amp;quot;mingw-w64-${BUILDCOMPONENT}-ninja&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;/tt&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will fix a couple of current problems with the &amp;#039;&amp;#039;luarocks&amp;#039;&amp;#039; packages:&lt;br /&gt;
#that defaults to having the same location for rocks that are compiled to binary files (&amp;lt;tt&amp;gt;.dll&amp;lt;/tt&amp;gt;s) when a per user &amp;quot;user&amp;quot; tree rather than a &amp;quot;system&amp;quot; one with the &amp;lt;tt&amp;gt;--tree &amp;quot;user&amp;quot;&amp;lt;/tt&amp;gt; option is used. {The normal alternative for the &amp;quot;system&amp;quot;-wide locations for storage of installed lua modules built from rocks to &amp;lt;tt&amp;gt;luarocks&amp;lt;/tt&amp;gt; of &amp;lt;tt&amp;gt;--local&amp;lt;/tt&amp;gt; seems to be hard-coded to &amp;lt;tt&amp;gt;~/.luarocks&amp;lt;/tt&amp;gt; and that also suffers from the same problem in that if building for both 32- and 64-Bit builds of Mudlet the two different builds of the luarocks it fails to keep them separate and not mixed up.&lt;br /&gt;
#Until the Lua 5.4 version (currently) of the &amp;#039;&amp;#039;luafilesystem&amp;#039;&amp;#039; rock is installed, the &amp;lt;tt&amp;gt;luarocks&amp;lt;/tt&amp;gt; program (and the related &amp;lt;tt&amp;gt;luarocks-admin&amp;lt;/tt&amp;gt;) will both use a built-in Windows &amp;lt;tt&amp;gt;CMD.EXE MKDIR&amp;lt;/tt&amp;gt; command to create directories - and that is not capable of creating missing &amp;quot;intermediate&amp;quot; directories, unlike the MSYS &amp;lt;tt&amp;gt;bash&amp;lt;/tt&amp;gt; shell whose &amp;lt;tt&amp;gt;mkdir -p&amp;lt;/tt&amp;gt; will do so silently and without complaint. So before using the &amp;lt;tt&amp;gt;luarocks&amp;lt;/tt&amp;gt; command to &amp;lt;tt&amp;gt;build&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;install&amp;lt;/tt&amp;gt; any Lua 5.&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; version modules for Mudlet to use, the 5.&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; &amp;lt;tt&amp;gt;luafilesystem&amp;lt;/tt&amp;gt; rock must be inserted into the system which may take more than one attempt with creating sub-directories needed that it cannot do itself whilst using it&amp;#039;s defective native Windows command to create a directory.&lt;br /&gt;
&lt;br /&gt;
Finally this script checks for a &amp;lt;tt&amp;gt;~/src/mudlet&amp;lt;/tt&amp;gt; directory, and if one is not found it will clone the current [https://github.com/Mudlet/Mudlet.git main Mudlet repository] into that location. As things are currently configured this will checkout the current &amp;#039;&amp;#039;development&amp;#039;&amp;#039; branch code. If the directory already exists than this step is skipped.&lt;br /&gt;
&lt;br /&gt;
Next it will be necessary to run the &amp;lt;tt&amp;gt;build-mudlet-for-windows.sh&amp;lt;/tt&amp;gt; which will create a &amp;lt;tt&amp;gt;~/src/mudlet/build-MINGW32&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;~/src/mudlet/build-MINGW64&amp;lt;/tt&amp;gt; directory as per the terminal type it is being run from. However the script needs to know whether to make a &amp;#039;&amp;#039;release&amp;#039;&amp;#039; or a &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; type build which is to be specified by setting the environmental variable &amp;lt;tt&amp;gt;BUILD_TYPE&amp;lt;/tt&amp;gt; to either &amp;lt;tt&amp;gt;release&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;debug&amp;lt;/tt&amp;gt; - it will check and abort if that has not been done. After that, it configures some other environmental variables appropriate to the Mudlet build being done {specifically &amp;lt;tt&amp;gt;WITH_OWN_QTKEYCHAIN&amp;lt;/tt&amp;gt; as the MINGW64 environment already has that packaged but the MINGW32 does not; &amp;lt;tt&amp;gt;WITH_UPDATER&amp;lt;/tt&amp;gt; is set to &amp;lt;tt&amp;gt;NO&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;WITH_MAIN_BUILD_SYSTEM&amp;lt;/tt&amp;gt; is also set to &amp;lt;tt&amp;gt;NO&amp;lt;/tt&amp;gt; as this is the precise environment (MSYS2/Mingw-w64) for which that option exists!} and then runs &amp;lt;tt&amp;gt;qmake&amp;lt;/tt&amp;gt; to create the required &amp;#039;&amp;#039;MAKEFILE&amp;#039;&amp;#039;s. If it is intended to do development work in this setup it is possible to use the &amp;lt;tt&amp;gt;ccache&amp;lt;/tt&amp;gt; utility to cache compilation results which is ideal when switching between different points in the &amp;lt;tt&amp;gt;git&amp;lt;/tt&amp;gt; repository. It has been found that setting the &amp;lt;tt&amp;gt;QMAKE_CC&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;QMAKE_CXX&amp;lt;/tt&amp;gt; &amp;#039;&amp;#039;qmake&amp;#039;&amp;#039; variables to &amp;lt;tt&amp;gt;ccache gcc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ccache g++&amp;lt;/tt&amp;gt; in the appropriate place inside the &amp;#039;&amp;#039;Qt Creator&amp;#039;&amp;#039; project tab so that they appear in the &amp;#039;&amp;#039;effective qmake&amp;#039;&amp;#039; call is sufficient to get that tool working:&lt;br /&gt;
&lt;br /&gt;
[[File:Using ccache in Qt Creator in Windows in a MINGW32 or 64 environment.png|frame 200x150px left|Using ccache in Qt Creator in Windows in a MINGW32 or 64 environment]]&lt;br /&gt;
&lt;br /&gt;
However, the same does NOT work when using &amp;lt;tt&amp;gt;qmake&amp;lt;/tt&amp;gt; directly from a shell script.&lt;br /&gt;
&lt;br /&gt;
After producing the makefile it will then run the &amp;lt;tt&amp;gt;mingw32-make&amp;lt;/tt&amp;gt; command - which has that name for &amp;#039;&amp;#039;both&amp;#039;&amp;#039; MINGW32 and MINGW64 cases but is a different command from a different location in each. This should then compile and link all the object files for the selected build type. Due to the way that &amp;lt;tt&amp;gt;qmake&amp;lt;/tt&amp;gt; functions in a MSYS2/Mingw-w64 environment &amp;#039;&amp;#039;release&amp;#039;&amp;#039; and &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; builds are built in separate subdirectories of the &amp;#039;&amp;#039;build&amp;#039;&amp;#039; one which is at the same level as the &amp;#039;&amp;#039;source&amp;#039;&amp;#039; code. This is accounted for already in various internal file location dependent places and should not prove to be an issue (this can be researched in more detail by consulting the Qt Documentation about the [https://doc.qt.io/qt-5/qmake-variable-reference.html#config CONFIG] variable, specifically the &amp;lt;tt&amp;gt;debug_and_release_target&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;debug_and_release&amp;lt;/tt&amp;gt; values which both default to being used in this environment. If the machine on which the build is being done is detected to have more than one processor cores then the make will be done using all of them and will also have the &amp;lt;tt&amp;gt;-k&amp;lt;/tt&amp;gt; option set so that it keeps going to build as much as possible even if one or more files fail to compile.&lt;br /&gt;
&lt;br /&gt;
Finally, one the build has been successfully completed the final script &amp;lt;tt&amp;gt;package-mudlet-for-windows.sh&amp;lt;/tt&amp;gt; will copy the &amp;lt;tt&amp;gt;mudlet.exe&amp;lt;/tt&amp;gt; file (and the &amp;lt;tt&amp;gt;mudlet.exe.debug&amp;lt;/tt&amp;gt; file for a &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; type build) and place them in a directory &amp;lt;tt&amp;gt;~/src/mudlet/package-MINGW32|MINGW64-release|debug&amp;lt;/tt&amp;gt; as appropriate and copy in all the other files that will be needed to run the Mudlet application in a stand-alone manner, even on another machine that does not have a MSYS2/Mingw-w64 installation. In the case of debug builds it also includes the &amp;lt;tt&amp;gt;.debug&amp;lt;/tt&amp;gt; files for the Qt5 library files so that in the event of a crash in the main Mudlet code or the Qt framework it should be possible to identify the details of that crash. This is an advance over our current Windows builds. The downside to this is that, even after compressing all the files into an archive file that will be constructed in that directory (called &amp;lt;tt&amp;gt;Mudlet-MINGW32.zip&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Mudlet-MINGW64.zip&amp;lt;/tt&amp;gt; for the &amp;#039;&amp;#039;release&amp;#039;&amp;#039; builds or &amp;lt;tt&amp;gt;Mudlet-MINGW32-debug.zip&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Mudlet-MINGW64-debug.zip&amp;lt;/tt&amp;gt;) the &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; versions are significantly larger e.g. for a build of recent &amp;#039;&amp;#039;development&amp;#039;&amp;#039; branch code in 64-Bits the &amp;#039;&amp;#039;release&amp;#039;&amp;#039; archive file was 62 MBytes but the &amp;#039;&amp;#039;debug&amp;#039;&amp;#039; one was 400MByte!&lt;/div&gt;</summary>
		<author><name>Slysven</name></author>
	</entry>
</feed>