SWIG-3.0.2

Introduction à SWIG

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.6.

Information sur le paquet

  • Téléchargement (HTTP) : http://downloads.sourceforge.net/swig/swig-3.0.2.tar.gz

  • Somme de contrôle MD5 du téléchargement : 62f9b0d010cef36a13a010dc530d0d41

  • Taille du téléchargement : 5.42 Mo

  • Estimation de l'espace disque requis : 77 Mo (up to 1.1 Go for tests)

  • Estimation du temps de construction : 0.4 SBU (24 SBU for tests of Guile, Go, Java, Lua, Perl, PHP, Python, Ruby, and tcl)

Dépendances de SWIG

Requises

PCRE-8.35

Facultative

boost-1.56.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

Installation de 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-3.0.2 &&
cp -v -R Doc/* /usr/share/doc/swig-3.0.2

Explications des commandes

--without-<language> : allows disabling the building of tests et examples for <language>, but all the languages capabilities of SWIG are always built.

Contenu

Programmes installés: swig et ccache-swig
Bibliothèque installée: Aucun
Répertoires installés: /usr/share/swig/3.0.2 et /usr/share/doc/swig-3.0.2

Description courte

swig

takes an interface file containing C/C++ declarations et SWIG special instructions, et generates the corresponding wrapper code needed to build extension modules.

ccache-swig

is a compiler cache, which speeds up re-compilation of C/C++/SWIG code.

Last updated on 2013-12-14 20:03:50 +0100