[Insight-users] Error in compilation of WatershedImageFilter in a standalone

Feng Ma mafeng at hotmail . com
Wed, 17 Sep 2003 17:34:28 -0400


Hi, Luis:

  Thanks so much. It solved my problem.

Cheers,

-Feng

>From: Luis Ibanez <luis . ibanez at kitware . com>
>To: Feng Ma <mafeng at hotmail . com>
>CC: insight-users at itk . org
>Subject: Re: [Insight-users] Error in compilation of WatershedImageFilter 
>in a standalone project
>Date: Wed, 17 Sep 2003 16:02:51 -0400
>
>Hi Feng,
>
>The problem may be related to the order in which you specify your libraries 
>to CMake.
>
>You are doing:
>
>LINK_LIBRARIES (
>ITKAlgorithms
>ITKBasicFilters
>ITKCommon
>ITKIO
>ITKNumerics
>ITKWrapLib
>)
>
>With your Wrapped library at the end.  You should try:
>
>LINK_LIBRARIES ( ITKWrapLib
>ITKAlgorithms
>ITKBasicFilters
>ITKCommon
>ITKIO
>ITKNumerics
>)
>
>with the Wrapped library at the beginning, since your library depend on
>ITK libraries.  The order of libraries in the link line is relevant on 
>Unix.
>
>Try this and compare the Makefile generated from both options. In 
>particular
>look for the position of WrapLib with respect to ITKAlgorithms.a
>
>
>
>Regards,
>
>
>   Luis
>
>
>-------------------

_________________________________________________________________
Try MSN Messenger 6.0 with integrated webcam functionality! 
http://www . msnmessenger-download . com/tracking/reach_webcam