SWIG (Simplified Wrapper et Interface Generator) is a compiler that integrates C et C++ with languages including Perl, Python, Tcl, Ruby, PHP, Java, C#, D, Go, Lua, Octave, R, Scheme, Ocaml, Modula-3, Common Lisp, et Pike. SWIG can also export its parse tree into Lisp s-expressions et XML.
SWIG reads annotated C/C++ header files et 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.
Ce paquet est connu pour se construire correctement sur une plateforme LFS-7.5.
Téléchargement (HTTP) : http://downloads.sourceforge.net/swig/swig-2.0.12.tar.gz
Somme de contrôle MD5 du téléchargement : c3fb0b2d710cc82ed0154b91e43085a4
Taille du téléchargement : 5.06 Mo
Estimation de l'espace disque requis : 70 Mo (up to 1 Go for tests)
Estimation du temps de construction : 0.4 SBU (11 SBU for tests of Perl, Python, Lua, Ruby, Guile, tcl, and PHP)
boost-1.55.0 for tests, et any of the languages mentionned in the introduction, as run-time dependencies
Notes utilisateur : http://wiki.linuxfromscratch.org/blfs/wiki/swig
Installez SWIG en lançant les commandes suivantes :
./configure --prefix=/usr && make
Pour tester le résultat, tapez : make -k check. According to SWIG's documentation, the failure of some tests should not be considered harmful.
Maintenant, en tant qu'utilisateur root
:
make install && install -v -m755 -d /usr/share/doc/swig-2.0.12 && cp -v -R Doc/* /usr/share/doc/swig-2.0.12
--without-<language>
: allows
disabling the building of tests et examples for <language>,
but all the languages capabilities of SWIG are always built.
Last updated on 2013-12-14 20:03:50 +0100