[ITK] [ITK-users] Exception when running IO example ImageReadCastWrite in Xcode
Matt McCormick
matt.mccormick at kitware.com
Mon Apr 7 09:06:24 EDT 2014
Hi Ramon,
Glad to hear you have been successful.
When CMake is used to build your project, it can import the build
configuration of the target library and generate the project files and
makefiles with that information. This decreases build configuration
overhead, reduces bugs, improves flexibility and portability, and
improves compatibility. CMake imports all the libraries, their
location, and the location of all dependent libraries, including
system libraries if they are selected, and correctly exports this
information. With a single set of CMake scripts, developers are not
limited to XCode or a particular version of XCode. When the times
comes that a XCode is upgraded or a different build system is desired,
all the manual work does not have to be redone. When a different
version of ITK or another library is desired, there is not extra work
required if CMake is used. Using CMake is a best practice.
HTH,
Matt
On Mon, Apr 7, 2014 at 8:30 AM, padillr <ramonpadilla1 at yahoo.co.uk> wrote:
> Hi Matt,
>
> I was able to successfully build and run the ImageReadCastWrite example
> using both the example you provided and the suggestion in your follow up
> post to guide me.
>
> So, thanks very much for your help.
>
> Using ITK in this way (i.e. build ITK using Cmake and then link to ITK
> binaries from within my Xcode project application) is consistent with how we
> use other COTS libraries.
>
> Can you tell me of there are any other potential hidden pitfalls like the
> factory registration that I should be aware of? I still don't really get why
> building the examples using Cmake (that generates some factory registration
> code) is recommended over manually adding some code to do it.
>
> regards
>
> Ramon
>
>
>
>
> --
> View this message in context: http://itk-users.7.n7.nabble.com/ITK-users-Exception-when-running-IO-example-ImageReadCastWrite-in-Xcode-tp33650p33707.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> 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
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
_____________________________________
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
More information about the Community
mailing list