Quick fixes to enable compilation on XCode 4.3 with clang 3.1
May depend on Bug "#11046 MITK clang compatibility"
Quick fixes to enable compilation on XCode 4.3 with clang 3.1
May depend on Bug "#11046 MITK clang compatibility"
Status | Assigned | Task | ||
---|---|---|---|---|
Invalid | None | T11210 MITK XCode compatibility | ||
Resolved | None | T11046 MITK clang compatibility | ||
Resolved | None | T10925 Make MITK compatible with ITK 4.0 | ||
Resolved | None | T11856 ITKv4 compatibility: itk::OStringStream does not exist anymore | ||
Invalid | None | T14759 ITK4 build fails during MITK-superbuild |
I made also changes to ITK, GDCM, DCMTK and CPPMICROSERVICES
GDMC: add this-Pointer
DCMTK: add this-Pointer
ITK: add this-Pointer
CPPMICROSERVICES:
/MITK-superbuild/MITK-build/Core/Code/CppMicroServices/include/usUtils.h
usUtiles.h could not handle the operator<< (for example) for usServiceEvents
Have had also problems with VTK_USE_CHARTS.
When compiling the Superbuild, few symbols could not be found by the compiler.
Compile VTK extern and explicit switch-on VTK_USE_CHARTS the problem could be solved.
In addition I have must use Cmake 2.8-7-1 to use Cmake for the new XCode 4.3. I have used this patch:
http://public.kitware.com/Bug/view.php?id=12621
cmake-xcode-4.3-compat.patch [^] (3,056 bytes) 2012-02-29 07:34
(In reply to comment #3)
Have had also problems with VTK_USE_CHARTS.
When compiling the Superbuild, few symbols could not be found by the compiler.
Compile VTK extern and explicit switch-on VTK_USE_CHARTS the problem could be
solved.
You can change the configuration of VTK for the MITK superbulld in "CMakeExternals/VTK.cmake"
(In reply to comment #5)
(In reply to comment #3)
Have had also problems with VTK_USE_CHARTS.
When compiling the Superbuild, few symbols could not be found by the compiler.
Compile VTK extern and explicit switch-on VTK_USE_CHARTS the problem could be
solved.You can change the configuration of VTK for the MITK superbulld in
"CMakeExternals/VTK.cmake"
This will not succeed.
It seems to be a problem with clang. Compiling the targets 'vtkFiltering' and 'vtkCommon' explicit with LLVM-GCC solved the problem.
It seems to be a VTK problem.
(In reply to comment #6)
(In reply to comment #5)
(In reply to comment #3)
This will not succeed.
It seems to be a problem with clang. Compiling the targets 'vtkFiltering' and
'vtkCommon' explicit with LLVM-GCC solved the problem.It seems to be a VTK problem.
more precisely: clang in combination with xcode. Compiling a extern VTK version with clang will succeed. Maybe there is a CMake configuration which leads to this problem.
(In reply to comment #2)
CPPMICROSERVICES:
/MITK-superbuild/MITK-build/Core/Code/CppMicroServices/include/usUtils.husUtiles.h could not handle the operator<< (for example) for usServiceEvents
I pushed a fix for it (see T11075).
(In reply to comment #8)
(In reply to comment #2)
CPPMICROSERVICES:
/MITK-superbuild/MITK-build/Core/Code/CppMicroServices/include/usUtils.husUtiles.h could not handle the operator<< (for example) for usServiceEvents
I pushed a fix for it (see T11075).
Bug-Fix is working good. Thanks