Trying to compile vcglib fails with this error
apps/metro/sampling.h:235:108: required from ‘float vcg::Sampling<metromesh>::AddSample(const Point3x&) [with MetroMesh = CMesh; vcg::Sampling<metromesh>::Point3x
= vcg::Point3<double>; typename TriangleType::ScalarType = double]</double></metromesh>’
apps/metro/sampling.h:277:37: required from ‘void vcg::Sampling<metromesh>::VertexSampling() [with MetroMesh = CMesh]’
apps/metro/sampling.h:571:24: required from ‘void vcg::Sampling<metromesh>::Hausdorff() [with MetroMesh = CMesh]’
apps/metro/metro.cpp:328:31: required from here
./vcg/simplex/face/distance.h:178:33: error: ‘fabs’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of insta
ntiation [-fpermissive]
dist = ScalarType(fabs(d));
^
In file included from /usr/include/c++/4.9/complex:44:0,
from ./eigenlib/Eigen/Core:28,
from ./vcg/math/matrix44.h:33,
from wrap/gl/deprecated_math.h:31,
from wrap/gl/math.h:61,
from ./vcg/math/base.h:90,
from ./vcg/math/histogram.h:31,
from apps/metro/metro.cpp:103:
/usr/include/c++/4.9/cmath:272:5: note: ‘template<class _tp=""> typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::fabs(_Tp)’ declared here, later in the translation unit
fabs(_Tp __x)</class></metromesh></metromesh></metromesh>
I'm working on Debian 8 (Jessie) using gcc 4.9.2. I've checkout the latest version of the svn repository (-r5611) ,
and run
qmake -project
qmake -makefile
make
Do you have any hints, how to solve that ?
Kind regards,
Alois
Anonymous