[Insight-users] Error while Making an example

Harisankar P S hsps9.99 at gmail.com
Thu Mar 3 08:09:32 EST 2011


can someone suggest some resource in which i can find the soultion... I am
working on an ubuntu linux system

On Thu, Mar 3, 2011 at 1:18 AM, Harisankar P S <hsps9.99 at gmail.com> wrote:

> Is this what you  meant, sorry i am beginer to ITK and Cmake
>
>
> Contents of the CMakeLists.txt are attached:-
> PROJECT(EdgeDetection)
>
>
> IF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )
>
>   FIND_PACKAGE(ITK)
>   IF(ITK_FOUND)
>     INCLUDE(${ITK_USE_FILE})
>   ELSE(ITK_FOUND)
>     MESSAGE(FATAL_ERROR
>             "Cannot build InsightApplications without ITK.  Please set
> ITK_DIR.")
>   ENDIF(ITK_FOUND)
>
> ENDIF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )
>
>
>
> INCLUDE_DIRECTORIES(${InsightApplications_SOURCE_DIR}/EdgeDetection)
>
> #ADD_EXECUTABLE(itk2DEdgeDetectionSample itk2DEdgeDetectionSample.cxx)
> ADD_EXECUTABLE(itk3DEdgeDetectionSample itk3DEdgeDetectionSample.cxx)
> INSTALL_TARGETS(/bin itk3DEdgeDetectionSample)
> TARGET_LINK_LIBRARIES(itk3DEdgeDetectionSample ITKBasicFilters ITKIO)
>
>
> On Thu, Mar 3, 2011 at 1:07 AM, David Doria <daviddoria at gmail.com> wrote:
>
>> On Wed, Mar 2, 2011 at 2:34 PM, Harisankar P S <hsps9.99 at gmail.com>wrote:
>>
>>> I got this error while Make compiling the Edgedetection example of ITK
>>>
>>> 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.
>>>
>>> Please suggest a soultion for the error
>>>
>>>
>> Are you using a CMakeLists.txt file similar to the one here:
>>
>> http://www.itk.org/Wiki/ITK/Examples/SimpleOperations/DistanceBetween<http://www.itk.org/Wiki/ITK/Examples/SimpleOperations/DistanceBetweenPoints>
>> Points<http://www.itk.org/Wiki/ITK/Examples/SimpleOperations/DistanceBetweenPoints>
>>
>>
>> <http://www.itk.org/Wiki/ITK/Examples/SimpleOperations/DistanceBetweenPoints>
>> ?
>>
>> David
>>
>
>
>
> --
> Harisankar P S
> 2012 Computer Science and Engineering,
> College of Engineering Chengannur.
> +91 9446 310 845 | hsps9.99 at ieee.org
> http://cecblog.com
>
>


-- 
Harisankar P S
2012 Computer Science and Engineering,
College of Engineering Chengannur.
+91 9446 310 845 | hsps9.99 at ieee.org
http://cecblog.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110303/65083861/attachment.htm>


More information about the Insight-users mailing list