Page MenuHomePhabricator

MITK XCode compatibility
Closed, InvalidPublic

Description

Quick fixes to enable compilation on XCode 4.3 with clang 3.1

May depend on Bug "#11046 MITK clang compatibility"

Event Timeline

For MITK-MBI fixes:
T11211 - MITK-mbi XCode compatibility

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.h

usUtiles.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.h

usUtiles.h could not handle the operator<< (for example) for usServiceEvents

I pushed a fix for it (see T11075).

Bug-Fix is working good. Thanks

Jonas what is the status of this bug?

kislinsk changed the task status from Invalid to Spite.Jun 27 2018, 1:32 PM
kislinsk added a project: Bulk Edit.
kislinsk changed the task status from Spite to Invalid.Jun 27 2018, 1:37 PM
kislinsk removed a project: Bulk Edit.