piątek, 4 listopada 2011

OpenBabel compiling error

Frome time to time, during OpenBabel compilation, a strange error occurs:
cc1plus: warning: command line option '-Wstrict-prototypes'
 is valid for Ada/C/ObjC but not for C++ [enabled by default]
In file included from /root/OPENBABEL/openbabel/scripts/python/
include/openbabel/math/align.h:26:22: fatal error: Eigen/Core: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
make[2]: *** [scripts/CMakeFiles/_openbabel] Error 1
make[1]: *** [scripts/CMakeFiles/_openbabel.dir/all] Error 2
make: *** [all] Error 2
Ant one may assume, that something is wrong in include/openbabel/math/align.h file. To be precise, there is a wrong path to the Eigen/Core files. To fix this problem, you have to open include/openbabel/math/align.h in the source directory, and change the line:
#include <Eigen/Core>
#include <your_path_to_Eigen_Core>
#include </root/OPENBABEL/eigen/eigen-eigen-2.0.16/Eigen/Core>
good luck!

Brak komentarzy:

Prześlij komentarz