<font color="#666666"><font face="tahoma,sans-serif">Is this what you meant, sorry i am beginer to ITK and Cmake<br><br><br>Contents of the CMakeLists.txt are attached:-<br>PROJECT(EdgeDetection)<br><br><br>IF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )<br>
<br> FIND_PACKAGE(ITK)<br> IF(ITK_FOUND)<br> INCLUDE(${ITK_USE_FILE})<br> ELSE(ITK_FOUND)<br> MESSAGE(FATAL_ERROR<br> "Cannot build InsightApplications without ITK. Please set ITK_DIR.")<br>
ENDIF(ITK_FOUND)<br><br>ENDIF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )<br><br><br><br>INCLUDE_DIRECTORIES(${InsightApplications_SOURCE_DIR}/EdgeDetection)<br><br>#ADD_EXECUTABLE(itk2DEdgeDetectionSample itk2DEdgeDetectionSample.cxx)<br>
ADD_EXECUTABLE(itk3DEdgeDetectionSample itk3DEdgeDetectionSample.cxx)<br>INSTALL_TARGETS(/bin itk3DEdgeDetectionSample)<br>TARGET_LINK_LIBRARIES(itk3DEdgeDetectionSample ITKBasicFilters ITKIO)<br><br></font></font><br><div class="gmail_quote">
On Thu, Mar 3, 2011 at 1:07 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div class="im">On Wed, Mar 2, 2011 at 2:34 PM, Harisankar P S <span dir="ltr"><<a href="mailto:hsps9.99@gmail.com" target="_blank">hsps9.99@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I got this error while Make compiling the Edgedetection example of ITK<br><br>It seems that the library is not being linked... dont know how to resolve it, have set the ITK_DIR in cmake, but still it seems there is an error.<br>
<br>Please suggest a soultion for the error<br><br></blockquote><div> </div></div>Are you using a CMakeLists.txt file similar to the one here: </div><div class="gmail_quote">
<br></div><div class="gmail_quote"><a href="http://www.itk.org/Wiki/ITK/Examples/SimpleOperations/DistanceBetweenPoints" target="_blank">http://www.itk.org/Wiki/ITK/Examples/SimpleOperations/DistanceBetween</a></div>
<div class="gmail_quote"><a href="http://www.itk.org/Wiki/ITK/Examples/SimpleOperations/DistanceBetweenPoints" target="_blank">Points</a></div><div class="gmail_quote"><br></div><div class="gmail_quote"><a href="http://www.itk.org/Wiki/ITK/Examples/SimpleOperations/DistanceBetweenPoints" target="_blank"></a>?<br>
<font color="#888888">
<br><div>David </div></font></div>
</blockquote></div><br><br clear="all"><br>-- <br>Harisankar P S<br>2012 Computer Science and Engineering,<br>College of Engineering Chengannur.<br>+91 9446 310 845 | <a href="mailto:hsps9.99@ieee.org" target="_blank">hsps9.99@ieee.org</a><br>
<div><a href="http://cecblog.com" target="_blank">http://cecblog.com</a></div><br>