Issue compiling VTK 8.1 on OSX 10.11 using the 10.11 SDK
Compiling VTK 8.1 on OSX 10.11 is failing for me.
I am using XCode 7.3 (apple clang 3.8.0) and the OSX 10.11 SDK.
It fails b/c the OpenGL2 Cocoa integration is using names that were introduced in the 10.12 SDK:
.../VTK-8.1.0/Rendering/OpenGL2/vtkCocoaRenderWindowInteractor.mm:195:48: error: use of undeclared identifier 'NSEventTypeApplicationDefined'; did you mean 'NSApplicationDefined'?
NSEvent *event = [NSEvent otherEventWithType:NSEventTypeApplicationDefined
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NSApplicationDefined
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:37:5: note: 'NSApplicationDefined' declared here
NSApplicationDefined = 15,
^
1 error generated.
NSApplicationDefined
was deprecated after 10.11 and NSEventTypeApplicationDefined
was introduced in the 10.12 SDK.
https://developer.apple.com/documentation/appkit/nsapplicationdefined
Not sure what the best course of action is to attack this. This may be the first of more issues, or a one-off thats easy to resolve.
I wanted to report b/c it this doesn't match the advertised minimum req of XCode 5. (https://blog.kitware.com/vtk-8-1-0/)