-
Notifications
You must be signed in to change notification settings - Fork 3
Description
This error was thrown while trying to compile on M1
jefferis-mac-12:build scachero$ make
[ 7%] Built target NrrdIO
[ 19%] Built target D4CMTK
[ 21%] Built target cmtkMxml
[ 24%] Built target numdiff
[ 29%] Built target cmtkNumerics
[ 34%] Built target cmtkSystem
Consolidate compiler generated dependencies of target cmtkBase
[ 34%] Building CXX object libs/Base/CMakeFiles/cmtkBase.dir/cmtkDataGrid.cxx.o
In file included from /Users/scachero/Downloads/cmtk/core/libs/Base/cmtkDataGrid.cxx:35:
In file included from /Users/scachero/Downloads/cmtk/core/libs/Base/cmtkDataGrid.h:40:
In file included from /Users/scachero/Downloads/cmtk/core/libs/Base/cmtkMacros.h:42:
In file included from /Users/scachero/Downloads/cmtk/core/libs/Base/cmtkTypes.h:38:
/Users/scachero/Downloads/cmtk/core/libs/Base/cmtkMathUtil.h:105:12: error: use of undeclared identifier 'finite'
return finite( value ) != 0;
^
/Users/scachero/Downloads/cmtk/core/libs/Base/cmtkDataGrid.cxx:623:54: note: in instantiation of function template specialization 'cmtk::MathUtil::IsFinite' requested here
if ( this->GetDataAt( value, x, y, z ) && MathUtil::IsFinite( value ) )
^
1 error generated.
make[2]: *** [libs/Base/CMakeFiles/cmtkBase.dir/cmtkDataGrid.cxx.o] Error 1
make[1]: *** [libs/Base/CMakeFiles/cmtkBase.dir/all] Error 2
make: *** [all] Error 2