You shouldn't need Swig yourself if you are using the release, only if compiling from the SVN repo... What version of Ubuntu?
- Noel On 25 November 2012 08:56, elikbelik <[email protected]> wrote: > Hi, > I'm trying to build openbabel 2.3.2 on ubunto with python bindings. > I tried using swig2.0.7 and swig1.3.40, but keep on getting the following > errors: > > Linking CXX shared module ../lib/_openbabel.so > CMakeFiles/bindings_python.dir/python/openbabel-python.cpp.o: In function > `_SWIG_This': > /home/milolab/workspace/openbabel/scripts/python/openbabel-python.cpp:820: > undefined reference to `PyString_FromString' > CMakeFiles/bindings_python.dir/python/openbabel-python.cpp.o: In function > `SWIG_Python_str_FromChar': > /home/milolab/workspace/openbabel/scripts/python/openbabel-python.cpp:820: > undefined reference to `PyString_FromString' > /home/milolab/workspace/openbabel/scripts/python/openbabel-python.cpp:820: > undefined reference to `PyString_FromString' > CMakeFiles/bindings_python.dir/python/openbabel-python.cpp.o: In function > `SwigPyObject_format': > /home/milolab/workspace/openbabel/scripts/python/openbabel-python.cpp:1555: > undefined reference to `PyString_Format' > CMakeFiles/bindings_python.dir/python/openbabel-python.cpp.o: In function > `SWIG_Python_str_FromChar': > /home/milolab/workspace/openbabel/scripts/python/openbabel-python.cpp:820: > undefined reference to `PyString_FromString' > CMakeFiles/bindings_python.dir/python/openbabel-python.cpp.o: In function > `SwigPyObject_repr': > /home/milolab/workspace/openbabel/scripts/python/openbabel-python.cpp:1585: > undefined reference to `PyString_FromFormat' > /home/milolab/workspace/openbabel/scripts/python/openbabel-python.cpp:1598: > undefined reference to `PyString_ConcatAndDel' > CMakeFiles/bindings_python.dir/python/openbabel-python.cpp.o: In function > `swig_varlink_str': > /home/milolab/workspace/openbabel/scripts/python/openbabel-python.cpp:57298: > undefined reference to `PyString_FromString' > ... > etc. > > What am I doing wrong? > Thanks! > > > > -- > View this message in context: > http://forums.openbabel.org/Problems-with-binding-Python-tp4655705.html > Sent from the General discussion mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > OpenBabel-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ OpenBabel-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
