[Insight-users] making ITK registration calls into a library to be called by C++

Richard Frank rfrank at dominionsw.com
Fri Feb 22 18:22:31 EST 2013


Sounds to me like you need to use CMake to create a vs solution that builds  ITK as static libraries. The create a new vs library project that statically links those libraries.

I doubt there is a pre-made example of this configuration, it's not the common usage.

Rick

On Feb 22, 2013, at 2:50 PM, "ronn kling" <ronn at rlkling.com<mailto:ronn at rlkling.com>> wrote:

Let me be clearer.

My standalone C++ has to be independent from ITK where the only header to be loaded is the one defining the routines in the ITK lib file that I made.

So I am looking for an example with no main program and the only Cmake output is a library, in my case a library that I am calling ITKregister.lib

On Fri, Feb 22, 2013 at 3:45 PM, Bill Lorensen <bill.lorensen at gmail.com<mailto:bill.lorensen at gmail.com>> wrote:
There are lots of examples here:
http://www.itk.org/Wiki/ITK/Examples

They each have a CMakeLists.txt file.

For example look at: http://www.itk.org/Wiki/ITK/Examples/Images/ShrinkImageFilter
You can download a tar file that contains this single example. The bottom of the wiki page tells how.


On Fri, Feb 22, 2013 at 3:20 PM, ronn kling <rlkling at gmail.com<mailto:rlkling at gmail.com>> wrote:
All,
So I'm getting smarter on all this ITK stuff and I realize that my previous problem is due to my making the ITK library with Visual Studio 2010 and not CMake. So my question is, does anyone have CMake examples of making a library of ITK functions to be called by another C++ routine? I don't know cMake at all.....

-Ronn

_____________________________________
Powered by www.kitware.com<http://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




--
Unpaid intern in BillsBasement at noware dot com

_____________________________________
Powered by www.kitware.com<http://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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130222/da9d9856/attachment.htm>


More information about the Insight-users mailing list