%general-entities; ]> $LastChangedBy$ $Date$ SWIG-&swig-version; SWIG Introduction to SWIG SWIG (Simplified Wrapper and Interface Generator) is a compiler that integrates C and C++ with languages including Perl, Python, Tcl, Ruby, PHP, Java, C#, D, Go, Lua, Octave, R, Scheme, Ocaml, Modula-3, Common Lisp, and Pike. SWIG can also export its parse tree into Lisp s-expressions and XML. SWIG reads annotated C/C++ header files and creates wrapper code (glue code) in order to make the corresponding C/C++ libraries available to the listed languages, or to extend C/C++ programs with a scripting language. &lfs77_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &swig-md5sum; Download size: &swig-size; Estimated disk space required: &swig-buildsize; Estimated build time: &swig-time; SWIG Dependencies Required Optional for tests, and any of the languages mentionned in the introduction, as run-time dependencies User Notes: Installation of SWIG Fix an issue with gccgo-4.9.2: sed -e 's/"\.")/"_")/' -i Source/Modules/go.cxx Install SWIG by running the following commands: ./configure --prefix=/usr \ --without-clisp \ --without-maximum-compile-warnings && make To test the results, issue: make -k check. If you have both and installed, only the Python-2 tests are run. You can run test for Python-3 by issuing PY3=1 make check-python-examples followed by PY3=1 make check-python-test-suite. According to SWIG's documentation, the failure of some tests should not be considered harmful. Now, as the root user: make install && install -v -m755 -d /usr/share/doc/swig-&swig-version; && cp -v -R Doc/* /usr/share/doc/swig-&swig-version; Command Explanations --without-maximum-compile-warnings: disables compiler ansi conformance enforcement, which triggers errors in the Lua headers (starting with Lua 5.3). : allows disabling the building of tests and examples for <language>, but all the languages capabilities of SWIG are always built. We use it for Clisp, because the SWIG implementation is very incomplete and a lot of tests fail. Contents Installed Programs Installed Library Installed Directories swig and ccache-swig None /usr/share/swig/&swig-version; and /usr/share/doc/swig-&swig-version; Short Descriptions swig takes an interface file containing C/C++ declarations and SWIG special instructions, and generates the corresponding wrapper code needed to build extension modules. swig ccache-swig is a compiler cache, which speeds up re-compilation of C/C++/SWIG code. ccache-swig