[Insight-users] Itk error under linux

John Smith af3113 at yahoo.com
Thu Nov 19 12:36:58 EST 2009


Hey all, 

I managed to solve the configuration problem. However, I got this error now while running "make":

Scanning dependencies of target ITKIO
[ 90%] Building CXX object itk/InsightToolkit-3.16.0/Code/IO/CMakeFiles/ITKIO.dir/itkNiftiImageIO.o
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx: In member function ‘virtual void itk::NiftiImageIO::Read(void*)’:
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:496: error: ‘nifti_read_subregion_image’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx: In member function ‘virtual void itk::NiftiImageIO::ReadImageInformation()’:
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:864: error: ‘NIFTI_TYPE_RGBA32’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:948: error: ‘NIFTI_INTENT_TIME_SERIES’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:950: error: ‘NIFTI_INTENT_NODE_INDEX’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:952: error: ‘NIFTI_INTENT_RGB_VECTOR’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:954: error: ‘NIFTI_INTENT_RGBA_VECTOR’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:956: error: ‘NIFTI_INTENT_SHAPE’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx: In member function ‘virtual void itk::NiftiImageIO::WriteImageInformation()’:
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:1408: error: ‘NIFTI_TYPE_RGBA32’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx: In member function ‘void itk::NiftiImageIO::SetImageIOOrientationFromNIfTI(short unsigned int)’:
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:1488: error: ‘struct nifti_image’ has no member named ‘analyze75_orient’
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:1490: error: ‘a75_transverse_unflipped’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:1493: error: ‘a75_sagittal_unflipped’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:1498: error: ‘a75_transverse_flipped’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:1499: error: ‘a75_coronal_flipped’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:1500: error: ‘a75_sagittal_flipped’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:1501: error: ‘a75_orient_unknown’ was not declared in this scope
/vol/vipdata/users/as5909/irtk/itk/InsightToolkit-3.16.0/Code/IO/itkNiftiImageIO.cxx:1502: error: ‘a75_coronal_unflipped’ was not declared in this scope
make[2]: *** [itk/InsightToolkit-3.16.0/Code/IO/CMakeFiles/ITKIO.dir/itkNiftiImageIO.o] Error 1
make[1]: *** [itk/InsightToolkit-3.16.0/Code/IO/CMakeFiles/ITKIO.dir/all] Error 2
make: *** [all] Error 2

Does anyone know how to deal with that error?

Thank you,

J.




________________________________
From: John Smith <af3113 at yahoo.com>
To: insight-users at itk.org
Sent: Thu, November 19, 2009 12:11:36 PM
Subject: [Insight-users] Itk error under linux


Hi,

I have a problem configuring itk (3.1.6) with cmake (2.8) under linux (ubuntu 9.3). I get this error:
------------------------------------------------------------------------------------------------
CMake Error at Insight/CMakeLists.txt:840 (MESSAGE):
   -ffloat-store causes runtime bugs on gcc 3.2.3 (appearently not on gcc
   3.4.3, but the exact criteria is not known).  It must be removed from your
   compilation options.
------------------------------------------------------------------------------------------------

It seems like I have to change the compilation options however I don't know how as I am new to Linux. Could someone help me to solve this issue?

One other thing, can you also send me an example of a cmake file to include itk to my project? This is what I have for now:
----------------------------------------------------------------------------
FIND_PACKAGE(ITK REQUIRED)
INCLUDE_DIRECTORIES( ${ITK_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(${ITK_LIBRARIES})
----------------------------------------------------------------------------

Thank you in advance.

Best regards,

J.


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091119/e0001504/attachment-0001.htm>


More information about the Insight-users mailing list