[Insight-users] ITK compilier errors

Cory Quammen cquammen at cs.unc.edu
Thu May 31 15:22:34 EDT 2012


Hi Andrew,

Can you post the errors?

Thanks,
Cory

On Thu, May 31, 2012 at 3:19 PM, Andrew E Slaughter
<andrew.e.slaughter at gmail.com> wrote:
> I am receiving a host of errors regarding 'constexpr' associated with
> VNL related headers. I compiled ITK 4.1 with the following
> configuration:
>
> cmake -DCMAKE_CXX_FLAGS="-std=gnu++0x -include cstddef"
> -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.5
> -DVTK_DIR=/home/slaughter/packages/VTK -DBUILD_EXAMPLES=OFF
> -DITK_BUILD_ALL_MODULES=OFF -DModule_ITKVtkGlue=ON ..
>
> From the looks of it this is a problem with the compiler, I have tried
> both gcc-4.6.3 and 4.5.3 (as suggested by
> http://641blog.blogspot.com/2012/05/problems-with-itk-vxl-and-g-461.html).
>
> This error occurs for the simplest of programs:
>  #include <itkImage.h>
>  int main(){}
>
> I am only trying to use ITK to read a 3D tiff and convert it to a
> vtkImageData object (vtkTIFFReader was unable to read my files, but
> was hoping ITK was capable).
>
> Any help resolving this issue would be greatly appreciated.
>
> Thanks,
> Andrew
> _____________________________________
> 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.php
>
> 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



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill


More information about the Insight-users mailing list