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.