I am interested in Swig & Python for [sword-devel] Re: Swig Python
bindings do not build
J H Stovall
pythondrs at yahoo.com
Fri Mar 17 05:59:41 MST 2006
I am interested in Swig & Python for sword-devel. I am a professor.
Python is the easiest language to teach beginners. It does not
have a dead end like BASIC. Instead it has the OO power of Java
and the functional power of most of LISP for those who need and
I'm tired of learning dozens of computer languages. I want to help
sword. Python for me at least provides the most appealing way to
I am sorry I don't yet know how to overcome this problem so we
can move forward like the PyLucene project did. If someone else
knows please announce your plans and needs.
pythondrs a user of yahoo.com
Jason Turner <lefticus at gmail.com> wrote:
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.
On 3/9/06, David Csercsics 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
> ./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*,
> 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
> Instructions to unsubscribe/change your settings at above page
http://emptycrate.com Games, Programming, Travel & other stuff
sword-devel mailing list: sword-devel at crosswire.org
Instructions to unsubscribe/change your settings at above page
Find great deals to the top 10 hottest destinations!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sword-devel