Menu

#284 Problem with OpenBabel while trying to install Avogadro

v_0.9.0
closed
Open Babel (66)
5
2012-09-12
2009-04-13
linuxcomics
No

Hi !

I'm working on Pardus 2008.2 and I have installed the latest version of OpenBabel (2.2.1) in order to compile and install Avogadro 0.9.3. Unfortunately, when I use the make command for Avogadro, I obtain the following lines :

portable build # make
[ 0%] Building CXX object libavogadro/src/CMakeFiles/avogadro-lib.dir/primitiveitemmodel.cpp.o
/home/sebastien/Sources/avogadro-0.9.3/libavogadro/src/primitiveitemmodel.cpp:35:27: error: openbabel/mol.h: No such file or directory
/home/sebastien/Sources/avogadro-0.9.3/libavogadro/src/primitiveitemmodel.cpp: In member function 'virtual QVariant Avogadro::PrimitiveItemModel::data(const QModelIndex&, int)const':
/home/sebastien/Sources/avogadro-0.9.3/libavogadro/src/primitiveitemmodel.cpp:266: error: 'etab' is not a member of 'OpenBabel'

*** 2 errors, 0 warnings
make[2]: *** [libavogadro/src/CMakeFiles/avogadro-lib.dir/primitiveitemmodel.cpp.o] Erreur 1
make[1]: *** [libavogadro/src/CMakeFiles/avogadro-lib.dir/all] Erreur 2
make: *** [all] Erreur 2

Discussion

  • Marcus D. Hanwell

    It looks like CMake has not correctly found the OpenBabel include directory. In that case Avogadro will fail to compile very quickly. Where is OpenBabel installed? If you do a make VERBOSE=1 you will be able to see the added include directories (and check if OpenBabel's include directory is being correctly added).

     
  • linuxcomics

    linuxcomics - 2009-04-13

    While doing make VERBOSE=1, I see

    -I/usr/include/openbabel

    in the different lines that appeared in Konsole.

    But I also obtained at the end the following message :

    /home/seb/avogadro-0.9.3/libavogadro/src/molecule.cpp: In member function 'bool Avogadro::Molecule::setOBMol(OpenBabel::OBMol*)':
    /home/seb/avogadro-0.9.3/libavogadro/src/molecule.cpp:1055: error: 'class OpenBabel::OBGridData' has no member named 'GetMaxVector'

     
  • Geoff Hutchison

    Geoff Hutchison - 2009-04-13

    Then you've got an old version of Open Babel installed, probably one of the 2.2.0 beta releases.

    Do you have something installed in /usr/include/openbabel and /usr/local/include/openbabel?

    If you compiled 2.2.1 from source code, it's likely in /usr/local/include/openbabel

     
  • Geoff Hutchison

    Geoff Hutchison - 2009-05-12

    (ping)

    Can you give me more information on your Open Babel version? What happens when you run "babel -v"?

    If I don't hear from you, I will close this bug as "works for me."

     
  • Geoff Hutchison

    Geoff Hutchison - 2009-05-16

    Pending any comment from the poster, this bug will close in 2 weeks. I'd be glad to help you troubleshoot your compilation, but the bug isn't in Open Babel or Avogadro. Make sure you're using the latest version of each.

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
MongoDB Logo MongoDB