[Insight-users] Namespace refactoring for Osirix

Tim Allman timothy at brasscats.ca
Wed Oct 24 12:02:22 EDT 2012


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

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


More information about the Insight-users mailing list