Openbabel error in Installing

—problem—

[  8%] Built target inchi
[  8%] Building CXX object src/CMakeFiles/openbabel.dir/alias.o
[  8%] Building CXX object src/CMakeFiles/openbabel.dir/atom.o
In file included from /home/diane/openbabel-2.3.1/include/openbabel/alias.h:19:0,
from /home/diane/openbabel-2.3.1/src/alias.cpp:17:
/home/diane/openbabel-2.3.1/include/openbabel/shared_ptr.h:27:14: error: ‘std::tr1’ has not been declared
using std::tr1::shared_ptr;
^
src/CMakeFiles/openbabel.dir/build.make:62: recipe for target ‘src/CMakeFiles/openbabel.dir/alias.o’ failed
make[2]: *** [src/CMakeFiles/openbabel.dir/alias.o] Error 1
make[2]: *** Waiting for unfinished jobs….
CMakeFiles/Makefile2:1232: recipe for target ‘src/CMakeFiles/openbabel.dir/all’ failed
make[1]: *** [src/CMakeFiles/openbabel.dir/all] Error 2
Makefile:138: recipe for target ‘all’ failed
make: *** [all] Error 2

—-Solve———
add

#include <tr1/memory>

in openbabel-2.3.1/include/openbabel/shared_ptr.h

1 thought on “Openbabel error in Installing

Leave a Reply