[sword-devel] SWIG bindings for Sword

Andrew Sterling Hanenkamp sterling at hanenkamp.com
Tue May 8 18:19:52 MST 2007

Thanks, that got me started thinking in the right direction. There's one
detail I neglected to mention: I'm doing this on Mac OS X.

Here's what ended up working for me:

cd bindings/swig/package
vim autogen.sh

Here I edit the file so that cp does not use the -a option, which isn't
valid in the BSD-style cp used in Mac OS X.

libtoolize --force

This replaces the missing ltmain.sh as well as freshening some of the other
libtool files.

make perl_make

If I don't say just "perl_make" here, it barfs on a building one of the
other bindings I don't care about.

cd perl
sudo make install

Anyway, hope this may be helpful to someone else who'd like to build the
bindings. It would be nice if there were at least a basic README file
describing at least the basics to get someone going in the right direction.
I'd be willing to contribute such if the maintainers are interested.


On 5/8/07, Joachim Ansorg <nospam+sword-devel at joachim-ansorg.de> wrote:
> Hi,
> I had to install libtool and swig before this.
> cd bindings/swig/package
> ./autogen.sh
> ./configure
> make
> cd perl
> make install
> At least that did it for me (after several tries :). The build system
> looks
> kind of broken to me, though.
> in swig/examples/ is a short example how the swig bindings could be used.
> Joachim
> > I was interested in attempting to build the SWIG bindings for Sword in
> > order to use the Sword API in conjunction with a Perl project I'm
> working
> > on. However, I'm having some trouble figuring out how to build them.
> They
> > don't build with the regular ./configure as far as I can tell and
> > bindings/configure seems to be missing. I'm a CPAN guru and know C++ and
> > Perl pretty well, but my autoconf/automake and SWIG skills are pretty
> weak,
> > so I may be missing something obvious.
> >
> > Anyway, at least a finger pointing in the right direction would be
> > appreciated.
> >
> > Cheers,
> > Sterling
> --
> <>< Re: deemed
> www.bibletime.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.crosswire.org/pipermail/sword-devel/attachments/20070508/5928eb33/attachment.html 

More information about the sword-devel mailing list