[Insight-developers] Fwd: Error while building ITK: libITKCommon-4.2.dll is not existing after build

Williams, Norman K norman-k-williams at uiowa.edu
Wed Nov 28 11:17:39 EST 2012


I ran into this the other day.  I tried to get it working and got
distracted by other things.

The problem is that itkFloatingPointExceptions.cxx is a rat's nest of
#ifdefs because floating point exception handling seems to be different on
every platform.  Currently, the testing for Windows doesn't take
Mingw/Cygwin into account.

I will return to trying to make a patch, but can anyone enumerate the
proper way to handle the various Windows flavors?
--
Kent Williams norman-k-williams at uiowa.edu






On 11/28/12 2:04 AM, "qt.itk.vtk.help" <qt.itk.vtk.help at gmail.com> wrote:

>
>
>
>Hi,
>
>
>Following error occured while building ITK library using MinGW Makefile.
>
>
>[42%] Building CXX object
>Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkFloatingPointException
>s.cxx.obj
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx: In
>static
>member function 'static void itk::FloatingPointExceptions::Enable()':
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx:430:1
>4: err
>or: '_EM_DENORMAL' was not declared in this scope
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx:430:2
>9: err
>or: '_EM_UNDERFLOW' was not declared in this scope
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx:430:4
>5: err
>or: '_EM_INEXACT' was not declared in this scope
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx:430:5
>8: err
>or: '_MCW_EM' was not declared in this scope
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx:430:6
>5: err
>or: '_controlfp' was not declared in this scope
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx: In
>static
>member function 'static void itk::FloatingPointExceptions::Disable()':
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx:438:1
>4: err
>or: '_EM_INVALID' was not declared in this scope
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx:438:2
>8: err
>or: '_EM_DENORMAL' was not declared in this scope
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx:438:4
>3: err
>or: '_EM_ZERODIVIDE' was not declared in this scope
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx:438:6
>0: err
>or: '_EM_OVERFLOW' was not declared in this scope
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx:439:1
>4: err
>or: '_EM_UNDERFLOW' was not declared in this scope
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx:439:3
>0: err
>or: '_EM_INEXACT' was not declared in this scope
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx:439:4
>3: err
>or: '_MCW_EM' was not declared in this scope
>C:\ITK\Source\Modules\Core\Common\src\itkFloatingPointExceptions.cxx:439:5
>0: err
>or: '_controlfp' was not declared in this scope
>mingw32-make[2]: ***
>[Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkFloati
>ngPointExceptions.cxx.obj] Error 1
>mingw32-make[1]: ***
>[Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/all] Erro
>r 2
>mingw32-make: *** [all] Error 2
>
>
>
>
>
>
>
>After building ITK even with errors, I tried to build a program I got
>this error :
>
>
>mingw32-make[2]: *** No rule to make target
>'C:/ITK/mingwbin/lib/libITKCommon-4.2.dll.a', needed by 'Events.exe'.
>Stop.
>mingw32-make[1]: *** [CMakeFiles/Events.dir/all] Error2
>mingw32-make: *** [all] Error2
>
>
>
>
>I checked in ITK build folder there were no libITKCommon-4.2.dll.a file.
>Is this error related to build error?
>Please help me to solve this.
>
>
>I have attached screenshots of errors.
>
>
>Thanks
>
>



________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________


More information about the Insight-developers mailing list