Trying to follow guide here: http://code.google.com/p/bpbible/wiki/RunningBPBible I've downloaded the sword engine from SVN, svn co https://crosswire.org/svn/sword/trunk/ sword In the directory sword/bindings/swig/package, I've run ./autogen.sh, then ./configure, then make pythonswig and get this: mkdir -p python Is there something I'm missing? |
|||

installed swig1.3
running apt-get install swig1.3 gets this further, and gets a new error
mkdir -p python
/usr/bin/swig -python -c++ -shadow -o python/Sword.cxx -I. -I/usr/include/sword ./sword.i
/usr/include/sword/multimapwdef.h:26: Warning(389): operator[] ignored (consider using %extend)
/usr/include/sword/versemgr.h:124: Warning(312): Nested class not currently supported (ignored).
/usr/include/sword/versemgr.h:149: Warning(312): Nested class not currently supported (ignored).
/usr/include/sword/treekey.h:61: Warning(312): Nested class not currently supported (ignored).
/usr/include/sword/versetreekey.h:39: Warning(402): Base class 'TreeKey::PositionChangeListener' is incomplete.
/usr/include/sword/treekey.h:61: Warning(402): Only forward declaration 'TreeKey::PositionChangeListener' was found.
/usr/include/sword/versekey.h:166: Warning(509): Overloaded method sword::VerseKey::VerseKey(sword::SWKey const &) is shadowed by sword::VerseKey::VerseKey(sword::SWKey const *) at /usr/include/sword/versekey.h:151.
/usr/include/sword/versekey.h:151: Warning(509): Overloaded method sword::VerseKey::VerseKey(sword::SWKey const *) is shadowed by sword::VerseKey::VerseKey(sword::SWKey const &) at /usr/include/sword/versekey.h:166.
/usr/include/sword/versemgr.h:44: Warning(451): Setting a const char * variable may leak memory.
/usr/include/sword/versemgr.h:54: Warning(451): Setting a const char * variable may leak memory.
/usr/include/sword/swmodule.h:200: Warning(509): Overloaded method sword::SWModule::setKey(sword::SWKey const &) is shadowed by sword::SWModule::setKey(sword::SWKey const *) at /usr/include/sword/swmodule.h:193.
/usr/include/sword/swmodule.h:208: Warning(509): Overloaded method sword::SWModule::SetKey(sword::SWKey const &) is shadowed by sword::SWModule::SetKey(sword::SWKey const *) at /usr/include/sword/swmodule.h:204.
/usr/include/sword/swmodule.h:674: Warning(503): Can't wrap 'operator SWKey&' unless renamed to a valid identifier.
/usr/include/sword/swmodule.h:674: Warning(503): Can't wrap 'operator SWKey*' unless renamed to a valid identifier.
/usr/include/sword/swmgr.h:161: Warning(451): Setting a const char * variable may leak memory.
/usr/include/sword/swlocale.h:73: Warning(451): Setting a const char * variable may leak memory.
/usr/include/sword/swcom.h:80: Warning(503): Can't wrap 'operator SWKey&' unless renamed to a valid identifier.
/usr/include/sword/swcom.h:80: Warning(503): Can't wrap 'operator SWKey*' unless renamed to a valid identifier.
/usr/include/sword/rawcom.h:61: Warning(503): Can't wrap 'operator SWKey&' unless renamed to a valid identifier.
/usr/include/sword/rawcom.h:61: Warning(503): Can't wrap 'operator SWKey*' unless renamed to a valid identifier.
/usr/include/sword/zcom.h:71: Warning(503): Can't wrap 'operator SWKey&' unless renamed to a valid identifier.
/usr/include/sword/zcom.h:71: Warning(503): Can't wrap 'operator SWKey*' unless renamed to a valid identifier.
/usr/include/sword/swgenbook.h:56: Warning(503): Can't wrap 'operator SWKey&' unless renamed to a valid identifier.
/usr/include/sword/swgenbook.h:56: Warning(503): Can't wrap 'operator SWKey*' unless renamed to a valid identifier.
/usr/include/sword/rawgenbook.h:61: Warning(503): Can't wrap 'operator SWKey&' unless renamed to a valid identifier.
/usr/include/sword/rawgenbook.h:61: Warning(503): Can't wrap 'operator SWKey*' unless renamed to a valid identifier.
/usr/include/sword/swld.h:68: Warning(503): Can't wrap 'operator SWKey&' unless renamed to a valid identifier.
/usr/include/sword/swld.h:68: Warning(503): Can't wrap 'operator SWKey*' unless renamed to a valid identifier.
/usr/include/sword/rawld.h:64: Warning(503): Can't wrap 'operator SWKey&' unless renamed to a valid identifier.
/usr/include/sword/rawld.h:64: Warning(503): Can't wrap 'operator SWKey*' unless renamed to a valid identifier.
/usr/include/sword/rawld4.h:64: Warning(503): Can't wrap 'operator SWKey&' unless renamed to a valid identifier.
/usr/include/sword/rawld4.h:64: Warning(503): Can't wrap 'operator SWKey*' unless renamed to a valid identifier.
/usr/include/sword/zld.h:71: Warning(503): Can't wrap 'operator SWKey&' unless renamed to a valid identifier.
/usr/include/sword/zld.h:71: Warning(503): Can't wrap 'operator SWKey*' unless renamed to a valid identifier.
/usr/include/sword/swtext.h:67: Warning(503): Can't wrap 'operator SWKey&' unless renamed to a valid identifier.
/usr/include/sword/swtext.h:67: Warning(503): Can't wrap 'operator SWKey*' unless renamed to a valid identifier.
/usr/include/sword/rawtext.h:56: Warning(503): Can't wrap 'operator SWKey&' unless renamed to a valid identifier.
/usr/include/sword/rawtext.h:56: Warning(503): Can't wrap 'operator SWKey*' unless renamed to a valid identifier.
/usr/include/sword/ztext.h:87: Warning(503): Can't wrap 'operator SWKey&' unless renamed to a valid identifier.
/usr/include/sword/ztext.h:87: Warning(503): Can't wrap 'operator SWKey*' unless renamed to a valid identifier.
Those aren't errors, just
Those aren't errors, just warnings. They are expected.
Try continuing on with
make python_make
Hmm. That gives me this: make
Hmm. That gives me this:
make python_make
mkdir -p python
echo "writing python/setup.py"
writing python/setup.py
cd python && /usr/bin/python setup.py build_ext -L/usr/lib -lsword
running build_ext
building '_Sword' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/sword -I.. -I../.. -I/usr/include/python2.6 -c Sword.cxx -o build/temp.linux-i686-2.6/Sword.o
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
make: *** [python_make] Error 1
It looks like g++ (or gcc)
It looks like g++ (or gcc) isn't there or working.
I'm not sure what you need to install for this to work.
Did you manage to build SWORD? I would have thought it would have used g++.