[Insight-users] link error when learning (Getting Started with ITK + VTK)
Mathieu Malaterre
mathieu.malaterre at gmail.com
Tue Oct 27 07:42:30 EDT 2009
On Tue, Oct 27, 2009 at 12:35 PM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
> Hi Phil,
>
> Thanks for the clear description of the problem
> and for posting the source code.
>
> I tried this in my GNU/Linux installation, and the
> program compile and links fine for me. :-/
>
> Note that in Linux the order of the libraries in the
> link line is important. (however, the fact that this
> links fine in my Linux installation discards the
> library order as a problem...).
<2 cts>
I think this is a static lib order problem.
Phil, can you try instead:
TARGET_LINK_LIBRARIES ( myProject
ITKBasicFilters ITKCommon ITKIO ${VTK_LIBRARIES})
the order may be of importance here. Or else use shared libs for VTK ...
</2 cts>
More information about the Insight-users
mailing list