Home   Manual

Problems when installing Avogadro

Hello Avogadro community!

I’m trying to install the Avogadro (ORCA enhanced version) that allows users to open ORCA files. However, after executing the make command, this error message is prompted:

[ 0%] Building CXX object libavogadro/src/colors/CMakeFiles/elementcolor.dir/elementcolor.cpp.o
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:524,
from /usr/include/c++/9/utility:68,
from /usr/include/c++/9/algorithm:60,
from /usr/include/qt4/QtCore/qglobal.h:68,
from /usr/include/qt4/QtCore/qnamespace.h:45,
from /usr/include/qt4/QtCore/qobjectdefs.h:45,
from /usr/include/qt4/QtCore/qobject.h:47,
from /usr/include/qt4/QtCore/qtranslator.h:45,
from /usr/include/qt4/QtCore/QTranslator:1,
from /home/lucasw/avogadro/build/libavogadro/include/avogadro/global.h:29,
from /home/lucasw/avogadro/libavogadro/src/colors/elementcolor.h:29,
from /home/lucasw/avogadro/libavogadro/src/colors/elementcolor.cpp:25:
/usr/include/features.h:187:3: warning: #warning “_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE” [-Wcpp]
187 | # warning “_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE”
| ^~~~~~~
In file included from /usr/local/include/openbabel-2.0/openbabel/atom.h:33,
from /usr/local/include/openbabel-2.0/openbabel/mol.h:42,
from /home/lucasw/avogadro/libavogadro/src/colors/elementcolor.cpp:31:
/usr/local/include/openbabel-2.0/openbabel/base.h: In member function ‘virtual const char* OpenBabel::OBBase::GetTitle(bool) const’:
/usr/local/include/openbabel-2.0/openbabel/base.h:287:49: warning: unused parameter ‘replaceNewlines’ [-Wunused-parameter]
287 | virtual const char GetTitle(bool UNUSED(replaceNewlines) = true) const { return “”;}
| ^
/usr/local/include/openbabel-2.0/openbabel/base.h:37:20: note: in definition of macro ‘UNUSED’
37 | # define UNUSED(x) x
| ^
/home/lucasw/avogadro/libavogadro/src/colors/elementcolor.cpp: In member function ‘virtual void Avogadro::ElementColor::setFromPrimitive(const Avogadro::Primitive
/home/lucasw/avogadro/libavogadro/src/colors/elementcolor.cpp:51:44: error: ‘etab’ is not a member of ‘OpenBabel’; did you mean ‘ttab’?
51 | std::vector rgb = OpenBabel::etab.GetRGB(atom->atomicNumber());
| ^~~~
| ttab
make[2]: *** [libavogadro/src/colors/CMakeFiles/elementcolor.dir/build.make:68: libavogadro/src/colors/CMakeFiles/elementcolor.dir/elementcolor.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2610: libavogadro/src/colors/CMakeFiles/elementcolor.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

I’ve tried to solve this problem by verifying if the problems were related to the malfunctioning of OpenBabel, but this works. Now, I’m stuck on this issue and I don’t know how to solve it…
Therefore, could you help me to solve this problem and finish installing Avogadro?
Thanks in advance!

With best regards,
Lucas W.

Environment Information

Avogadro version: 1.2.0
Operating system and version: Ubuntu 20.04.2 LTS

Steps to Reproduce

Following the INSTALL file instructions, these are the steps executed to reach the error message:
mkdir build > cd build > cmake …/ > make