Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiliing on apple M1 #7

Open
scachero opened this issue Feb 4, 2022 · 2 comments
Open

Compiliing on apple M1 #7

scachero opened this issue Feb 4, 2022 · 2 comments

Comments

@scachero
Copy link

scachero commented Feb 4, 2022

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
Copy link
Owner

jefferis commented Feb 4, 2022

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

@scachero
Copy link
Author

scachero commented Feb 4, 2022

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

cmtkconfig.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants