[Insight-users] itk2DEdgeDetectionSample
Joshua Cates
cates@sci.utah.edu
Tue, 7 May 2002 17:41:25 -0600 (MDT)
Hello Mathieu,
This example is old and needs some updating. The build configuration
should be modified as well. We'll have a look at it and make sure it
compiles properly and also update the I/O. Thanks for bringing it to our
attention.
Josh.
______________________________
Josh Cates
School of Computer Science
University of Utah
Email: cates@sci.utah.edu
Phone: (801) 587-7697
URL: www.cs.utk.edu/~cates
On Tue, 7 May 2002, Mathieu Malaterre wrote:
> Hi all,
> I tried to used itk2DEdgeDetectionSample. So I changed the
> CMakeFile.txt. But then when I tried to recomplie, I get an error:
> > cmake .
> > make
> ...
> /shalom/data/mmalat/CMake/bin/cmake
> -S/shalom/data/mmalat/InsightSource/Examples/EdgeDetection
> -O/shalom/data/mmalat/InsightSource/Examples/EdgeDetection
> -H/shalom/data/mmalat/InsightSource -B/shalom/data/mmalat/InsightSource
> /usr/bin/c++ -rdynamic -g -O2 -ftemplate-depth-50
> -L/shalom/data/mmalat/InsightSource/Utilities/zlib
> -L/shalom/data/mmalat/InsightSource/Utilities/png
> -L/shalom/data/mmalat/InsightSource/Code/Common
> -L/shalom/data/mmalat/InsightSource/Code/IO
> -L/shalom/data/mmalat/InsightSource/Code/Numerics/vxl
> -L/shalom/data/mmalat/VTK_cvs/Lib
> -L/shalom/data/mmalat/InsightSource/Code/BasicFilters
> -L/shalom/data/mmalat/InsightSource/Code/Algorithms
> -L/shalom/data/mmalat/Insight/Lib/ -L/shalom/data/mmalat/Insight/Bin/
> -lpthread -ldl -lpthread -ldl -lm -lGL -lXt -lSM -lICE
> -L/usr/X11R6/lib -lX11 -lXext -lpthread -ldl -lm -lVXLNumerics
> -lITKCommon -lITKBasicFilters -lm -lITKBasicFilters -lITKCommon
> -lVXLNumerics -lITKIO -lpthread -ldl -lpthread -ldl
> -lm -lGL -lXt -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lpthread -ldl
> -lm -lVXLNumerics -lITKCommon -lITKBasicFilters -lm
> -lITKBasicFilters -lITKCommon -lVXLNumerics -lITKIO
> -Wl,-rpath,/shalom/data/mmalat/InsightSource/Utilities/zlib:/shalom/data/mmalat/InsightSource/Utilities/png:/shalom/data/mmalat/InsightSource/Code/Common:/shalom/data/mmalat/InsightSource/Code/IO:/shalom/data/mmalat/InsightSource/Code/Numerics/vxl:/shalom/data/mmalat/VTK_cvs/Lib:/shalom/data/mmalat/InsightSource/Code/BasicFilters:/shalom/data/mmalat/InsightSource/Code/Algorithms:/shalom/data/mmalat/Insight/Lib/:/shalom/data/mmalat/Insight/Bin/
> -o /shalom/data/mmalat/Insight/Bin/itk2DEdgeDetectionSample
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function
> `_start':
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18):
> undefined reference to `main'
> collect2: ld returned 1 exit status
> make[5]: *** [/shalom/data/mmalat/Insight/Bin/itk2DEdgeDetectionSample]
> Error 1
> make[4]: *** [default_target] Error 2
> make[3]: *** [default_target_EdgeDetection] Error 2
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_Examples] Error 2
> make: *** [default_target] Error 2
>
> So the Makefile seems not to be correctly generated. I tried again by
> changing itk2DEdgeDetectionSample.txx to itk2DEdgeDetectionSample.cxx,
> and magically it works (well it compiles fine).
> If anybody could explains to me what is the trick ?
>
> By the way I can only use SOBEL filter Canny and ZeroCrossing seems not
> to work. But I'll have a look.
> thanks
> Mathieu
>
>