Difference between revisions of "Swig"

From PLplotWiki
Jump to: navigation, search
(Added windows swig info.)
 
(fix case)
Line 13: Line 13:
 
== Instructions for Windows ==
 
== Instructions for Windows ==
  
* Download [http://prdownloads.sourceforge.net/swig/swigwin-1.3.36.zip swig zip]
+
* Download [http://prdownloads.sourceforge.net/swig/swigwin-1.3.36.zip SWIG zip]
 
* Unzip swigwin-1.3.36.zip into a folder of your choice
 
* Unzip swigwin-1.3.36.zip into a folder of your choice
  
 
=== Set CMake paths ===
 
=== Set CMake paths ===
* set environment variables (for MinGW and Visual C++) and add swig directory to PATH
+
* set environment variables (for MinGW and Visual C++) and add SWIG directory to PATH
 
  set SWIGDIR=C:\tools\swigwin-1.3.36
 
  set SWIGDIR=C:\tools\swigwin-1.3.36
 
  set PATH=%SWIGDIR%;%PATH%
 
  set PATH=%SWIGDIR%;%PATH%
 
  set CMAKE_INCLUDE_PATH=%SWIGDIR%\lib;%CMAKE_INCLUDE_PATH%
 
  set CMAKE_INCLUDE_PATH=%SWIGDIR%\lib;%CMAKE_INCLUDE_PATH%
  
CMake is now able to find swig.
+
CMake is now able to find SWIG.

Revision as of 14:53, 4 January 2009

Description

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. SWIG is used with different types of languages including common scripting languages such as Perl, PHP, Python, Tcl and Ruby.

Instructions for Mac OS X

N/A

Instructions for Linux

N/A

Instructions for Windows

  • Download SWIG zip
  • Unzip swigwin-1.3.36.zip into a folder of your choice

Set CMake paths

  • set environment variables (for MinGW and Visual C++) and add SWIG directory to PATH
set SWIGDIR=C:\tools\swigwin-1.3.36
set PATH=%SWIGDIR%;%PATH%
set CMAKE_INCLUDE_PATH=%SWIGDIR%\lib;%CMAKE_INCLUDE_PATH%

CMake is now able to find SWIG.