When I build the most recent revision in SVN, 4965, with Eigen2 installed, it fails to compile due to an ambiguous overloaded call to Matrix. But with Eigen3 installed, it works.
The below patch seems to fix by building distgeom.cpp when only Eigen3 specifically is present. I don't really understand the relationship between distgeom.c and "obdistgen" or how cmake works, so I don't know if this the correct way to do it. I first tried changing just the tools/CMakeLists.txt to include obdistgen only upon EIGEN3_FOUND, rather than HAVE_EIGEN, but that did not solve the issue. Cheers, Jeff Index: src/CMakeLists.txt =================================================================== --- src/CMakeLists.txt (revision 4965) +++ src/CMakeLists.txt (working copy) @@ -151,6 +151,11 @@ if(EIGEN2_FOUND OR EIGEN3_FOUND) set(openbabel_srcs ${openbabel_srcs} conformersearch.cpp + ) +endif () + +if(EIGEN3_FOUND) + set(openbabel_srcs ${openbabel_srcs} distgeom.cpp ) endif () ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss