[Insight-users] Error while Making an example
Harisankar P S
hsps9.99 at gmail.com
Wed Mar 2 14:34:02 EST 2011
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
ERROR:-
[100%] Building CXX object
CMakeFiles/itk3DEdgeDetectionSample.dir/itk3DEdgeDetectionSample.cxx.o
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:18:36:
error: itkImageRegionIterator.h: No such file or directory
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:19:37:
error: itkLaplacianImageFilter.h: No such file or directory
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:20:58:
error: itkZeroCrossingBasedEdgeDetectionImageFilter.h: No such file or
directory
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:21:46:
error: itkSobelEdgeDetectionImageFilter.h: No such file or directory
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:22:46:
error: itkCannyEdgeDetectionImageFilter.h: No such file or directory
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:23:31:
error: itkRawImageWriter.h: No such file or directory
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:24:32:
error: itkImageFileReader.h: No such file or directory
In file included from
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:26:
/home/southwind/Desktop/EdgeDetection/itkSWSRawFileReader.h:20:28: error:
itkImageSource.h: No such file or directory
/home/southwind/Desktop/EdgeDetection/itkSWSRawFileReader.h:21:22: error:
itkImage.h: No such file or directory
/home/southwind/Desktop/EdgeDetection/itkSWSRawFileReader.h:22:32: error:
itkExceptionObject.h: No such file or directory
In file included from
/home/southwind/Desktop/EdgeDetection/itkSWSRawFileReader.h:98,
from
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:26:
/home/southwind/Desktop/EdgeDetection/itkSWSRawFileReader.txx:20:30: error:
itkObjectFactory.h: No such file or directory
In file included from
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:27:
/home/southwind/Desktop/EdgeDetection/itkmyRawFileWriter.h:20:35: error:
itkImageToImageFilter.h: No such file or directory
In file included from
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:26:
/home/southwind/Desktop/EdgeDetection/itkSWSRawFileReader.h:38: error:
function definition does not declare parameters
In file included from
/home/southwind/Desktop/EdgeDetection/itkSWSRawFileReader.h:98,
from
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:26:
/home/southwind/Desktop/EdgeDetection/itkSWSRawFileReader.txx:32: error:
expected initializer before ‘<’ token
/home/southwind/Desktop/EdgeDetection/itkSWSRawFileReader.txx:50: error:
expected initializer before ‘<’ token
In file included from
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:27:
/home/southwind/Desktop/EdgeDetection/itkmyRawFileWriter.h:29: error:
function definition does not declare parameters
In file included from
/home/southwind/Desktop/EdgeDetection/itkmyRawFileWriter.h:91,
from
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:27:
/home/southwind/Desktop/EdgeDetection/itkmyRawFileWriter.txx:29: error:
expected initializer before ‘<’ token
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx: In
function ‘int main(int, char**)’:
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:45:
error: expected initializer before ‘<’ token
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:47:
error: expected initializer before ‘<’ token
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:56:
error: ‘cout’ was not declared in this scope
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:56:
error: ‘endl’ was not declared in this scope
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:57:
error: ‘exit’ was not declared in this scope
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:64:
error: ‘RawFileReader’ is not a member of ‘itk::sws’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:64:
error: ‘UnsignedImageType’ was not declared in this scope
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:64:
error: ‘::Pointer’ has not been declared
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:64:
error: expected `;' before ‘reader’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:68:
error: ‘UnsignedImageType’ is not a class or namespace
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:68:
error: expected `;' before ‘requestedRegion’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:69:
error: ‘UnsignedImageType’ is not a class or namespace
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:69:
error: expected `;' before ‘size’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:70:
error: ‘UnsignedImageType’ is not a class or namespace
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:70:
error: expected `;' before ‘index’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:75:
error: ‘size’ was not declared in this scope
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:79:
error: pointer to a function used in arithmetic
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:79:
error: assignment of function ‘char* index(const char*, int)’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:79:
error: cannot convert ‘int’ to ‘char* ()(const char*, int)throw ()’ in
assignment
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:80:
error: pointer to a function used in arithmetic
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:80:
error: assignment of read-only location ‘*(index + 1u)’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:80:
error: cannot convert ‘int’ to ‘char* ()(const char*, int)throw ()’ in
assignment
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:81:
error: pointer to a function used in arithmetic
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:81:
error: assignment of read-only location ‘*(index + 2u)’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:81:
error: cannot convert ‘int’ to ‘char* ()(const char*, int)throw ()’ in
assignment
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:83:
error: ‘requestedRegion’ was not declared in this scope
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:86:
error: ‘reader’ was not declared in this scope
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:93:
error: ‘UnsignedImageType’ is not a class or namespace
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:93:
error: expected `;' before ‘inPtr’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:96:
error: ‘ImageType’ has not been declared
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:96:
error: expected `;' before ‘input’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:98:
error: ‘input’ was not declared in this scope
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:104:
error: ‘ImageRegionIterator’ is not a member of ‘itk’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:104:
error: ‘inPtr’ was not declared in this scope
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:104:
error: ‘uit’ was not declared in this scope
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:105:
error: ‘ImageRegionIterator’ is not a member of ‘itk’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:105:
error: ‘ImageType’ was not declared in this scope
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:105:
error: ‘it’ was not declared in this scope
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:118:
error: ‘ImageType’ is not a class or namespace
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:118:
error: expected `;' before ‘output’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:227:
error: ‘myRawFileWriter’ is not a member of ‘itk’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:227:
error: ‘::Pointer’ has not been declared
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:227:
error: expected `;' before ‘writer’
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:230:
error: ‘writer’ was not declared in this scope
/home/southwind/Desktop/EdgeDetection/itk3DEdgeDetectionSample.cxx:231:
error: ‘output’ was not declared in this scope
make[2]: ***
[CMakeFiles/itk3DEdgeDetectionSample.dir/itk3DEdgeDetectionSample.cxx.o]
Error 1
make[1]: *** [CMakeFiles/itk3DEdgeDetectionSample.dir/all] Error 2
make: *** [all] Error 2
--
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/2b7cc34f/attachment.htm>
More information about the Insight-users
mailing list