From: Noel O'B. <bao...@gm...> - 2006-10-25 09:26:35
|
As Geoff pointed out in a previous email, your LD_LIBRARY_PATH may be the key. What is its value? On 25/10/06, Pascoe, S (Stephen) <S.P...@rl...> wrote: > > > I can confirm that I get a similar error when trying to build the python > bindings with r1574 of the SVN source. I have set OPENBABEL_INSTALL such > that $OPENBABEL_INSTALL/include/openbabel-2.0 exists. I > have even tried recreating openbabel_python.cpp with the latest swig. This > is the truncated error: > > > python setup.py build 2>&1 | less > INFO: Using the value of $OPENBABEL_INSTALL > (/research/home/spascoe/host/saturn/ > opt/openbabel) > running build > running build_py > copying openbabel.py -> build/lib.linux-i686-2.4 > running build_ext > building '_openbabel' extension > gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mtune=i686 > -fmessage > -length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC > -I/research/home/spascoe/host/satur > n/opt/openbabel/include/openbabel-2.0 > -I/research/home/spascoe/host/saturn/opt/o > penbabel/include/openbabel-2.0/openbabel -I/usr/include/python2.4 -c > openbabel_p > ython.cpp -o build/temp.linux-i686-2.4/openbabel_python.o > openbabel_python.cpp: In function 'PyObject* > _wrap_OBMol_CreateResidue(PyObject* > , PyObject*)': > openbabel_python.cpp:38606: error: 'OBResidue' was not declared in this > scope > openbabel_python.cpp:38606: error: 'result' was not declared in this scope > openbabel_python.cpp:38617: error: expected primary-expression before ')' > token > openbabel_python.cpp: In function 'PyObject* > _wrap_OBMol_DestroyResidue(PyObject > *, PyObject*)': > openbabel_python.cpp:38688: error: 'OBResidue' was not declared in this > scope > openbabel_python.cpp:38688: error: 'arg2' was not declared in this scope > openbabel_python.cpp:38688: error: expected primary-expression before ')' > token > openbabel_python.cpp:38688: error: expected `;' before numeric constant > openbabel_python.cpp:38706: error: expected type-specifier before > 'OBResidue' > openbabel_python.cpp:38706: error: expected `>' before 'OBResidue' > openbabel_python.cpp:38706: error: expected `(' before 'OBResidue' > openbabel_python.cpp:38706: error: expected primary-expression before '>' > token > openbabel_python.cpp:38706: error: expected `)' before ';' token > openbabel_python.cpp:38707: error: no matching function for call to > 'OpenBabel:: > OBMol::DestroyResidue(<type error>)' > ... > > A summary of my system: > > > uname -a; cat /etc/issue; gcc -v > Linux saturn 2.6.13-15.8-smp #1 SMP Tue Feb 7 11:07:24 UTC 2006 i686 i686 > i386 GNU/Linux > > Welcome to SUSE LINUX 10.0 (i586) - Kernel \r (\l). > > > Using built-in specs. > Target: i586-suse-linux > Configured with: ../configure --enable-threads=posix --prefix=/usr > --with-local-prefix=/usr/local --infodir=/usr/share/info > --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib > --enable-languages=c,c++,objc,f95,java,ada > --disable-checking > --with-gxx-include-dir=/usr/include/c++/4.0.2 > --enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib > --with-system-zlib --enable-shared --enable-__cxa_atexit > --without-system-libunwind --host=i586-suse-linux > Thread model: posix > gcc version 4.0.2 20050901 (prerelease) (SUSE Linux) > > Stephen. > > --- > Stephen Pascoe > British Atmospheric Data Centre > Rutherford Appleton Laboratory, CCLRC > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > OpenBabel-scripting mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openbabel-scripting > > > |