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