[Insight-users] Watershed 3D example strange Error
David Doria
daviddoria at gmail.com
Fri Mar 25 07:44:20 EDT 2011
On Thu, Mar 24, 2011 at 11:58 PM, Ella Maria Kadas <ella_kadas at yahoo.com>wrote:
> Hi,
>
> Thank u for the explanation. Because Watershed Segmentation is not in the
> Review Folder, i used
> TARGET_LINK_LIBRARIES(........... ITKCommon ITKIO)
> Although i configured ITK3.20 with CMake using Use_Review on i still get
> this error when trying to run the project
>
> ld: library not found for -lITKReview
>
> collect2: ld returned 1 exit status
>
> Command /Developer/usr/bin/g++-4.2 failed with exit code 1
>
> The same happens when i try to run a project in Visual Studio 9 2008.
>
> Any idea how i could fix that?
>
> Thanks,
>
> Ella
>
Please keep the discussion on the mailing list.
Your link line should look exactly like:
That is, replace everything except ITKReview with ${ITK_LIBRARIES}
target_link_libraries(DeepCopy ITKReview ${ITK_LIBRARIES})
ld: library not found for -lITKReview
definitely means that you built ITK without USE_REVIEW on. Either that or
you're linking against a different version of ITK than the one you are
building.
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110325/0983358e/attachment.htm>
More information about the Insight-users
mailing list