[Insight-developers] Explicit instantiation linking issues on
mac platform
Julien Jomier
julien.jomier at kitware.com
Tue Sep 26 11:42:21 EDT 2006
Hi Hans,
Thanks a lot for taking care of this.
I think it's a good idea to make everything in the binary directory
under the same hierarchy as the source code.
I just removed the CMakeLists.txt files associated with ExplicitITK
because they are not needed anymore (since the source code is now
included in ITKCommon), so you might have to change your patch a little bit.
Feel free to apply your patch,
Thanks again for your help with this,
Julien
Hans Johnson wrote:
> Julien et. Al.,
>
> I have been testing the explicit instantiation code, and determined that it
> was not being installed correctly. Building with explicit instantiation
> turned on all tests and examples build and execute fine. After installing
> ITK, however, external packages can not be built against the explicit
> instantiated version of ITK due to missing header files needed from the
> explicit instantiations. (i.e. InsightApplications pointing to the installed
> directories of ITK).
>
> I have fixed this problem with the changes described in the included patch.
> Please review these changes and provide feedback to me. If I do not hear
> any dissent by Wednesday, I will commit these changes.
>
> Regards,
> Hans
>
>
>
> On 9/25/06 9:43 AM, "Julien Jomier" <julien.jomier at kitware.com> wrote:
>
>> Hi Hans,
>>
>> Sorry for the late reply. I just modified ExplicitITK so now it adds the
>> source files directly into ITKCommon.
>> Can you give it a try and let me know if you find any issues?
>>
>> Thanks,
>>
>> Julien
>>
>> Hans Johnson wrote:
>>> Brad: Adding the explicit source files directly to the ITKCommon is
>>> definitely my preference, and I think that it makes linking more robust and
>>> easier to understand.
>>>
>>> Julien: Would you be able to make this change after the cvs repository is
>>> opened back up?
>>>
>>> Thanks,
>>> Hans
>>>
>>>
>>>
>>>
>>> On 9/7/06 8:30 AM, "Brad King" <brad.king at kitware.com> wrote:
>>>
>>>> Hans Johnson wrote:
>>>>>>>>> IF(ITK_EXPLICIT_INSTANTIATION)
>>>>>>>>> TARGET_LINK_LIBRARIES (ITKCommon ITKCommonExplicit)
>>>>>>>>> ENDIF(ITK_EXPLICIT_INSTANTIATION)
>>>>>> Do you get the error when compiling ITK or an external program using ITK?
>>>>> The problems occur in compiling the Testing and Examples directories under
>>>>> ITK.
>>>> The problem is that symbols in ITKCommonExplicit need symbols in
>>>> ITKCommon. The source files for ITKCommonExplicit should just be added
>>>> to the ITKCommon library directly.
>>>>
>>>> -Brad
>>> _______________________________________________
>>> Insight-developers mailing list
>>> Insight-developers at itk.org
>>> http://www.itk.org/mailman/listinfo/insight-developers
>>>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
More information about the Insight-developers
mailing list