[Insight-users] itk2DEdgeDetectionSample

Mathieu Malaterre mmalat@irus.rri.ca
Tue, 07 May 2002 19:57:46 -0400


This is a multi-part message in MIME format.
--------------E92745329576574E0D8D9191
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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


--------------E92745329576574E0D8D9191
Content-Type: text/x-vcard; charset=us-ascii;
 name="mmalat.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Mathieu Malaterre
Content-Disposition: attachment;
 filename="mmalat.vcf"

begin:vcard 
n:Malaterre;Mathieu
tel;cell:519-697-5045
tel;work:519-685-8300 x34096
x-mozilla-html:FALSE
url:http://www.irus.rri.ca/~mmalat
org:The John P. Robarts Research Institute;Imaging Research Laboratories
adr:;;100 Perth Drive;London;Ontario;N6A 5K8;CANADA
version:2.1
email;internet:mmalat@irus.rri.ca
title:Visiting Graduate Student
x-mozilla-cpt:;0
fn:Malaterre, Mathieu
end:vcard

--------------E92745329576574E0D8D9191--