[Insight-users] (no subject)

Luis Ibanez luis . ibanez at kitware . com
Fri, 16 Aug 2002 09:39:46 -0400


Hi,

The global setup for the ITK project is missing in your configuration.
For example, basic headers like itkImage.h are not being found.

It looks like if you have ran CMake only from a subdirectory.

Please make sure to run CMake from the top directory of the ITK tree.

Thanks

Luis

=====================================================================

digvijay singh wrote:
> 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
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>