I fixed the Eigen2 problem with a cast. Hopefully it still works for Eigen3.
I'm getting quite a few trivial compile warnings though, Geoff, with MSVC - maybe you can look into these: 1>..\..\..\src\distgeom.cpp(126) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(131) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(138) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(158) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(159) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(163) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(164) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(237) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(238) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(239) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(243) : warning C4305: 'initializing' : truncation from 'double' to 'float' 1>..\..\..\src\distgeom.cpp(251) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(252) : warning C4305: '*=' : truncation from 'double' to 'float' 1>..\..\..\src\distgeom.cpp(255) : warning C4305: '=' : truncation from 'double' to 'float' 1>..\..\..\src\distgeom.cpp(257) : warning C4305: '=' : truncation from 'double' to 'float' 1>..\..\..\src\distgeom.cpp(262) : warning C4305: '=' : truncation from 'double' to 'float' 1>..\..\..\src\distgeom.cpp(265) : warning C4305: '=' : truncation from 'double' to 'float' 1>..\..\..\src\distgeom.cpp(269) : warning C4305: '=' : truncation from 'double' to 'float' 1>..\..\..\src\distgeom.cpp(276) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(277) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(279) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(280) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(281) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(305) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(306) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(307) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(310) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(311) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(312) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(313) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(316) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(317) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(294) : warning C4101: 'i' : unreferenced local variable 1>..\..\..\src\distgeom.cpp(294) : warning C4101: 'j' : unreferenced local variable 1>..\..\..\src\distgeom.cpp(395) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(396) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data 1>..\..\..\src\distgeom.cpp(362) : warning C4101: 'l_bc' : unreferenced local variable - Noel On 26 July 2012 19:39, Jeff Janes <jeff.ja...@gmail.com> wrote: > On Thu, Jul 26, 2012 at 10:35 AM, Geoff Hutchison > <ge...@geoffhutchison.net> wrote: >>> 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. >> >> That's my mistake, since I only have Eigen3 installed on my machines. If you >> can give me the compile error, I should be able to fix for Eigen2 as well. > > Sorry for the line-wrapped mess. This is the error message: > > [ 27%] Building CXX object src/CMakeFiles/openbabel.dir/distgeom.o > /home/ec2-user/openbabel/src/distgeom.cpp: In constructor > ‘OpenBabel::DistanceGeometryPrivate::DistanceGeometryPrivate(unsigned > int)’: > /home/ec2-user/openbabel/src/distgeom.cpp:40: error: call of > overloaded ‘Matrix(const unsigned int&, const unsigned int&)’ is > ambiguous > /usr/local/include/eigen2/Eigen/src/Core/Matrix.h:373: note: > candidates are: Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, > _MaxRows, _MaxCols>::Matrix(const double&, const double&) [with > _Scalar = float, int _Rows = 10000, int _Cols = 10000, int _Options = > 2, int _MaxRows = 10000, int _MaxCols = 10000] > /usr/local/include/eigen2/Eigen/src/Core/Matrix.h:365: note: > Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, > _MaxCols>::Matrix(const float&, const float&) [with _Scalar = float, > int _Rows = 10000, int _Cols = 10000, int _Options = 2, int _MaxRows = > 10000, int _MaxCols = 10000] > /usr/local/include/eigen2/Eigen/src/Core/Matrix.h:348: note: > Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, > _MaxCols>::Matrix(int, int) [with _Scalar = float, int _Rows = 10000, > int _Cols = 10000, int _Options = 2, int _MaxRows = 10000, int > _MaxCols = 10000] > make[2]: *** [src/CMakeFiles/openbabel.dir/distgeom.o] Error 1 > make[2]: *** Waiting for unfinished jobs.... > make[1]: *** [src/CMakeFiles/openbabel.dir/all] Error 2 > make: *** [all] Error 2 > > > I've run this on an Amazon instance to ensure I had a clean system to > work with. The error also occurs on my own computer, though. The > set-up and build procedure is below. > > Thanks, > > Jeff > > > > > AMI: amzn-ami-pv-2012.03.3.x86_64-ebs (ami-aecd60c7) > > sudo yum -y install strace ltrace cmake make gcc-c++ cairo cairo-devel > readline-devel libxml2-devel svn > > wget http://bitbucket.org/eigen/eigen/get/2.0.17.tar.bz2 > mv 2.0.17.tar.bz2 Eigen_2.0.17.tar.bz2 > tar xf Eigen_2.0.17.tar.bz2 > cd eigen-eigen-b23437e61a07/ > cmake . > make > sudo make install > cd > > svn co https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/trunk > openbabel > cd openbabel > mkdir build > cd build/ > cmake ../ > make > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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