[Insight-users] Building ITK 3.20 with clang on Linux

Matt McCormick matt.mccormick at kitware.com
Wed Nov 9 22:54:49 EST 2011


Hi Stefan,

2011/11/9 Stefan Köhnen <stefan.khnen at googlemail.com>:
> It builds with clang, after some changes.
> Just to be sure there is no error on my end, here are the versions of clang
> and ITK I am using.
> ITK release-branch (last commit 389c62087f77cf116cf53039f4d667a544c824bc
> Merge branch 'comp-clang-3.0' into release).
> Clang is build from here http://llvm.org/pre-releases/3.0/rc2/ clang
> --version shows version is 3.0 rc2.
>
> I had to change the following files:
> Code/Algorithms/itkCurvesLevelSetFunction.h
> Code/Algorithms/itkGeodesicActiveContourLevelSetFunction.h
> Code/Algorithms/itkGeodesicActiveContourShapePriorLevelSetFunction.h
> Code/Algorithms/itkShapeDetectionLevelSetFunction.h
> Code/Algorithms/itkVoronoiPartitioningImageFilter.txx
> Code/BasicFilters/itkBloxBoundaryPointImageToBloxBoundaryProfileImageFilter.txx
> Code/BasicFilters/itkBloxBoundaryProfileImageToBloxCoreAtomImageFilter.txx
> Code/BasicFilters/itkTernaryFunctorImageFilter.txx
> Code/Common/itkPoint.txx
> Code/Common/itkSize.h
> Code/Numerics/Statistics/itkWeightedCentroidKdTreeGenerator.txx
> Testing/Code/Common/itkMeshSourceGraftOutputTest.cxx
> The errors were mostly missing this-Pointer or a missing include. Maybe the
> default settings of clang are too strict.
> Of course I can provide a patch (if this not some stupid error on my system
> :-) ). Maybe I should move this to the developer mailing list.

Patches are greatly appreciated.  Help on getting setup can be found here:

  http://www.vtk.org/Wiki/ITK/Git/Develop

Thanks,
Matt


More information about the Insight-users mailing list