[Insight-users] (no subject)
digvijay singh
digvijay singh" <singh98127 at rediffmail . com
16 Aug 2002 08:32:51 -0000
i tried compiling RawImageReadWrite and i get error while
executing make.please check the syntax in cmakelists.txt file
i'm sending the error messages and my CMakeLists.txt file
error message:
cmake.depends is up-to-date
c++ -I/home/vertebra/digvijay/project/proj_1/RawImageReadWrite
-Ihome/vertebra/
digvijay/itk/Code/Common -I/Code/IO -c
/home/vertebra/digvijay/project/proj_1/
RawImageReadWrite/itkRawImageReadWrite.cxx -o
itkRawImageReadWrite.o
"/home/vertebra/digvijay/project/proj_1/RawImageReadWrite/itkRawImageReadWrite.c
xx", line 19: Error: Could not open include file "itkImage.h".
"/home/vertebra/digvijay/project/proj_1/RawImageReadWrite/itkRawImageReadWrite.c
xx", line 22: Error: Could not open include file
"itkImageFileReader.h".
"/home/vertebra/digvijay/project/proj_1/RawImageReadWrite/itkRawImageReadWrite.c
xx", line 25: Error: Could not open include file
"itkImageFileWriter.h".
"/home/vertebra/digvijay/project/proj_1/RawImageReadWrite/itkRawImageReadWrite.c
xx", line 28: Error: Could not open include file
"itkRawImageIO.h".
"/home/vertebra/digvijay/project/proj_1/RawImageReadWrite/itkRawImageReadWrite.c
xx", line 39: Error: cerr is not a member of std.
"/home/vertebra/digvijay/project/proj_1/RawImageReadWrite/itkRawImageReadWrite.c
xx", line 39: Error: endl is not a member of std.
"/home/vertebra/digvijay/project/proj_1/RawImageReadWrite/itkRawImageReadWrite.c
xx", line 40: Error: cerr is not a member of std.
"/home/vertebra/digvijay/project/proj_1/RawImageReadWrite/itkRawImageReadWrite.c
xx", line 40: Error: endl is not a member of std.
"/home/vertebra/digvijay/project/proj_1/RawImageReadWrite/itkRawImageReadWrite.c
xx", line 41: Error: cerr is not a member of std.
"/home/vertebra/digvijay/project/proj_1/RawImageReadWrite/itkRawImageReadWrite.c
xx", line 41: Error: endl is not a member of std.
"/home/vertebra/digvijay/project/proj_1/RawImageReadWrite/itkRawImageReadWrite.c
xx", line 48: Error: The function "atoi" must have a prototype.
Error: Cannot continue processing because of prior errors.
Compilation aborted.
make[1]: *** [itkRawImageReadWrite.o] Error 1
make: *** [default_target] Error 2
INCLUDE_DIRECTORIES(
${ITK_SOURCE_DIR} home/vertebra/digvijay/itk/Code/Common
${ITK_SOURCE_DIR}/Code/IO
)
LINK_DIRECTORIES(
${ITK_BINARY_DIR}/Code/Common
${ITK_BINARY_DIR}/Code/IO
)
SOURCE_FILES(RawImageReadWrite_SRCS
itkRawImageReadWrite
)
LINK_LIBRARIES (
ITKCommon
ITKIO
)
IF(UNIX)
LINK_LIBRARIES (
${CMAKE_X_LIBS} -lm
)
ENDIF(UNIX)
ADD_EXECUTABLE(RawImageReadWrite RawImageReadWrite_SRCS)
thanks