[Community] Fail to compile irk on Mac OS X Mavericks with Xcode 5.0.1

Matt McCormick matt.mccormick at kitware.com
Sat Oct 26 15:22:57 EDT 2013


Hi Yang,

Olivier has come up with a patch [1].  Please consider reviewing [2] the patch.

Thanks,
Matt

[1] http://review.source.kitware.com/#/c/13124/
[2] http://insightsoftwareconsortium.github.io/ITKBarCamp-doc/CommunitySoftwareProcess/PerformAGerritReview/index.html

On Fri, Oct 25, 2013 at 6:15 PM, yanggao <yanggao at cs.utah.edu> wrote:
> Hi,
>
> I just downloaded the latest itk-4.4.2 and cake-2.8.12, and tried to build
> itk on Mac OS X Mavericks 10.9 with Xcode 5.0.1.
>
> For the g++ compiler:
> $ g++ -v
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
> --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
> Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
> Target: x86_64-apple-darwin13.0.0
> Thread model: posix
>
> I got the following errors:
> Scanning dependencies of target itkTestDriver
> [ 81%] Building CXX object
> Modules/Core/TestKernel/src/CMakeFiles/itkTestDriver.dir/itkTestDriver.cxx.o
> In file included from
> /Users/Yang/Developer/src/ITK-4.2.0/Modules/Core/TestKernel/src/itkTestDriver.cxx:29:
> In file included from
> /Users/Yang/Developer/src/ITK-4.2.0/Modules/Core/TestKernel/include/itkTestDriverIncludeRequiredIOFactories.h:30:
> In file included from
> /Users/Yang/Developer/src/ITK-4.2.0/Modules/Core/TestKernel/include/itkTestDriverInclude.h:49:
> In file included from
> /Users/Yang/Developer/src/ITK-4.2.0/Modules/IO/ImageBase/include/itkImageFileWriter.h:227:
> In file included from
> /Users/Yang/Developer/src/ITK-4.2.0/Modules/IO/ImageBase/include/itkImageFileWriter.hxx:34:
> /Users/Yang/Developer/src/ITK-4.2.0/Modules/Core/Common/include/itkImageAlgorithm.h:51:16:
> error:
>       no member named 'tr1' in namespace 'std'
>   typedef std::tr1::true_type  TrueType;
>           ~~~~~^
> /Users/Yang/Developer/src/ITK-4.2.0/Modules/Core/Common/include/itkImageAlgorithm.h:52:16:
> error:
>       no member named 'tr1' in namespace 'std'
>   typedef std::tr1::false_type FalseType;
>           ~~~~~^
> /Users/Yang/Developer/src/ITK-4.2.0/Modules/Core/Common/include/itkImageAlgorithm.h:97:44:
> error:
>       no member named 'tr1' in namespace 'std'
>                                     , std::tr1::is_pod<typename _ImageTy...
>                                       ~~~~~^
> /Users/Yang/Developer/src/ITK-4.2.0/Modules/Core/Common/include/itkImageAlgorithm.h:97:94:
> error:
>       expected '(' for function-style cast or type construction
>   ..., std::tr1::is_pod<typename _ImageType::InternalPixelType>()
>                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> /Users/Yang/Developer/src/ITK-4.2.0/Modules/Core/Common/include/itkImageAlgorithm.h:97:96:
> error:
>       expected expression
>   ..., std::tr1::is_pod<typename _ImageType::InternalPixelType>()
>                                                                 ^
> /Users/Yang/Developer/src/ITK-4.2.0/Modules/Core/Common/include/itkImageAlgorithm.h:111:44:
> error:
>       no member named 'tr1' in namespace 'std'
>                                     , std::tr1::is_pod<typename _ImageTy...
>                                       ~~~~~^
> /Users/Yang/Developer/src/ITK-4.2.0/Modules/Core/Common/include/itkImageAlgorithm.h:111:94:
> error:
>       expected '(' for function-style cast or type construction
>   ..., std::tr1::is_pod<typename _ImageType::InternalPixelType>()
>                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> /Users/Yang/Developer/src/ITK-4.2.0/Modules/Core/Common/include/itkImageAlgorithm.h:111:96:
> error:
>       expected expression
>   ..., std::tr1::is_pod<typename _ImageType::InternalPixelType>()
>                                                                 ^
> 8 errors generated.
> make[2]: ***
> [Modules/Core/TestKernel/src/CMakeFiles/itkTestDriver.dir/itkTestDriver.cxx.o]
> Error 1
> make[1]: *** [Modules/Core/TestKernel/src/CMakeFiles/itkTestDriver.dir/all]
> Error 2
> make: *** [all] Error 2
>
>
> How could I fix it?
> Any help would be appreciate it.
> Thanks,
> Yang
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community



More information about the Community mailing list