diff options
author | Erik Smistad <ersmistad@gmail.com> | 2021-03-19 22:31:32 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2021-03-19 22:31:32 +0000 |
commit | 45c015b6319927fed962967c2a2c7fb816076043 (patch) | |
tree | 0b28ff605745b73ddb73631f6b5b7804e2019daf | |
parent | 84259dfc6e4aa80442f38f1bc4a10b4aa9eaed00 (diff) | |
download | swig-45c015b6319927fed962967c2a2c7fb816076043.tar.gz |
Added windows build instructions for MSYS2
-rw-r--r-- | Doc/Manual/Contents.html | 1 | ||||
-rw-r--r-- | Doc/Manual/Windows.html | 57 |
2 files changed, 56 insertions, 2 deletions
diff --git a/Doc/Manual/Contents.html b/Doc/Manual/Contents.html index 0370d4724..47b41186e 100644 --- a/Doc/Manual/Contents.html +++ b/Doc/Manual/Contents.html @@ -96,6 +96,7 @@ <li><a href="Windows.html#Windows_swig_exe">Building swig.exe on Windows</a> <ul> <li><a href="Windows.html#Windows_cmake">Building swig.exe using CMake</a> +<li><a href="Windows.html#Windows_mingw_msys">Building swig.exe using MSYS2</a> <li><a href="Windows.html#Windows_mingw_msys">Building swig.exe using MinGW and MSYS</a> <li><a href="Windows.html#Windows_cygwin">Building swig.exe using Cygwin</a> </ul> diff --git a/Doc/Manual/Windows.html b/Doc/Manual/Windows.html index 001d0ef46..9365070e9 100644 --- a/Doc/Manual/Windows.html +++ b/Doc/Manual/Windows.html @@ -34,6 +34,7 @@ <li><a href="#Windows_swig_exe">Building swig.exe on Windows</a> <ul> <li><a href="#Windows_cmake">Building swig.exe using CMake</a> +<li><a href="#Windows_mingw_msys">Building swig.exe using MSYS2</a> <li><a href="#Windows_mingw_msys">Building swig.exe using MinGW and MSYS</a> <li><a href="#Windows_cygwin">Building swig.exe using Cygwin</a> </ul> @@ -296,7 +297,59 @@ swig.exe -help <pre>-python -c++ -o C:\Temp\doxygen_parsing.cpp C:\swig\Examples\test-suite\doxygen_parsing.i</pre> </div> -<H4><a name="Windows_mingw_msys">3.3.1.2 Building swig.exe using MinGW and MSYS</a></H4> +<H4><a name="Windows_mingw_msys">3.3.1.2 Building swig.exe using MSYS2</a></H4> + + +<p> +Download and install MSYS2 from <a href="https://www.msys2.org/">www.msys2.org</a> (tested with version msys2-x86_64-20201109). +Launch the MSYS2 shell. +</p> +<p> +Install the packages needed to build swig:<br> +</p> + +<div class="shell"> +<pre> +pacman -S git autoconf automake bison gcc make pcre-devel +</pre> +</div> + +<p> +Clone the repository to /usr/src/: +</p> + +<div class="shell"> +<pre> +mkdir /usr/src/ +cd /usr/src/ +git clone https://github.com/swig/swig.git +</pre> +</div> + +<p> +Configure and build: +</p> + +<div class="shell"> +<pre> +cd /usr/src/swig +./autogen.sh +./configure +make +</pre> +</div> + +<p> +Finally you may also want to install SWIG: +</p> + +<div class="shell"> +<pre> +make install +</pre> +</div> + +<H4><a name="Windows_mingw_msys">3.3.1.3 Building swig.exe using MinGW and MSYS</a></H4> <p> @@ -414,7 +467,7 @@ make </ol> -<H4><a name="Windows_cygwin">3.3.1.3 Building swig.exe using Cygwin</a></H4> +<H4><a name="Windows_cygwin">3.3.1.4 Building swig.exe using Cygwin</a></H4> <p> |