From ecf1765b99462cbe17e0cf1b6d44c2c558cd3cc8 Mon Sep 17 00:00:00 2001
From: William S Fulton
-The swigwin distribution contains the SWIG Windows 32-bit executable, swig.exe, which will run on both 32-bit and 64-bit versions of Windows.
+The swigwin distribution contains the SWIG Windows 64-bit executable, swig.exe, which will only run on 64-bit versions of Windows.
If you want to build your own swig.exe have a look at Building swig.exe on Windows.
Ensure the SWIG executable is as supplied in the SWIG root directory in order for the examples to work.
Most languages require some environment variables to be set before running Visual C++.
-Note that Visual C++ must be re-started to pick up any changes in environment variables.
-Open up an example .dsp file, Visual C++ will prompt you to upgrade the project and convert
-it into an MSBuild project (.vcxproj file) and Solution (.sln file).
-Note that older versions of Visual C++ will simply create a workspace for you (.dsw file).
+Note that Visual Studio must be re-started to pick up any changes in environment variables.
+Open up an example .vcxproj file or .sln file, Visual Studio will prompt you to upgrade the project if necessary.
Ensure the Release build is selected then do a Rebuild Solution from the Build menu.
The required environment variables are displayed with their current values during the build.
The C# examples do not require any environment variables to be set as a C# project file is included.
-Just open up the .sln solution file in Visual Studio 2005 or later, select Release Build, and do a Rebuild Solution from the Build menu.
+Just open up the .sln solution file in Visual Studio 2019 or later, select Release Build, and do a Rebuild Solution from the Build menu.
The accompanying C# and C++ project files are automatically used by the solution file.
JAVA_INCLUDE : Set this to the directory containing jni.h
-Example using JDK1.3:
-PERL5_INCLUDE : Set this to the directory containing perl.h
-Example using nsPerl 5.004_04:
-
-PERL5_INCLUDE: D:\nsPerl5.004_04\lib\CORE
PYTHON_INCLUDE : Set this to the directory that contains Python.h
-Example using Python 2.1.1:
TCL_INCLUDE : Set this to the directory containing tcl.h
-Example using ActiveTcl 8.3.3.3
-R_INCLUDE : Set this to the directory containing R.h
-Example using R 2.5.1:
-RUBY_INCLUDE : Set this to the directory containing ruby.h
-Example using Ruby 1.6.4:
JAVA_BIN : Set this to the bin directory containing javac.exe
+Example using the openjdk package installed in a Conda environment:
-JAVA_INCLUDE: D:\jdk1.3\include
-JAVA_BIN: D:\jdk1.3\bin
-
-3.2.1.3 Perl
-
-
-
-PERL5_LIB : Set this to the Perl library including path for linking
-PERL5_LIB: D:\nsPerl5.004_04\lib\CORE\perl.lib
+JAVA_INCLUDE: C:\miniconda3\envs\java\Library\lib\jvm\include
+JAVA_BIN: C:\miniconda3\envs\java\Library\lib\jvm\bin
PYTHON_LIB : Set this to the Python library including path for linking
+Example using Python 3.13 installed in a Conda environment:
-PYTHON_INCLUDE: D:\python21\include
-PYTHON_LIB: D:\python21\libs\python21.lib
+PYTHON_INCLUDE: C:\miniconda3\envs\python\include
+PYTHON_LIB: C:\miniconda3\envs\python\libs\python313.lib
TCL_LIB : Set this to the TCL library including path for linking
+Example using ActiveTcl 8.6
-TCL_INCLUDE: D:\tcl\include
-TCL_LIB: D:\tcl\lib\tcl83.lib
-
-3.2.1.6 R
-
-
-
-R_LIB : Set this to the R library (Rdll.lib) including path for linking. The library needs to be built as described in the R README.packages file (the pexports.exe approach is the easiest).
-
-R_INCLUDE: C:\Program Files\R\R-2.5.1\include
-R_LIB: C:\Program Files\R\R-2.5.1\bin\Rdll.lib
-
-3.2.1.7 Ruby
-
-
-
-RUBY_LIB : Set this to the ruby library including path for linking
-
-RUBY_INCLUDE: D:\ruby\lib\ruby\1.6\i586-mswin32
-RUBY_LIB: D:\ruby\lib\mswin32-ruby16.lib
+TCL_INCLUDE: C:\ActiveTcl\include
+TCL_LIB: C:\ActiveTcl\lib\tcl86t.lib
-There are various ways to build the SWIG executable including CMake which is able to generate project files for building with Visual Studio MSVC.
+There are various ways to build the SWIG executable including CMake which is able to generate project files for building with Visual Studio MSVC.
SWIG can also be compiled and run using MSYS2 with MinGW-w64, Cygwin or MinGW, all of which provide a Unix like front end to Windows and comes free with the GCC C/C++ compiler.
SWIG can also be compiled with MSYS2 using MSVC and SWIG MSVC wrapper.