[Insight-users] Itk error under linux

Luis Ibanez luis.ibanez at kitware.com
Sun Nov 22 18:37:19 EST 2009


Hi John,

It looks like you didn't provided the correct source directory when
you configured ITK.

Please read the instructions in the ITK Tutorial:

   http://www.itk.org/CourseWare/Training/GettingStarted-I.pdf

You may want to destroy your current binary directory and
start from scratch by following the instructions of the tutorial.


    Regards,


         Luis


---------------------------------------------------------------
On Thu, Nov 19, 2009 at 12:36 PM, John Smith <af3113 at yahoo.com> wrote:
> 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.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list