Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler warning: CGDisplayIOServicePort deprecated #51

Open
rmlearney opened this issue Aug 18, 2022 · 2 comments
Open

Compiler warning: CGDisplayIOServicePort deprecated #51

rmlearney opened this issue Aug 18, 2022 · 2 comments

Comments

@rmlearney
Copy link

Building on M1 Mac, MacOS 12.5, Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.6.0

/Users/rmlearney/git/VTK/Remote/RenderingLookingGlass/vtkCocoaLookingGlassRenderWindow.mm:41:71: warning: 'CGDisplayIOServicePort' is deprecated: first deprecated in macOS 10.9 - No longer supported [-Wdeprecated-declarations]
      (NSDictionary *)CFBridgingRelease(IODisplayCreateInfoDictionary(CGDisplayIOServicePort(currentDisplayID),
                                                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayConfiguration.h:372:24: note: 'CGDisplayIOServicePort' has been explicitly marked deprecated here
CG_EXTERN io_service_t CGDisplayIOServicePort(CGDirectDisplayID display)
                       ^
psavery added a commit to psavery/LookingGlassVTKModule that referenced this issue Aug 21, 2022
Fixes: Kitware#49
Fixes: Kitware#51

Signed-off-by: Patrick Avery <[email protected]>
@psavery
Copy link
Collaborator

psavery commented Aug 21, 2022

This one is a little more challenging to fix because Apple did not provide a replacement for the function.

I see some examples here that might work, but we should try them to confirm.

Until this is fixed, Mac will probably only support one Looking Glass display at a time.

@aylward
Copy link
Contributor

aylward commented Aug 21, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants