[Insight-developers] Fwd: Error while building ITK: libITKCommon-4.2.dll is not existing after build
Matt McCormick
matt.mccormick at kitware.com
Wed Nov 28 12:43:53 EST 2012
I will try to see if we can disable floating points exceptions on mingw....
On Wed, Nov 28, 2012 at 5:35 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Isn't there someway we can fix this without waiting for the gcc crowd.
>
> Could a try_compile be used to determine what needs to be done?
>
> Or maybe we just disable floating point exceptions on mingw.
>
>
> On Wed, Nov 28, 2012 at 12:09 PM, Matt McCormick
> <matt.mccormick at kitware.com> wrote:
>> Hi Kent,
>>
>> This is a problem with MinGW/GCC:
>>
>> http://sourceforge.net/tracker/?func=detail&atid=302435&aid=3011968&group_id=2435
>> http://lists.fedoraproject.org/pipermail/mingw/2011-August/004101.html
>>
>> Essentially, a
>>
>> #include_next <float.h>
>>
>> is needed at the end of the GCC float.h. It looks like this has been
>> proposed to the GCC mailing lists, but the patch was never merged.
>> Maybe if they used Gerrit :P.
>>
>> Matt
>>
>> On Wed, Nov 28, 2012 at 4:17 PM, Williams, Norman K
>> <norman-k-williams at uiowa.edu> wrote:
>>> 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.
>>> ________________________________
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://kitware.com/products/protraining.php
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.itk.org/mailman/listinfo/insight-developers
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-developers
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
More information about the Insight-developers
mailing list