On Wed, Oct 17, 2012 at 06:24:06PM +0200, KC soh wrote:
> Hi
> 
> I'm using Mac 10.6 and i tried to install the perl and python bindings but
> i ran into this problem. I copied the Eigen folder into /usr/local/include
> 
> XXXmac2:build kc$ cmake ../openbabel-2.3.1 -DPYTHON_BINDINGS=ON
> -DPERL_BINDINGS=ON -DEIGEN2_INCLUDE_DIR=/usr/local/include/
> -- Using included inchi library.
> -- Cairo found. PNG output will be supported.
> -- GUI will not be built
> -- Python bindings will be compiled
> -- Perl bindings will be compiled
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /Volumes/HD2/build
> XXXmac2:build kc$ make -j8
> [  0%] Built target pre_bindings_perl
> [ 12%] Built target inchi
> [ 12%] Building CXX object src/CMakeFiles/openbabel.dir/math/align.o
> /Volumes/HD2/openbabel-2.3.1/src/math/align.cpp: In member function ‘void
> OpenBabel::OBAlign::SimpleAlign(const Eigen::MatrixXd&)’:
> /Volumes/HD2/openbabel-2.3.1/src/math/align.cpp:149: error: ‘SVD’ is not a
> member of ‘Eigen’
> /Volumes/HD2/openbabel-2.3.1/src/math/align.cpp:149: error: expected
> primary-expression before ‘>’ token
> /Volumes/HD2/openbabel-2.3.1/src/math/align.cpp:149: error: ‘svd’ was not
> declared in this scope
> /Volumes/HD2/openbabel-2.3.1/src/math/align.cpp:163: error: ‘class
> Eigen::MatrixXd’ has no member named ‘cwise’
> make[2]: *** [src/CMakeFiles/openbabel.dir/math/align.o] Error 1
> make[1]: *** [src/CMakeFiles/openbabel.dir/all] Error 2
> 
> Is there something wrong that i did?

You used Eigen3 and told Open Babel that it is Eigen2. If you
are using Eigen3 you have to use -DEIGEN3_INCLUDE_DIR instead of
-DEIGEN2_INCLUDE_DIR.


Reinis

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to