[Insight-users] ITK compilier errors

Bill Lorensen bill.lorensen at gmail.com
Thu May 31 15:29:54 EDT 2012


Why are you specifying
-DCMAKE_CXX_FLAGS="-std=gnu++0x -include cstddef"

I don't think we support that yet. If you omit that does ITK build?

On Thu, May 31, 2012 at 3:22 PM, Cory Quammen <cquammen at cs.unc.edu> wrote:
> 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
> _____________________________________
> 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



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Insight-users mailing list