Menu

Smina not linking to Openbabel

2016-10-12
2016-10-14
  • Jernej Zidar

    Jernej Zidar - 2016-10-12

    Hi,
    I downloaded Smina and compiled it with out any error. Upon running, however, it seems it cannot save the output structure file. All I get is an empty file (extension pdbqt or pdb doesn't seem to matter) and a message like this:
    smina: symbol lookup error: smina: undefined symbol: _ZN9OpenBabel12OBConversion11SetInFormatEPKcb

    Before the compilation succeeded I had to edit the Makefile in smina-code/build/linux/release/:

      OPENBABEL_INCLUDE=/home/zidar/utils/openbabel-2.4.0-gcc/include/openbabel-2.0
    

    I also had to edit the ../../makefile_common:
    LIBS = -L/home/zidar/utils/openbabel-2.4.0-gcc/lib -l openbabel

    Any tips what could be wrong?

    Thanks in advance!
    zidarko

     
  • David Koes

    David Koes - 2016-10-12

    Do you perhaps have multiple versions of libopenbabel.so on your system? Your LD_LIBRARY_PATH needs to point to the same version you built with (/home/zidar/utils/openbabel-2.4.0-gcc/lib)

     
  • Jernej Zidar

    Jernej Zidar - 2016-10-14

    That was it, yes. I have several version of OpenBabel installed and I had to edti the LD_LIBRARY_PATH variable so it pointed to the right version.

    Thanks!

     

Log in to post a comment.