[Insight-users] Problem: Cant build ITK 4.0 with Mingw under Win7
Shraiki, Mario
Mario.Shraiki at eye-tech.net
Tue Mar 6 11:45:58 EST 2012
Steps to reproduce:
1. I cloned the latest "commit 235a1d703cc8fc6c0703b7905601026437dc4072" version from the kitware website 4.0
2. I used the CMake gui for configuring and generating the CMake files (for a subfolder called binary)
3. I generated the MinGw Makefiles
4. I called mingw32-make
After several compilation steps the following error occured:
------------------------------------------------------------------------------------------------------------------------------------------------------------
[ 40%] Building CXX object Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkThreadedIndexedContainerPartitioner.cxx.obj
[ 40%] Building CXX object Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkObjectFactoryBase.cxx.obj
[ 40%] Building CXX object Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkFloatingPointExceptions.cxx.obj
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx: In static member function 'static void itk::FloatingPointExceptions::Enable()':
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:415:14: error: '_EM_DENORMAL' was not declared in this scope
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:415:29: error: '_EM_UNDERFLOW' was not declared in this scope
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:415:45: error: '_EM_INEXACT' was not declared in this scope
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:415:58: error: '_MCW_EM' was not declared in this scope
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:415:65: error: '_controlfp' was not declared in this scope
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx: In static member function 'static void itk::FloatingPointExceptions::Disable()':
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:423:14: error: '_EM_INVALID' was not declared in this scope
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:423:28: error: '_EM_DENORMAL' was not declared in this scope
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:423:43: error: '_EM_ZERODIVIDE' was not declared in this scope
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:423:60: error: '_EM_OVERFLOW' was not declared in this scope
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:424:14: error: '_EM_UNDERFLOW' was not declared in this scope
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:424:30: error: '_EM_INEXACT' was not declared in this scope
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:424:43: error: '_MCW_EM' was not declared in this scope
d:/ITK/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:424:50: error: '_controlfp' was not declared in this scope
make[2]: *** [Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkFloatingPointExceptions.cxx.obj] Error 1
make[1]: *** [Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/all] Error 2
make: *** [all] Error 2
------------------------------------------------------------------------------------------------------------------------------------------------------------
GCC has the version 4.6.2
Am I missing some preprocessor commands?
Regards, Mario
+++ Trust your eyes - thanks to state-of-the-art technologies from SCHWIND eye-tech-solutions +++
Geschäftsführer: Dipl.-Kfm. Rolf Schwind, Kurt Geiß
SCHWIND eye-tech-solutions GmbH & Co. KG, Registergericht Aschaffenburg, HRA 814
Komplementär: SCHWIND Beteiligungs GmbH, Registergericht Aschaffenburg, HRB 4325
More information about the Insight-users
mailing list