[Insight-developers] Compiling applications outside Insight tree

Sayan Pathak spathak at insightful . com
Wed, 28 Aug 2002 11:14:28 -0700


That's a good idea. I would help getting across the compile barrier =
easily.

> -----Original Message-----
> From: Luis Ibanez [mailto:luis.ibanez@kitware.com]
> Sent: Wednesday, August 28, 2002 5:52 AM
> To: Sayan Pathak
> Cc: insight-developers@public.kitware.com
> Subject: Re: [Insight-developers] Compiling applications=20
> outside Insight
> tree
>=20
>=20
>=20
> Hi Sayan,
>=20
> itkpng.lib and MetaIO are included because
> their IO factories are registered by the default.
> This makes possible to relieve users from having
> to invoke:   XXXImageIOFactory.RegisterOneFactory().
>=20
> That's the reason why even though you are not using
> Meta objects explicitly, the libraries are required
> at link time.
>=20
> Maybe we could put together a CMake variable
> containig the list of the minimum set of ITK libraries
> that are always required. This will make the external
> projects look nicer.
>=20
>=20
>    Luis
>=20
>=20
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20
> Sayan Pathak wrote:
> > Hi Luis,
> > Thanks, That did help me to get over that particular=20
> barrier. But then it asks about itkpng.lib. When that is=20
> included it asks for MetaIO.lib and so on. Eventhough I am=20
> not using any MetaIO objects.=20
> > It looks like Aljaz's fix of including all possible=20
> libraries (the ones I need and the ones I don't) is the way=20
> out. I prefer the old way though where only the ones I need=20
> were specified.
> >=20
> > Sayan
> >=20
> >=20
>=20
>=20
>=20
>=20