Page MenuHomePhabricator

MITK v2016.11: Build issue on Mac OS X 10.13.3
Closed, ResolvedPublic

Description

I can't build MITK v2016.11 on Mac OS X 10.13.3 (high sierra) with Apple's clang (Apple LLVM version 9.0.0 (clang-900.0.39.2)), Qt 5.7.1, CMake 3.10.2.

Errors:

  • itkvnl: lsqrBase.cxx:622:14: error: ordered comparison between pointer and zero ('std::ostream *' (aka 'basic_ostream<char> *') and 'int') if (nout > 0)

Step to reproduce:

  • [in a build folder of mitk]
  • cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/path/to/qt -DMITK_BUILD_EXAMPLES=ON
  • make -j8

I tried to build the same version of MITK with gcc 6.4.0 (from MacPorts) but VTK can not be build too:

Errors:
While building vtkfreetype:

  • ftbase.c:38:

/System/Library/Frameworks/Security.framework/Headers/Authorization.h:193:7: error: variably modified 'bytes' at file scope
char bytes[kAuthorizationExternalFormLength];

  • ftbase.c:38:

/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h:53:40: error: initializer element is not constant
static const CGFontIndex kCGGlyphMax = kCGFontIndexMax;

  • ftbase.c:38:

/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:391:15: error: expected identifier or '(' before '^' token
typedef void (^CGPathApplyBlock)(const CGPathElement * element);

/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:393:53: error: unknown type name 'CGPathApplyBlock'
CG_EXTERN void CGPathApplyWithBlock(CGPathRef path, CGPathApplyBlock CF_NOESCAPE block)

Step to reproduce:

  • [in a build folder of mitk]
  • CC=gcc-6 CXX=g++-6 cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/path/to/qt -DMITK_BUILD_EXAMPLES=ON
  • make -j8

I understand that Mac OS X 10.13 is not officially supported, but I wanted to write some issue in case this OS will be supported in next releases.

Event Timeline

rleguay updated the task description. (Show Details)

I successfully built MITK on MacOS 10.12.6 (Sierra), but using the new tag v2018.04-alpha. I also built a second version with some plugins enabled (segmentation as an example).

My environment and flags:

  • Apple LLVM version 9.0.0 (clang-900.0.39.2)
  • cmake version 3.11.1
  • QT version 5.10.1
  • cmake command: cmake ../MITK -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.10.1
kislinsk claimed this task.
kislinsk triaged this task as Low priority.
kislinsk added a subscriber: kislinsk.

Should work in 2018.04 (beta). Minimum recommended version for macOS in now High Sierra. Mojave works as well.