Some problem about compile the source from svn

[ 2%] Building CXX object libavogadro/src/CMakeFiles/avogadro-lib.dir
/primitives.o
/home/jeffkyjin/Development/avogadro/libavogadro/src/primitives.cpp: In
member function ‘Eigen::Vector3d Avogadro::atom::position() const’:
/home/jeffkyjin/Development/avogadro/libavogadro/src/primitives.cpp:78:
error: passing ‘const Avogadro::Atom’ as ‘this’ argument of
’OpenBabel::vector3& OpenBabel::OBAtom::GetVector()’ discards qualifiers
make[2]: *** [libavogadro/src/CMakeFiles/avogadro-lib.dir/primitives.o]
ERROR 1
make[1]: *** [libavogadro/src/CMakeFiles/avogadro-lib.dir/all] ERROR 2
make: *** [all] ERROR 2


I just want to see the 3D viewer in Kalzium(Google SoC), so I compile the
avogadro here , but I get this error.

On Friday 23 March 2007 09:22:20 jin jeffky wrote:

[ 2%] Building CXX object libavogadro/src/CMakeFiles/avogadro-lib.dir
/primitives.o
/home/jeffkyjin/Development/avogadro/libavogadro/src/primitives.cpp: In
member function ‘Eigen::Vector3d Avogadro::atom::position() const’:
/home/jeffkyjin/Development/avogadro/libavogadro/src/primitives.cpp:78:
error: passing ‘const Avogadro::Atom’ as ‘this’ argument of
’OpenBabel::vector3& OpenBabel::OBAtom::GetVector()’ discards qualifiers
make[2]: *** [libavogadro/src/CMakeFiles/avogadro-lib.dir/primitives.o]
ERROR 1
make[1]: *** [libavogadro/src/CMakeFiles/avogadro-lib.dir/all] ERROR 2
make: *** [all] ERROR 2


It compiles fine here. Your error message means that your openbabel doesn’t
have a const-qualified OBAtom::GetVector(). This means that your openbabel is
outdated, so please update it to the latest from SVN. See here:

http://openbabel.sourceforge.net/wiki/Subversion

Cheers,
Benoit