Difference between revisions of "DevTools:Bindings"

From CrossWire Bible Society
Jump to: navigation, search
(Created page with "==Sword Bindings== ===SWIG bindings == In order to use libsword from Perl, Python or other scripting languages you need to compile the SWIG bindings section too. sudo apt-get...")
 
(Mentions the python 3 bindings package)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Sword Bindings==
 
==Sword Bindings==
  
===SWIG bindings ==
+
=== SWIG bindings ===
In order to use libsword from Perl, Python or other scripting languages you need to compile the SWIG bindings section too.
+
In order to use libsword from Perl, Python or other scripting languages you need to compile the [http://en.wikipedia.org/wiki/SWIG SWIG] [http://en.wikipedia.org/wiki/Language_binding bindings] section too.
  
 
   sudo apt-get install swig
 
   sudo apt-get install swig
Line 13: Line 13:
 
   cd perl
 
   cd perl
 
   sudo make install
 
   sudo make install
 +
 +
=== Python 3 bindings ===
 +
An official package exists to use libsword from Python.
 +
 +
;Debian, Ubuntu, Mint:
 +
sudo apt-get install python3-sword
 +
 +
 +
[[Category:Bindings]]
 +
[[Category:Development tools]]
 +
[[Category:SWORD]]

Latest revision as of 19:11, 27 March 2021

Sword Bindings

SWIG bindings

In order to use libsword from Perl, Python or other scripting languages you need to compile the SWIG bindings section too.

 sudo apt-get install swig
 cd bindings/swig/package
 libtoolize --force
 ./autogen.sh
 ./configure
 make perlswig
 make perl_make
 cd perl
 sudo make install

Python 3 bindings

An official package exists to use libsword from Python.

Debian, Ubuntu, Mint
sudo apt-get install python3-sword