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.
This package is known to build and work properly using an LFS-7.5 platform.
Download (HTTP): http://downloads.sourceforge.net/swig/swig-3.0.0.tar.gz
Download MD5 sum: 9c8278fad527dda4bf38edffe5acc394
Download size: 5.29 MB
Estimated disk space required: 80 MB (up to 1 GB for tests)
Estimated build time: 0.4 SBU (16 SBU for tests of Guile, Java, Lua, Perl, PHP, Python, Ruby, and tcl)
Boost-1.55.0 for tests, and any of the languages mentionned in the introduction, as run-time dependencies
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/swig
Install SWIG by running the following commands:
./configure --prefix=/usr && make
To test the results, issue: make -k check. According to SWIG's documentation, the failure of some tests should not be considered harmful.
Now, as the
make install && install -v -m755 -d /usr/share/doc/swig-3.0.0 && cp -v -R Doc/* /usr/share/doc/swig-3.0.0
disabling the building of tests and examples for <language>,
but all the languages capabilities of SWIG are always built.
Last updated on 2014-03-22 11:55:15 +0000