<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Swig</title><link>https://sourceforge.net/p/plplot/wiki/Swig/</link><description>Recent changes to Swig</description><atom:link href="https://sourceforge.net/p/plplot/wiki/Swig/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 03 Nov 2018 21:24:16 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/plplot/wiki/Swig/feed" rel="self" type="application/rss+xml"/><item><title>Swig modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/Swig/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,3 +1,15 @@
+
+
 Description
 -----------

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sat, 03 Nov 2018 21:24:16 -0000</pubDate><guid>https://sourceforge.net4a0316e37264699fa138ad284d294e6ae9b923db</guid></item><item><title>Swig modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/Swig/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sun, 05 Oct 2014 20:07:51 -0000</pubDate><guid>https://sourceforge.netaf240c3ba990dfe7e020e4d5fd4c0dde2d525803</guid></item><item><title>Swig modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/Swig/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="description"&gt;Description&lt;/h2&gt;
&lt;p&gt;&lt;a class="" href="http://www.swig.org" rel="nofollow"&gt;SWIG&lt;/a&gt; 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.&lt;/p&gt;
&lt;h2 id="instructions-for-mac-os-x"&gt;Instructions for Mac OS X&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;The SWIG executable which is provided by Apple (&lt;em&gt;/usr/bin/swig&lt;/em&gt;, version 1.3.31) is too old, at least for the &lt;a class="" href="/p/plplot/wiki/Lua/" title="wikilink"&gt;Lua&lt;/a&gt; bindings. For Python and Java there is maybe no need to install a new version of SWIG.&lt;/li&gt;
&lt;li&gt;Download &lt;a class="" href="http://sourceforge.net/projects/swig/files/swig/swig-1.3.40/swig-1.3.40.tar.gz/download"&gt;SWIG 1.3.40 tar file&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Untar &lt;em&gt;swig-1.3.40.tar.gz&lt;/em&gt; into a folder of your choice&lt;/li&gt;
&lt;li&gt;Cd into the folder and create a build folder&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;mkdir build&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;cd build&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Configure, build and install SWIG. Omit the &lt;em&gt;--prefix&lt;/em&gt; flag if you intend to install swig in the standard path (&lt;em&gt;/usr/local&lt;/em&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;./configure --prefix=$HOME/local/swig-1.3.40&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;make &amp;amp;&amp;amp; make install&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you installed SWIG to a nonstandard location add the bin directory to the path by editing your &lt;em&gt;.profile&lt;/em&gt; file in your home directory. Add the following lines&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;# add swig to PATH&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;export PATH=$HOME/local/swig-1.3.40/bin:$PATH&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="instructions-for-linux"&gt;Instructions for Linux&lt;/h2&gt;
&lt;p&gt;N/A&lt;/p&gt;
&lt;h2 id="instructions-for-windows"&gt;Instructions for Windows&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Download &lt;a class="" href="http://prdownloads.sourceforge.net/swig/swigwin-1.3.36.zip"&gt;SWIG zip&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Unzip swigwin-1.3.36.zip into a folder of your choice&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="set-cmake-paths"&gt;Set CMake paths&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;set environment variables (for MinGW and Visual C++) and add SWIG directory to PATH&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;set SWIGDIR=C:\tools\swigwin-1.3.36&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;set PATH=%SWIGDIR%;%PATH%&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;set CMAKE_INCLUDE_PATH=%SWIGDIR%\lib;%CMAKE_INCLUDE_PATH%&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;CMake is now able to find SWIG.&lt;/p&gt;
&lt;p&gt;The content of this page is available under the &lt;a class="" href="http://www.gnu.org/copyleft/fdl.html" rel="nofollow"&gt;GNU Free Documentation License 1.2&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sat, 04 Oct 2014 06:40:56 -0000</pubDate><guid>https://sourceforge.netfc913cff940f8fda723c6d34a5275ada5ffcdfcc</guid></item></channel></rss>