[sword-devel] Swig Python bindings do not build

Jason Turner lefticus at gmail.com
Thu Mar 9 10:04:32 MST 2006

Your first error is my doing, I'll try to get it fixed soon, but it
will probably be in April before I can. I sumbitted some patches a
little while ago to get the csharp library compiling with
VisualStudio.NET. The fix that your propose might not work across the
board, and honestly I don't have time to look into it ATM.

You will probably have better luck with the last released version over
the SVN version right now. However, if you want to keep looking at the
SVN version, you should check and make sure the the Treekey.h included
by Sword.cxx is the one that you think it is.

God Bless,

On 3/9/06, David Csercsics <aarg at shaw.ca> wrote:
> The swig Python bindings have a couple issues. I checked out the latest
> svn and installed the libraries. Then I did the following:
> cd sword-build/bindings/swig/package
> ./autogen.sh
> ./configure --prefix=/usr --sysconfdir=/etc
> make pythonswig
> This produces the following:
> mkdir -p python
> /usr/bin/swig -python -c++ -shadow -o python/Sword.cxx -I. ./sword.i
> ./sword.i:19: Error: Unable to find '../../include/defs.h'
> make: *** [pythonswig] Error 1
> Line 19 of  sword.i should read:
> %include "../../../include/defs.h"
> That is where the file is located. I made the change and this time make pythonswig completes successfully. So the next thing I did was:
> make python_make
> And i got this error:
> mkdir -p python
> echo "writing python/setup.py"
> writing python/setup.py
> cd python && /usr/bin/python setup.py build_ext -I/usr/include/sword -L/usr/lib -lsword
> running build_ext
> building '_Sword' extension
> creating build
> creating build/temp.linux-i686-2.4
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O3 -march=i486 -mcpu=i686 -fPIC -DSWIG=1 -I/usr/include/sword -I/usr/include/python2.4 -c Sword.cxx -o build/temp.linux-i686-2.4/Sword.o
> Sword.cxx: In function `PyObject* _wrap_TreeKey_getFullName(PyObject*,
>    PyObject*)':
>    Sword.cxx:12005: error: `getFullName' undeclared (first use this function)
>    Sword.cxx:12005: error: (Each undeclared identifier is reported only once for
>       each function it appears in.)
>       error: command 'gcc' failed with exit status 1
>       make: *** [python_make] Error 1
> Is there something I've left out here? What would be places to look for
> a solution. I've not look at the source code at all so I'm not really
> sure where the problem is exactly. My friendly search engine didn't turn
> up any previous reports of this problem so I thought I'd send one here. Hopefully this was helpful.
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

http://emptycrate.com Games, Programming, Travel & other stuff

More information about the sword-devel mailing list