Open aarontovars opened 2 years ago
These are the steps I did to compile on Mac, as stated on the docs:
$ git clone https://github.com/SuperElastix/SimpleElastix $ mkdir build $ cd build $ cmake ../SimpleElastix/SuperBuild $ make -j4
I receive the following error in the last command:
_In file included from /Users/faaronts/build/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:127: /Users/faaronts/build/ITK/Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx:140:3: error: use of undeclared identifier 'itk_feenableexcept' itk_feenableexcept(FE_DIVBYZERO); ^ /Users/faaronts/build/ITK/Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx:141:3: error: use of undeclared identifier 'itk_feenableexcept' itk_feenableexcept(FE_INVALID); ^ /Users/faaronts/build/ITK/Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx:162:3: error: use of undeclared identifier 'itk_fedisableexcept' itk_fedisableexcept(FE_DIVBYZERO); ^ /Users/faaronts/build/ITK/Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx:163:3: error: use of undeclared identifier 'itk_fedisableexcept' itk_fedisableexcept(FEINVALID); ^ 4 errors generated. make[5]: [Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkFloatingPointExceptions.cxx.o] Error 1 make[4]: [Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/all] Error 2 make[3]: [all] Error 2 make[2]: [ITK-prefix/src/ITK-stamp/ITK-build] Error 2 make[1]: [CMakeFiles/ITK.dir/all] Error 2 make: [all] Error 2
I tried changing
$ cmake ../SimpleElastix/SuperBuild
by
$ cmake -DCMAKE_CXX_COMPILER:STRING=/usr/bin/clang++ -DCMAKE_C_COMPILER:STRING=/usr/bin/clang ../SimpleElastix/SuperBuild
but still the error is the same.
These are the steps I did to compile on Mac, as stated on the docs:
$ git clone https://github.com/SuperElastix/SimpleElastix $ mkdir build $ cd build $ cmake ../SimpleElastix/SuperBuild $ make -j4
I receive the following error in the last command:
_In file included from /Users/faaronts/build/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:127: /Users/faaronts/build/ITK/Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx:140:3: error: use of undeclared identifier 'itk_feenableexcept' itk_feenableexcept(FE_DIVBYZERO); ^ /Users/faaronts/build/ITK/Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx:141:3: error: use of undeclared identifier 'itk_feenableexcept' itk_feenableexcept(FE_INVALID); ^ /Users/faaronts/build/ITK/Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx:162:3: error: use of undeclared identifier 'itk_fedisableexcept' itk_fedisableexcept(FE_DIVBYZERO); ^ /Users/faaronts/build/ITK/Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx:163:3: error: use of undeclared identifier 'itk_fedisableexcept' itk_fedisableexcept(FEINVALID); ^ 4 errors generated. make[5]: [Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkFloatingPointExceptions.cxx.o] Error 1 make[4]: [Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/all] Error 2 make[3]: [all] Error 2 make[2]: [ITK-prefix/src/ITK-stamp/ITK-build] Error 2 make[1]: [CMakeFiles/ITK.dir/all] Error 2 make: [all] Error 2
I tried changing
$ cmake ../SimpleElastix/SuperBuild
by
$ cmake -DCMAKE_CXX_COMPILER:STRING=/usr/bin/clang++ -DCMAKE_C_COMPILER:STRING=/usr/bin/clang ../SimpleElastix/SuperBuild
but still the error is the same.