Skip to content

Problem with installing MIRTK #783

@parinazbabaee

Description

@parinazbabaee

Hello,

Please help me to solve the problem with MIRTK using "make -j 8". I am using macOS 12.5. I followed the installation steps based on this page "https://mirtk.github.io/install.html". configuration and generation were done!

Following is the error that I get from make -j 8:

/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:155:5: note: expanded from macro 'isfinite'
( sizeof(x) == sizeof(float) ? _inline_isfinitef((float)(x))
^
In file included from /Users/parinazbabaeeghazvini/Documents/MIRTK/Packages/DrawEM/ThirdParty/ANTs/N4.cxx:15:
In file included from /usr/local/include/ITK-5.2/itkImageFileReader.h:24:
In file included from /usr/local/include/ITK-5.2/itkImageIOBase.h:30:
In file included from /usr/local/include/ITK-5.2/itkSymmetricSecondRankTensor.h:28:
In file included from /usr/local/include/ITK-5.2/itkMatrix.h:25:
/usr/local/include/ITK-5.2/vnl/vnl_matrix_fixed.hxx:787:37: error: expected unqualified-id
std::cerr << char(vnl_math::isfinite(this->data
[i][ j]) ? '-' : '*');
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/math.h:155:5: note: expanded from macro 'isfinite'
( sizeof(x) == sizeof(float) ? __inline_isfinitef((float)(x))
^
In file included from /Users/parinazbabaeeghazvini/Documents/MIRTK/Modules/Common/src/Vtk.cc:22:
In file included from /Users/parinazbabaeeghazvini/Documents/MIRTK/Modules/Common/include/mirtk/Vtk.h:33:
In file included from /usr/local/include/vtk-9.2/vtkPolyData.h:66:
In file included from /usr/local/include/vtk-9.2/vtkPointSet.h:58:
In file included from /usr/local/include/vtk-9.2/vtkCellTypes.h:44:
In file included from /usr/local/include/vtk-9.2/vtkIdTypeArray.h:27:
In file included from /usr/local/include/vtk-9.2/vtkAOSDataArrayTemplate.h:38:
In file included from /usr/local/include/vtk-9.2/vtkGenericDataArray.h:443:
In file included from /usr/local/include/vtk-9.2/vtkGenericDataArray.txx:21:
/usr/local/include/vtk-9.2/vtkMath.h:2102:15: error: expected unqualified-id
return std::isinf(x);
^
/usr/local/include/math.h:160:5: note: expanded from macro 'isinf'
( sizeof(x) == sizeof(float) ? __inline_isinff((float)(x))
^
In file included from /Users/parinazbabaeeghazvini/Documents/MIRTK/Modules/Common/src/Vtk.cc:22:
In file included from /Users/parinazbabaeeghazvini/Documents/MIRTK/Modules/Common/include/mirtk/Vtk.h:33:
In file included from /usr/local/include/vtk-9.2/vtkPolyData.h:66:
In file included from /usr/local/include/vtk-9.2/vtkPointSet.h:58:
In file included from /usr/local/include/vtk-9.2/vtkCellTypes.h:44:
In file included from /usr/local/include/vtk-9.2/vtkIdTypeArray.h:27:
In file included from /usr/local/include/vtk-9.2/vtkAOSDataArrayTemplate.h:38:
In file included from /usr/local/include/vtk-9.2/vtkGenericDataArray.h:443:
In file included from /usr/local/include/vtk-9.2/vtkGenericDataArray.txx:21:
/usr/local/include/vtk-9.2/vtkMath.h:2115:15: error: expected unqualified-id
return std::isnan(x);
^
/usr/local/include/math.h:165:5: note: expanded from macro 'isnan'
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x))
^
In file included from /Users/parinazbabaeeghazvini/Documents/MIRTK/Modules/Common/src/Vtk.cc:22:
In file included from /Users/parinazbabaeeghazvini/Documents/MIRTK/Modules/Common/include/mirtk/Vtk.h:33:
In file included from /usr/local/include/vtk-9.2/vtkPolyData.h:66:
In file included from /usr/local/include/vtk-9.2/vtkPointSet.h:58:
In file included from /usr/local/include/vtk-9.2/vtkCellTypes.h:44:
In file included from /usr/local/include/vtk-9.2/vtkIdTypeArray.h:27:
In file included from /usr/local/include/vtk-9.2/vtkAOSDataArrayTemplate.h:38:
In file included from /usr/local/include/vtk-9.2/vtkGenericDataArray.h:443:
In file included from /usr/local/include/vtk-9.2/vtkGenericDataArray.txx:21:
/usr/local/include/vtk-9.2/vtkMath.h:2128:15: error: expected unqualified-id
return std::isfinite(x);
^
/usr/local/include/math.h:155:5: note: expanded from macro 'isfinite'
( sizeof(x) == sizeof(float) ? __inline_isfinitef((float)(x))
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
11 errors generated.
make[2]: *** [Modules/Common/src/CMakeFiles/LibCommon.dir/Vtk.cc.o] Error 1
make[1]: *** [Modules/Common/src/CMakeFiles/LibCommon.dir/all] Error 2
20 errors generated.
make[2]: *** [Packages/DrawEM/ThirdParty/ANTs/CMakeFiles/N4.dir/N4.cxx.o] Error 1
make[1]: *** [Packages/DrawEM/ThirdParty/ANTs/CMakeFiles/N4.dir/all] Error 2
make: *** [all] Error 2

I appreciate your help for solving the issue,
Best,
Parinaz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions