<div dir="ltr">I continue to get the following build errors with the python bindings using the following:<br>#cmake -DSWORD_BINDINGS="Perl Python" ../sword<br><br><br><div>.... CUT ...<br><br></div><div>[ 90%] Generating Sword.cxx<br>
/usr/local/src/sword/include/multimapwdef.h:26: Warning 389: operator[] ignored (consider using %extend)<br>/usr/local/src/sword/include/versemgr.h:124: Warning 325: Nested class not currently supported (Book ignored)<br>
/usr/local/src/sword/include/versemgr.h:149: Warning 325: Nested class not currently supported (System ignored)<br>/usr/local/src/sword/include/treekey.h:61: Warning 325: Nested class not currently supported (PositionChangeListener ignored)<br>
running build<br>running build_py<br>creating build<br>creating build/lib.linux-x86_64-2.7<br>copying Sword.py -> build/lib.linux-x86_64-2.7<br>running build_ext<br>building '_Sword' extension<br>creating build/temp.linux-x86_64-2.7<br>
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/src/sword/bindings/swig/python -I/usr/local/src/sword/include -I/usr/local/src/sword/bindings/swig/python/.. -I/usr/local/src/sword/bindings/swig/python../../ -I/usr/include/python2.7 -c Sword.cxx -o build/temp.linux-x86_64-2.7/Sword.o<br>
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]<br>Sword.cxx: In function ‘PyObject* _wrap_SWDisplay_Display(PyObject*, PyObject*)’:<br>Sword.cxx:44967:43: warning: ‘char sword::SWDisplay::Display(sword::SWModule&)’ is deprecated (declared at /usr/local/src/sword/include/swdisp.h:50) [-Wdeprecated-declarations]<br>
Sword.cxx: In function ‘PyObject* _wrap_SWModule_StripText__SWIG_0(PyObject*, PyObject*)’:<br>Sword.cxx:49480:65: warning: ‘const char* sword::SWModule::StripText(const char*, int)’ is deprecated (declared at /usr/local/src/sword/include/swmodule.h:634) [-Wdeprecated-declarations]<br>
Sword.cxx: In function ‘PyObject* _wrap_SWModule_StripText__SWIG_1(PyObject*, PyObject*)’:<br>Sword.cxx:49521:60: warning: ‘const char* sword::SWModule::StripText(const char*, int)’ is deprecated (declared at /usr/local/src/sword/include/swmodule.h:634) [-Wdeprecated-declarations]<br>
Sword.cxx: In function ‘PyObject* _wrap_SWModule_StripText__SWIG_2(PyObject*, PyObject*)’:<br>Sword.cxx:49552:42: warning: ‘const char* sword::SWModule::StripText(const char*, int)’ is deprecated (declared at /usr/local/src/sword/include/swmodule.h:634) [-Wdeprecated-declarations]<br>
Sword.cxx: In function ‘PyObject* _wrap_SWModule_RenderText__SWIG_0(PyObject*, PyObject*)’:<br>Sword.cxx:49850:71: warning: ‘const char* sword::SWModule::RenderText(const char*, int, bool)’ is deprecated (declared at /usr/local/src/sword/include/swmodule.h:645) [-Wdeprecated-declarations]<br>
Sword.cxx: In function ‘PyObject* _wrap_SWModule_RenderText__SWIG_1(PyObject*, PyObject*)’:<br>Sword.cxx:49900:66: warning: ‘const char* sword::SWModule::RenderText(const char*, int, bool)’ is deprecated (declared at /usr/local/src/sword/include/swmodule.h:645) [-Wdeprecated-declarations]<br>
Sword.cxx: In function ‘PyObject* _wrap_SWModule_RenderText__SWIG_2(PyObject*, PyObject*)’:<br>Sword.cxx:49941:61: warning: ‘const char* sword::SWModule::RenderText(const char*, int, bool)’ is deprecated (declared at /usr/local/src/sword/include/swmodule.h:645) [-Wdeprecated-declarations]<br>
Sword.cxx: In function ‘PyObject* _wrap_SWModule_RenderText__SWIG_3(PyObject*, PyObject*)’:<br>Sword.cxx:49972:43: warning: ‘const char* sword::SWModule::RenderText(const char*, int, bool)’ is deprecated (declared at /usr/local/src/sword/include/swmodule.h:645) [-Wdeprecated-declarations]<br>
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/Sword.o -L/usr/local/src/cmakebuild -lsword -o build/lib.linux-x86_64-2.7/_Sword.so<br><br></div><div>
(From here on it seems successful and sword works save for the python bindings)<br></div><div>When I try to use the python binding, it fails. I believe that these build errors are the problem.<br></div><div>Any ideas about why this is failing?<br>
<br></div><div>~A<br></div></div>