[Insight-developers] itkObjectFactoryTest2 and CMake 2.9

Bill Lorensen bill.lorensen at gmail.com
Wed Jan 13 11:51:02 EST 2010


But, the old way has been working for a long time. Slicer3 uses
loadable itk IO factories. That facility is key to support the Slicer3
execution model.

On Wed, Jan 13, 2010 at 11:48 AM, Brad King <brad.king at kitware.com> wrote:
> Bill Lorensen wrote:
>> So, after Bill H's fix, we can revert the itk cmakelists.txt changes
>> back to where they were?
>
> Yes.  However, the proper way to create loadable modules with CMake is
>
>  add_library(myplugin MODULE ...)
>
> but ITK has been using
>
>  add_library(myplugin SHARED ...)
>
> The distinction is subtle but does affect some platforms.  This should be
> addressed with a separate change.  The Mac is one of the platforms that
> distinguishes modules and shared libraries, so the change should be tested
> there first.
>
> -Brad
>
>> On Wed, Jan 13, 2010 at 11:39 AM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>>> Bill,
>>>
>>> There were two simultaneous changes yesterday.
>>> In one of them we replaced line 661 in
>>>
>>> Insight/Testing/Code/Common/CMakeLists.txt:
>>>
>>> ADD_LIBRARY(FactoryTestLib SHARED ${FactoryTest_Source})
>>>
>>> with
>>>
>>> ADD_LIBRARY(FactoryTestLib MODULE ${FactoryTest_Source})
>>>
>>>
>>> We are now locally reverting this change in one of the
>>> Macs that run a continuous build:   (thurmite.kitware).
>>>
>>> We should see the effect in about 4 hours....
>>>
>>> (Unfortunately we have a configuration bug in the
>>> Macs, related to the SSE2 rounding tests, that
>>> makes the Macs rebuilds everything from scratch
>>> even when no code changes have been made....
>>> this forces our Mac continuous builds to take 3~4
>>> hours each....   we probably should fix that,... once
>>> we are done with the ObjectFactoryTest2 problem).
>>>
>>>
>>>
>>>      Luis
>>>
>>>
>>> ----------------------
>>> On Wed, Jan 13, 2010 at 11:15 AM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>>>> Bill,
>>>>
>>>> Yeap,
>>>> We have to look back at how to do this right in Macs.
>>>>
>>>>
>>>>     Luis
>>>>
>>>>
>>>> ----------------------------------------------
>>>> On Wed, Jan 13, 2010 at 9:58 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>>> Guys,
>>>>>
>>>>> Six macs don't like the recent change. Looks like they are not loading
>>>>> the shared library.
>>>>>
>>>>> http://www.cdash.org/CDash/testSummary.php?project=2&name=itkObjectFactoryTest2&date=2010-01-13
>>>>>
>>>>> Bill
>>>>>
>>>>> On Wed, Jan 13, 2010 at 12:59 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>>>> New failure here:
>>>>>> http://www.cdash.org/CDash/viewTest.php?onlyfailed&buildid=513466
>>>>>>
>>>>>> On Tue, Jan 12, 2010 at 6:03 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>>>>> Fantastic!
>>>>>>>
>>>>>>> On Tue, Jan 12, 2010 at 5:39 PM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>>>>>>>> Bill,
>>>>>>>>
>>>>>>>>
>>>>>>>> Brad just showed me how to add the right flag to
>>>>>>>> the ITK CMakeLists.txt file (the flag is for the
>>>>>>>> executable that loads the shared library).
>>>>>>>>
>>>>>>>>
>>>>>>>> It comes down to the following patch:
>>>>>>>>
>>>>>>>>
>>>>>>>> macondo [308] cvs diff
>>>>>>>> cvs diff: Diffing .
>>>>>>>> Index: CMakeLists.txt
>>>>>>>> ===================================================================
>>>>>>>> RCS file: /cvsroot/Insight/Insight/Testing/Code/Common/CMakeLists.txt,v
>>>>>>>> retrieving revision 1.249
>>>>>>>> diff -r1.249 CMakeLists.txt
>>>>>>>> 653a654
>>>>>>>>> SET_TARGET_PROPERTIES(itkCommonTests2 PROPERTIES ENABLE_EXPORTS 1)
>>>>>>>> 660c661
>>>>>>>> < ADD_LIBRARY(FactoryTestLib SHARED ${FactoryTest_Source})
>>>>>>>> ---
>>>>>>>>> ADD_LIBRARY(FactoryTestLib MODULE ${FactoryTest_Source})
>>>>>>>>
>>>>>>>>
>>>>>>>> This should work for all versions of CMake.
>>>>>>>>
>>>>>>>>
>>>>>>>> I'm running an Experimental in "macondo.kitware"
>>>>>>>> and if it turns out green I'll commit the patch.
>>>>>>>>
>>>>>>>> This should make Kevin's builds green again...
>>>>>>>>
>>>>>>>>
>>>>>>>>     Luis
>>>>>>>>
>>>>>>>>
>>>>>>>> -----------------------------
>>>>>>>> On Tue, Jan 12, 2010 at 5:02 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>>>>>>> Sounds great. Thanks, Luis and I spent at least 3 hours apiece on this
>>>>>>>>> one in SLC.
>>>>>>>>>
>>>>>>>>> Bill
>>>>>>>>>
>>>>>>>>> On Tue, Jan 12, 2010 at 4:37 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>>>>>>>>>> Kevin H. Hobbs wrote:
>>>>>>>>>>> On 01/12/2010 12:48 PM, Bill Lorensen wrote:
>>>>>>>>>>>> Luis,
>>>>>>>>>>>>
>>>>>>>>>>>> I just built cmake2.9 and configured my linux itk build with it. Sure
>>>>>>>>>>>> enough, itkObjectFactoryTest2 fails. Each hooperlab system that is
>>>>>>>>>>>> failing is using ctest2.9.
>>>>>>>>>>>>
>>>>>>>>>>>> I'm not sure what is going on here. Perhaps you can fill Bill Hoffman
>>>>>>>>>>>> in on our findings in Salt Lake. I'm going to build a cmake2.8 and see
>>>>>>>>>>>> if the problem persists.
>>>>>>>>>>>>
>>>>>>>>>>>> Bill
>>>>>>>>>>>>
>>>>>>>>>>> I'd be glad to run tests on the hooperlab machines if that would be
>>>>>>>>>>> helpful.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> We found the problem.   We are working on a fix.  The -rdynamic flag was
>>>>>>>>>> removed from CMake.   I think the dashboard can be left on CVS CMake, it
>>>>>>>>>> might fail one more night, but I will make sure it is fixed by tomorrow.
>>>>>>>>>>
>>>>>>>>>> -Bill
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Bill Hoffman
>>>>>>>>>> Kitware, Inc.
>>>>>>>>>> 28 Corporate Drive
>>>>>>>>>> Clifton Park, NY 12065
>>>>>>>>>> bill.hoffman at kitware.com
>>>>>>>>>> http://www.kitware.com
>>>>>>>>>> 518 881-4905 (Direct)
>>>>>>>>>> 518 371-3971 x105
>>>>>>>>>> Fax (518) 371-4573
>>>>>>>>>>
>> _______________________________________________
>> 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.html
>>
>> 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
>
>


More information about the Insight-developers mailing list