Difference between revisions of "Swig"

From PLplotWiki
Jump to: navigation, search
(Added windows swig info.)
(No difference)

Revision as of 13:52, 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.