jefferis / cmtk

Unofficial git clone of Computational Morphometry Toolkit (CMTK)
http://www.nitrc.org/projects/cmtk/
8 stars 3 forks source link

Compiliing on apple M1 #7

Open scachero opened 2 years ago

scachero commented 2 years ago

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

jefferis commented 2 years ago

Thanks @scachero. Could you attach your build/cmtkconfig.h file?

scachero commented 2 years ago

Here it is, changed it to .txt because it would let me attach it as .h

cmtkconfig.txt