Swig

From PLplotWiki
Revision as of 14:53, 4 January 2009 by Smekal (Talk | contribs) (fix case)

Jump to: navigation, search

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.