[Insight-users] Namespace refactoring for Osirix

Xiaoxiao Liu xiaoxiao.liu at kitware.com
Thu Oct 25 11:56:40 EDT 2012


Tim,
Please do post the solution later.
I think other Osirix users/developers will benefit from it too.

Thank you very much!

-Xiaoxiao

On Thu, Oct 25, 2012 at 11:51 AM, Tim Allman <timothy at brasscats.ca> wrote:

>  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 by www.kitware.com
>
> Visit other Kitware open-source projects athttp://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
>
>
>
>
> _____________________________________
> 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://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
>
>


-- 


---------------------------------------------
*Xiaoxiao Liu*, Ph.D.
R & D Engineer
Kitware Inc <http://www.kitware.com/>.
Clifton Park, NY
Phone: (518) 881-4924  or  (518) 371-3971 x124
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121025/43600d14/attachment.htm>


More information about the Insight-users mailing list