From 7c7ac35dfbc3b8a5c82404c24cdffcb0abe57379 Mon Sep 17 00:00:00 2001
From: William S Fulton
Date: Sun, 12 Feb 2006 01:14:12 +0000
Subject: [PATCH] Add in speedy's instructions for building SWIG using MinGW
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8802 626c5289-ae23-0410-ae9c-e8d60b6d4f22
---
SWIG/Doc/Manual/Windows.html | 101 ++++++++++++++++++++++++++++++++++-
1 file changed, 99 insertions(+), 2 deletions(-)
diff --git a/SWIG/Doc/Manual/Windows.html b/SWIG/Doc/Manual/Windows.html
index d42b7b733..db2f30b6a 100644
--- a/SWIG/Doc/Manual/Windows.html
+++ b/SWIG/Doc/Manual/Windows.html
@@ -202,21 +202,118 @@ This information is provided for those that want to modify the SWIG source code
Normally this is not needed, so most people will want to ignore this section.
-3.3.1.1 Building swig.exe using MinGW and MSYS
+3.3.1.1 Building swig.exe using MinGW and MSYS
+
+The short abbreviated instructions follow...
+
+
- Install MinGW and MSYS from the MinGW site. This provides a Unix environment on Windows.
- Follow the usual Unix instructions in the README file in the SWIG root directory to build swig.exe from the MinGW command prompt.
+
+The step by step instructions to download and install MinGW and MSYS, then download and build the latest version of SWIG from cvs follow...
+
+
+
+Pitfall note:
+Execute the steps in the order shown and don't use spaces in path names. In fact it is best to use the default installation directories.
+
+
+
+ -
+ Download the following packages from the MinGW download page
+ or MinGW SourceForge download page.
+ Note that at the time of writing, the majority of these are in the Current
+ release list and some are in the Snapshot or Previous release list.
+
+
+
+ - MinGW-3.1.0-1.exe
+ - MSYS-1.0.11-2004.04.30-1.exe
+ - msysDTK-1.0.1.exe
+ - bison-2.0-MSYS.tar.gz
+ - msys-autoconf-2.59.tar.bz2
+ - msys-automake-1.8.2.tar.bz2
+
+
+ -
+ Install MinGW-3.1.0-1.exe (C:\MinGW is default location.)
+
+
+ -
+ Install MSYS-1.0.11-2004.04.30-1.exe. Make sure you install it on the same
+ windows drive letter as MinGW (C:\msys\1.0 is default).
+ In the post install script,
+
+
+ - Answer y to the "do you wish to continue with the post install?"
+ - Answer y to the "do you have MinGW installed?"
+ - Type in the the folder in which you installed MinGW (C:/MinGW is default)
+
+
+ -
+ Install msysDTK-1.0.1.exe to the same folder that you installed MSYS (C:\msys\1.0 is default).
+
+
+ -
+ Copy the followig to the MSYS install folder (C:\msys\1.0 is default):
+
+
+ - msys-automake-1.8.2.tar.bz2
+ - msys-autoconf-2.59.tar.bz2
+ - bison-2.0-MSYS.tar.gz
+
+
+ -
+ Start the MSYS command prompt and execute:
+
+cd /
+tar -jxf msys-automake-1.8.2.tar.bz2
+tar -jxf msys-autoconf-2.59.tar.bz2
+tar -zxf bison-2.0-MSYS.tar.gz
+
+
+
+ -
+ To get the latest SWIG CVS, type in the following:
+
+mkdir /usr/src
+cd /usr/src
+export CVSROOT=:pserver:anonymous@cvs.sourceforge.net:/cvsroot/swig
+cvs login
+ (Logging in to anonymous@cvs.sourceforge.net)
+ CVS password: <Just Press Return Here>
+cvs -z3 co SWIG
+
+
+ Pitfall note:
+If you want to check out SWIG to a different folder to the proposed
+/usr/src/SWIG, do not use MSYS emulated windows drive letters, because
+the autotools will fail miserably on those.
+
+
+ -
+ You are now ready to build SWIG. Execute the following commands to build swig.exe:
+
+cd /usr/src/SWIG
+./autogen.sh
+./configure
+make
+
+
+
+
3.3.1.2 Building swig.exe using Cygwin
Note that SWIG can also be built using Cygwin.
-However, the SWIG will then require the Cygwin DLL when executing.
+However, SWIG will then require the Cygwin DLL when executing.
Follow the Unix instructions in the README file in the SWIG root directory.
Note that the Cygwin environment will also allow one to regenerate the autotool generated files which are supplied with the release distribution.
These files are generated using the autogen.sh script and will only need regenerating in circumstances such as changing the build system.