[Insight-developers] Re: [Insight-users] Fixing bugs for ITK with MinGW

Luis Ibanez luis.ibanez at kitware.com
Fri Sep 7 12:52:27 EDT 2007


Hi Ali,

We just committed the Patch to CVS:
http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Common/CMakeLists.txt?root=Insight&sortby=date&r2=1.125&r1=1.124
(and removed the previous attempt).

The bug entry was updated:
http://public.kitware.com/Bug/view.php?id=5647

If you have a chance, please give it a try
and let us know how it works.

That will allow us to (potentially) close the bug.


   Thanks


     Luis


--------------
Ali - wrote:
> 
> Could someone confirm that the patch has been applied to CVS?
> 
> 
>  >
>  > No, I do not have anything specific in mind, just asking.
>  >
>  > The patch is attached.
>  >
>  > Regards,
>  > Tomas
>  >
>  >
>  > # ------------ Původní zpráva ------------
>  > # Od: Ali - <saveez at hotmail.com>
>  > # Předmět: RE: [Insight-developers] Re: [Insight-users] Fixing bugs 
> for ITK with
>  > # MinGW
>  > # Datum: 06.9.2007 19:04:01
>  > # ----------------------------------------
>  > #
>  > # Tomas,
>  > #
>  > # We are simply exporting all the symbols, I cannot think of any 
> 'side effects'
>  > # unless you have something in your mind.
>  > #
>  > # >
>  > # > Hi,
>  > # >
>  > # > including that flag solves our problem. I checked it by directly
>  > # > changing link.txt of ITKCommon.dll.Question is whether there
>  > # > are any side effects? If there are no objections l'll try to write a
>  > # > patch with appropriate SET_TARGET_PROPERTIES
>  > # > LINK_FLAGS and a MINGW-only guard.
>  > # >
>  > # > Regards,
>  > # > Tomas
>  > # >
>  > # > # Following this
>  > # > # 
> [http://public.kitware.com/pipermail/vtkusers/2006-February/083673.html],
>  > # does
>  > # > # the cmake script contain generating the suggested export flags?
>  > # > #
>  > # > #
>  > # > # I have reproduced this BUILD_SHARED_LIBS/mingw error with CVS 
> ITK and MinGW
>  > # on
>  > # > # my laptop..... If anybody has another suggestion about how to 
> fix it, I'd
>  > # be
>  > # > # happy to try it out...
>  > # > #
>  > # > #
>  > # > # David
>  > # > #
>  > # > #
>  > # > #
>  > # > # On 9/5/07, Ali - <saveez at hotmail.com> wrote:
>  > # > #
>  > # > #
>  > # > #
>  > # > #
>  > # > #
>  > # > #
>  > # > #
>  > # > #
>  > # > # > Well,
>  > # > # >
>  > # > # > It turns out that the symbol template class
>  > # > # >
>  > # > # > itk::SmartPointerForwardReference<>
>  > # > # >
>  > # > #
>  > # > # > is actually already defined and exported in the file
>  > # > # >
>  > # > # > itkSmartPointerForwardReferenceProcessObject.cxx
>  > # > # >
>  > # > # >
>  > # > # > but the CMakeLists.txt file only adds it to the list of
>  > # > # > source files if "WIN32" is defined.
>  > # > #
>  > # > # >
>  > # > # > Yesterday, I tried modifying the CMake logic to include
>  > # > # > itkSmartPointerForwardReferenceProcessObject.cxx in the
>  > # > # > ITKCommon library when we build on MinGW:
>  > # > # >
>  > # > # >
>  > # > #
>  > # 
> http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Common/CMakeLists.txt.diff?cvsroot=Insight&r1=1.123&r2=1.124
>  > # > # >
>  > # > # >
>  > # > # > Lines 90-94:
>  > # > # >
>  > # > # >
>  > # > # > ELSE (WIN32)
>  > # > # > IF(MINGW)
>  > # > #
>  > # > # > SET(ITKCommon_SRCS ${ITKCommon_SRCS}
>  > # > # > itkSmartPointerForwardReferenceProcessObject.cxx)
>  > # > # > ENDIF(MINGW)
>  > # > # > ENDIF (WIN32)
>  > # > # >
>  > # > #
>  > # > # Cmake never goes to
>  > # > #
>  > # > #
>  > # > # ELSE (WIN32)
>  > # > # ...
>  > # > # ENDIF (WIN32)
>  > # > #
>  > # > #
>  > # > # it only goes to
>  > # > #
>  > # > #
>  > # > # IF (WIN32)
>  > # > #
>  > # > # ...
>  > # > #
>  > # > # ENDIF (WIN32)
>  > # > #
>  > # > #
>  > # > # as I checked it by MESSAGE(), and on my XP+MINGW+MSYS system.
>  > # > #
>  > # > # Since the target 
> itkSmartPointerForwardReferenceProcessObject.cxx is
>  > # already
>  > # > # included in the WIN32 condition, this does not make any changes 
> to the
>  > # errors.
>  > # > #
>  > # > #
>  > # > # >
>  > # > # >
>  > # > # > However I'm not sure if this is the appropriate logic...
>  > # > # >
>  > # > # >
>  > # > # > Ali: Could you please update your CVS checkout of ITK
>  > # > # > and give it a try ?
>  > # > #
>  > # > #
>  > # > # I gave it a try, the same errors again.
>  > # > #
>  > # > # >
>  > # > # > You may want to add a MESSAGE() in the middle of the
>  > # > # > IF(MINGW) to make sure that CMake is actually visiting
>  > # > # > that line.
>  > # > #
>  > # > # >
>  > # > # >
>  > # > # > Please let us know if this change works for you,
>  > # > # >
>  > # > # >
>  > # > # > Thanks
>  > # > # >
>  > # > # >
>  > # > # >
>  > # > # > Luis
>  > # > # >
>  > # > #
>  > # > #
>  > # > # Play Movie Mash-up and win
>  > # > # BIG prizes!
>  > # > #
>  > # > # _______________________________________________
>  > # > # Insight-developers mailing list
>  > # > # Insight-developers at itk.org
>  > # > #
>  > # > # http://www.itk.org/mailman/listinfo/insight-developers
>  > # > #
>  > # > #
>  > # > #
>  > # > #
>  > # > #
>  > # > # _________________________________________________________________
>  > # > # 100's of Music vouchers to be won with MSN Music
>  > # > # https://www.musicmashup.co.uk
>  > # > #
>  > # > #
>  > #
>  > # _________________________________________________________________
>  > # Get free emoticon packs and customisation from Windows Live.
>  > # http://www.pimpmylive.co.uk
>  > #
>  > #
> 
> ------------------------------------------------------------------------
> Are you the Quizmaster? Play BrainBattle with a friend now! 
> <http://specials.uk.msn.com/brainbattle>


More information about the Insight-developers mailing list