[Insight-users] Building Insight Applications 3.0/3.2 on MacosX
10.4.9: cmath error
Flo
snrf at no-log.org
Sun Apr 29 08:27:06 EDT 2007
Dear All:
I already compiled VTK, ITK and FLTK. I extensively used VTK and
everything is fine with it.
However, I have a constant problem (listed below) building Insight
Applications whether v3.0 or v3.2 on my Mac (OSX 10.4.9) with cmake +
(gcc;g++3.3;g++4.0;c++). I read over and over the mailing list, saw
two entries on this problem, but no solution directly given. I build
these applications against ITK v3.0 and v3.2 and both failed.
Can someone point me to a solution, or reason of this problem ? It is
a MacOsX known issue ?
Thanks a lot.
regards,
flo.
Building CXX object AntiAliasBinaryImageFilter/CMakeFiles/
itkAntiAliasBinaryImageFilterExample.dir/
itkAntiAliasBinaryImageFilterExample.o
/usr/include/c++/4.0.0/cmath:99: error: '::acos' has not been declared
/usr/include/c++/4.0.0/cmath:116: error: '::asin' has not been declared
/usr/include/c++/4.0.0/cmath:131: error: '::atan' has not been declared
/usr/include/c++/4.0.0/cmath:146: error: '::atan2' has not been declared
......
/Volumes/FreshHouse/VTK/ITK/Utilities/vxl/core/vnl/vnl_math.h: In
function 'int vnl_math_rnd(float)':
/Volumes/FreshHouse/VTK/ITK/Utilities/vxl/core/vnl/vnl_math.h:147:
error: 'lroundf' was not declared in this scope
/Volumes/FreshHouse/VTK/ITK/Utilities/vxl/core/vnl/vnl_math.h: In
function 'int vnl_math_rnd(double)':
/Volumes/FreshHouse/VTK/ITK/Utilities/vxl/core/vnl/vnl_math.h:148:
error: 'lround' was not declared in this scope
......
/Volumes/FreshHouse/VTK/ITK/Code/Common/itkVector.txx: In member
function 'typename itk::Vector<T, NVectorDimension>::RealValueType
itk::Vector<T, NVectorDimension>::GetNorm() const':
/Volumes/FreshHouse/VTK/ITK/Code/Common/itkVector.txx:167: error:
call of overloaded 'sqrt(double&)' is ambiguous
/usr/include/c++/4.0.0/cmath:396: note: candidates are: float
std::sqrt(float)
/usr/include/c++/4.0.0/cmath:400: note: long double
std::sqrt(long double)
......
make[2]: *** [AntiAliasBinaryImageFilter/CMakeFiles/
itkAntiAliasBinaryImageFilterExample.dir/
itkAntiAliasBinaryImageFilterExample.o] Error 1
make[1]: *** [AntiAliasBinaryImageFilter/CMakeFiles/
itkAntiAliasBinaryImageFilterExample.dir/all] Error 2
make: *** [all] Error 2
More information about the Insight-users
mailing list