[Insight-users] Namespace refactoring for Osirix

Tim Allman timothy at brasscats.ca
Thu Oct 25 11:51:37 EDT 2012


Well, a walk in the woods led to a bit more searching and I was able to 
answer my own question. I hope no one wasted time on this. I'll post the 
script when I clean it up and document it.

Tim

On 12-10-24 12:02 PM, Tim Allman wrote:
> ITK gurus,
>
> I am writing a plug-in for Osirix and need to create a version of ITK 
> in which the namespaces are changed. This is to avoid run time 
> conflicts with the ITK libraries that are linked into Osirix.
>
> In ITK there are two namespaces used, /itk/ and /itksys/ in the 
> default configuration. I have been able to modify an existing script 
> that modifies the source tree to do what I need except for one thing.
>
> I can successfully change, for example, the itk namespace to XXX and 
> the itksys namespace to XXXsys by editing the source files and several 
> CMakeLists.txt files. The result is fine except that the library file 
> that was originally named libitksys-4.2.a becomes libitkXXXsys-4.2.a 
> rather than libXXXsys-4.2.a. This causes some linking problems.
>
> After considerable searching I cannot find where or how the name of 
> this library file is generated. Can anyone give me some direction on this?
>
> Thanks,
> Tim
>
>
>
> _____________________________________
> Powered bywww.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://www.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-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121025/c75326d9/attachment.htm>


More information about the Insight-users mailing list