我尝试在Centos7系统上编译avogadro-1.2.0。当我输入“ make”命令时,它会给出以下错误信息:
CMakeFiles/avogadro.dir/animation.cpp.o: In function `Avogadro::Animation::setFrame(int)':
/home/sunyp/software/build/avogadro-1.2.0/libavogadro/src/animation.cpp:122: undefined reference to `OpenBabel::OBMol::OBMol()'
CMakeFiles/avogadro.dir/animation.cpp.o: In function `Avogadro::Animation::setFrame(int)':
animation.cpp:(.text+0x49b): undefined reference to `OpenBabel::OBMol::BeginModify()'
animation.cpp:(.text+0x52e): undefined reference to `OpenBabel::OBMol::NewAtom()'
animation.cpp:(.text+0x547): undefined reference to `OpenBabel::OBAtom::operator=(OpenBabel::OBAtom&)'
animation.cpp:(.text+0x54f): undefined reference to `OpenBabel::OBAtom::~OBAtom()'
animation.cpp:(.text+0x57a): undefined reference to `OpenBabel::OBMol::EndModify(bool)'
animation.cpp:(.text+0x582): undefined reference to `OpenBabel::OBMol::ConnectTheDots()'
animation.cpp:(.text+0x61c): undefined reference to `OpenBabel::OBMolBondIter::OBMolBondIter(OpenBabel::OBMol&)'
animation.cpp:(.text+0x69c): undefined reference to `OpenBabel::OBMolBondIter::operator++()'
animation.cpp:(.text+0x6fc): undefined reference to `OpenBabel::OBMol::~OBMol()'
animation.cpp:(.text+0x82f): undefined reference to `OpenBabel::OBMol::~OBMol()'
animation.cpp:(.text+0x862): undefined reference to `OpenBabel::OBAtom::~OBAtom()'
我已经安装了openbabel库。那我怎么解决这个问题呢?
谢谢。
最诚挚的问候。