LLGL: MacOSDisplay.mm: error: 'CVDisplayLinkRef' was not declared in this scope (and other related errors)

Build fails on macOS 10.6.8:

[ 16%] Building CXX object CMakeFiles/LLGL.dir/sources/Renderer/BufferUtils.cpp.o
/opt/local/bin/g++-mp-12 -DGL_SILENCE_DEPRECATION -DLLGL_BUILD_RENDERER_NULL -DLLGL_BUILD_RENDERER_OPENGL -DLLGL_ENABLE_DEBUG_LAYER -DLLGL_ENABLE_UTILITY -DLLGL_EXPORTS -DLLGL_GL_ENABLE_DSA_EXT -DLLGL_GL_ENABLE_EXT_PLACEHOLDERS -DLLGL_GL_ENABLE_VENDOR_EXT -I/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/include -I/opt/local/include/Gauss -I/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/examples/Cpp/ExampleBase -F//System/Library/Frameworks -I/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/external/OpenGL/include -pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -mmacosx-version-min=10.6 -fPIC -std=gnu++11 -MD -MT CMakeFiles/LLGL.dir/sources/Renderer/BufferUtils.cpp.o -MF CMakeFiles/LLGL.dir/sources/Renderer/BufferUtils.cpp.o.d -o CMakeFiles/LLGL.dir/sources/Renderer/BufferUtils.cpp.o -c /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Renderer/BufferUtils.cpp
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSDisplay.mm: In function 'uint32_t LLGL::GetDisplayModeRefreshRate(CGDisplayModeRef, CGDirectDisplayID)':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSDisplay.mm:33:9: error: 'CVDisplayLinkRef' was not declared in this scope; did you mean 'CGDisplayModeRef'?
   33 |         CVDisplayLinkRef displayLink = nullptr;
      |         ^~~~~~~~~~~~~~~~
      |         CGDisplayModeRef
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSDisplay.mm:34:54: error: 'displayLink' was not declared in this scope; did you mean 'displayID'?
   34 |         CVDisplayLinkCreateWithCGDisplay(displayID, &displayLink);
      |                                                      ^~~~~~~~~~~
      |                                                      displayID
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSDisplay.mm:34:9: error: 'CVDisplayLinkCreateWithCGDisplay' was not declared in this scope
   34 |         CVDisplayLinkCreateWithCGDisplay(displayID, &displayLink);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSDisplay.mm:36:27: error: 'CVDisplayLinkGetNominalOutputVideoRefreshPeriod' was not declared in this scope
   36 |             CVTime time = CVDisplayLinkGetNominalOutputVideoRefreshPeriod(displayLink);
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSDisplay.mm:40:9: error: 'CVDisplayLinkRelease' was not declared in this scope; did you mean 'CGDisplayRelease'?
   40 |         CVDisplayLinkRelease(displayLink);
      |         ^~~~~~~~~~~~~~~~~~~~
      |         CGDisplayRelease
[ 16%] Building CXX object CMakeFiles/LLGL.dir/sources/Renderer/DescriptorHelper.cpp.o
/opt/local/bin/g++-mp-12 -DGL_SILENCE_DEPRECATION -DLLGL_BUILD_RENDERER_NULL -DLLGL_BUILD_RENDERER_OPENGL -DLLGL_ENABLE_DEBUG_LAYER -DLLGL_ENABLE_UTILITY -DLLGL_EXPORTS -DLLGL_GL_ENABLE_DSA_EXT -DLLGL_GL_ENABLE_EXT_PLACEHOLDERS -DLLGL_GL_ENABLE_VENDOR_EXT -I/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/include -I/opt/local/include/Gauss -I/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/examples/Cpp/ExampleBase -F//System/Library/Frameworks -I/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/external/OpenGL/include -pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -mmacosx-version-min=10.6 -fPIC -std=gnu++11 -MD -MT CMakeFiles/LLGL.dir/sources/Renderer/DescriptorHelper.cpp.o -MF CMakeFiles/LLGL.dir/sources/Renderer/DescriptorHelper.cpp.o.d -o CMakeFiles/LLGL.dir/sources/Renderer/DescriptorHelper.cpp.o -c /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Renderer/DescriptorHelper.cpp
[ 17%] Building CXX object CMakeFiles/LLGL.dir/sources/Renderer/Format.cpp.o
/opt/local/bin/g++-mp-12 -DGL_SILENCE_DEPRECATION -DLLGL_BUILD_RENDERER_NULL -DLLGL_BUILD_RENDERER_OPENGL -DLLGL_ENABLE_DEBUG_LAYER -DLLGL_ENABLE_UTILITY -DLLGL_EXPORTS -DLLGL_GL_ENABLE_DSA_EXT -DLLGL_GL_ENABLE_EXT_PLACEHOLDERS -DLLGL_GL_ENABLE_VENDOR_EXT -I/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/include -I/opt/local/include/Gauss -I/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/examples/Cpp/ExampleBase -F//System/Library/Frameworks -I/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/external/OpenGL/include -pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -mmacosx-version-min=10.6 -fPIC -std=gnu++11 -MD -MT CMakeFiles/LLGL.dir/sources/Renderer/Format.cpp.o -MF CMakeFiles/LLGL.dir/sources/Renderer/Format.cpp.o.d -o CMakeFiles/LLGL.dir/sources/Renderer/Format.cpp.o -c /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Renderer/Format.cpp
make[2]: *** [CMakeFiles/LLGL.dir/sources/Platform/MacOS/MacOSDisplay.mm.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:25:51: error: 'NSWindowStyleMaskBorderless' was not declared in this scope; did you mean 'g_WinStyleBorderless'?
   25 | static const auto g_WinStyleBorderless          = NSWindowStyleMaskBorderless;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                   g_WinStyleBorderless
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:26:51: error: 'NSWindowStyleMaskResizable' was not declared in this scope; did you mean 'g_WinStyleResizable'?
   26 | static const auto g_WinStyleResizable           = NSWindowStyleMaskResizable;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                   g_WinStyleResizable
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:27:52: error: 'NSWindowStyleMaskTitled' was not declared in this scope
   27 | static const auto g_WinStyleTitleBar            = (NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskMiniaturizable);
      |                                                    ^~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:27:78: error: 'NSWindowStyleMaskClosable' was not declared in this scope
   27 | static const auto g_WinStyleTitleBar            = (NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskMiniaturizable);
      |                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:27:106: error: 'NSWindowStyleMaskMiniaturizable' was not declared in this scope
   27 | static const auto g_WinStyleTitleBar            = (NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskMiniaturizable);
      |                                                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:30:51: error: 'NSEventMaskAny' was not declared in this scope; did you mean 'g_EventMaskAny'?
   30 | static const auto g_EventMaskAny                = NSEventMaskAny;
      |                                                   ^~~~~~~~~~~~~~
      |                                                   g_EventMaskAny
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:31:51: error: 'NSEventTypeKeyDown' was not declared in this scope; did you mean 'g_EventTypeKeyDown'?
   31 | static const auto g_EventTypeKeyDown            = NSEventTypeKeyDown;
      |                                                   ^~~~~~~~~~~~~~~~~~
      |                                                   g_EventTypeKeyDown
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:32:51: error: 'NSEventTypeKeyUp' was not declared in this scope; did you mean 'g_EventTypeKeyUp'?
   32 | static const auto g_EventTypeKeyUp              = NSEventTypeKeyUp;
      |                                                   ^~~~~~~~~~~~~~~~
      |                                                   g_EventTypeKeyUp
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:33:51: error: 'NSEventTypeMouseMoved' was not declared in this scope; did you mean 'g_EventTypeMouseMoved'?
   33 | static const auto g_EventTypeMouseMoved         = NSEventTypeMouseMoved;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~
      |                                                   g_EventTypeMouseMoved
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:34:51: error: 'NSEventTypeLeftMouseDragged' was not declared in this scope; did you mean 'g_EventTypeLMouseDragged'?
   34 | static const auto g_EventTypeLMouseDragged      = NSEventTypeLeftMouseDragged;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                   g_EventTypeLMouseDragged
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:35:51: error: 'NSEventTypeLeftMouseDown' was not declared in this scope; did you mean 'g_EventTypeLMouseDown'?
   35 | static const auto g_EventTypeLMouseDown         = NSEventTypeLeftMouseDown;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                                   g_EventTypeLMouseDown
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:36:51: error: 'NSEventTypeLeftMouseUp' was not declared in this scope; did you mean 'g_EventTypeLMouseUp'?
   36 | static const auto g_EventTypeLMouseUp           = NSEventTypeLeftMouseUp;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~
      |                                                   g_EventTypeLMouseUp
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:37:51: error: 'NSEventTypeRightMouseDragged' was not declared in this scope; did you mean 'g_EventTypeRMouseDragged'?
   37 | static const auto g_EventTypeRMouseDragged      = NSEventTypeRightMouseDragged;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                   g_EventTypeRMouseDragged
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:38:51: error: 'NSEventTypeRightMouseDown' was not declared in this scope; did you mean 'g_EventTypeRMouseDown'?
   38 | static const auto g_EventTypeRMouseDown         = NSEventTypeRightMouseDown;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                   g_EventTypeRMouseDown
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:39:51: error: 'NSEventTypeRightMouseUp' was not declared in this scope; did you mean 'g_EventTypeRMouseUp'?
   39 | static const auto g_EventTypeRMouseUp           = NSEventTypeRightMouseUp;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                   g_EventTypeRMouseUp
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:40:51: error: 'NSEventTypeOtherMouseDragged' was not declared in this scope; did you mean 'g_EventTypeRMouseDragged'?
   40 | static const auto g_EventTypeExtMouseDragged    = NSEventTypeOtherMouseDragged;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                   g_EventTypeRMouseDragged
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:41:51: error: 'NSEventTypeOtherMouseDown' was not declared in this scope; did you mean 'g_EventTypeRMouseDown'?
   41 | static const auto g_EventTypeExtMouseDown       = NSEventTypeOtherMouseDown;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                   g_EventTypeRMouseDown
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:42:51: error: 'NSEventTypeOtherMouseUp' was not declared in this scope; did you mean 'g_EventTypeRMouseUp'?
   42 | static const auto g_EventTypeExtMouseUp         = NSEventTypeOtherMouseUp;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                   g_EventTypeRMouseUp
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:43:51: error: 'NSEventTypeScrollWheel' was not declared in this scope; did you mean 'g_EventTypeScrollWheel'?
   43 | static const auto g_EventTypeScrollWheel        = NSEventTypeScrollWheel;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~
      |                                                   g_EventTypeScrollWheel
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:98:1: error: inconsistent instance variable specification
   98 | }
      | ^
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In function '-[MacOSWindowDelegate initWithWindow:isResizable:]':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:104:5: error: 'window_' was not declared in this scope; did you mean 'window'?
  104 |     window_         = window;
      |     ^~~~~~~
      |     window
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:105:5: error: 'resizable_' was not declared in this scope; did you mean 'resizable'?
  105 |     resizable_      = resizable;
      |     ^~~~~~~~~~
      |     resizable
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:106:5: error: 'resizeSignaled_' was not declared in this scope
  106 |     resizeSignaled_ = NO;
      |     ^~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:107:5: error: 'fullscreenMode_' was not declared in this scope
  107 |     fullscreenMode_ = NO;
      |     ^~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In function '-[MacOSWindowDelegate makeResizable:]':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:114:5: error: 'resizable_' was not declared in this scope; did you mean 'resizable'?
  114 |     resizable_ = resizable;
      |     ^~~~~~~~~~
      |     resizable
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In function '-[MacOSWindowDelegate popResizeSignal]':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:119:9: error: 'resizeSignaled_' was not declared in this scope
  119 |     if (resizeSignaled_)
      |         ^~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In function '-[MacOSWindowDelegate isFullscreenMode]':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:129:12: error: 'fullscreenMode_' was not declared in this scope
  129 |     return fullscreenMode_;
      |            ^~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In function '-[MacOSWindowDelegate windowWillClose:]':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:134:5: error: 'window_' was not declared in this scope
  134 |     window_->PostQuit();
      |     ^~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In function '-[MacOSWindowDelegate windowWillResize:toSize:]':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:139:9: error: 'resizable_' was not declared in this scope
  139 |     if (resizable_)
      |         ^~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In function '-[MacOSWindowDelegate windowDidResize:]':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:159:5: error: 'resizeSignaled_' was not declared in this scope
  159 |     resizeSignaled_ = YES;
      |     ^~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In function '-[MacOSWindowDelegate window:willUseFullScreenPresentationOptions:]':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:166:9: error: 'NSApplicationPresentationFullScreen' was not declared in this scope; did you mean 'NSApplicationPresentationOptions'?
  166 |         NSApplicationPresentationFullScreen |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         NSApplicationPresentationOptions
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:168:9: error: 'NSApplicationPresentationAutoHideToolbar' was not declared in this scope; did you mean 'NSApplicationPresentationAutoHideMenuBar'?
  168 |         NSApplicationPresentationAutoHideToolbar |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         NSApplicationPresentationAutoHideMenuBar
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In function '-[MacOSWindowDelegate windowWillEnterFullScreen:]':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:174:5: error: 'fullscreenMode_' was not declared in this scope
  174 |     fullscreenMode_ = YES;
      |     ^~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:176:11: error: 'NSApplicationPresentationFullScreen' was not declared in this scope; did you mean 'NSApplicationPresentationOptions'?
  176 |         ( NSApplicationPresentationFullScreen |
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |           NSApplicationPresentationOptions
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:178:11: error: 'NSApplicationPresentationAutoHideToolbar' was not declared in this scope; did you mean 'NSApplicationPresentationAutoHideMenuBar'?
  178 |           NSApplicationPresentationAutoHideToolbar |
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |           NSApplicationPresentationAutoHideMenuBar
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In function '-[MacOSWindowDelegate windowDidEnterFullScreen:]':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:189:5: error: 'resizeSignaled_' was not declared in this scope
  189 |     resizeSignaled_ = YES;
      |     ^~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In function '-[MacOSWindowDelegate windowDidExitFullScreen:]':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:196:5: error: 'fullscreenMode_' was not declared in this scope
  196 |     fullscreenMode_ = NO;
      |     ^~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In member function 'virtual bool LLGL::MacOSWindow::GetNativeHandle(void*, std::size_t) const':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:261:36: error: 'NativeHandle' was not declared in this scope; did you mean 'nativeHandle'?
  261 |     if (nativeHandleSize == sizeof(NativeHandle))
      |                                    ^~~~~~~~~~~~
      |                                    nativeHandle
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:263:42: error: 'NativeHandle' does not name a type; did you mean 'NSFileHandle'?
  263 |         auto& handle = *reinterpret_cast<NativeHandle*>(nativeHandle);
      |                                          ^~~~~~~~~~~~
      |                                          NSFileHandle
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:263:54: error: expected '>' before '*' token
  263 |         auto& handle = *reinterpret_cast<NativeHandle*>(nativeHandle);
      |                                                      ^
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:263:54: error: expected '(' before '*' token
  263 |         auto& handle = *reinterpret_cast<NativeHandle*>(nativeHandle);
      |                                                      ^
      |                                                      (
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:263:55: error: expected primary-expression before '>' token
  263 |         auto& handle = *reinterpret_cast<NativeHandle*>(nativeHandle);
      |                                                       ^
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:263:70: error: expected ')' before ';' token
  263 |         auto& handle = *reinterpret_cast<NativeHandle*>(nativeHandle);
      |                                                                      ^
      |                                                                      )
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In member function 'virtual void LLGL::MacOSWindow::SetPosition(const LLGL::Offset2D&)':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:286:39: error: conversion from 'NSSize' to non-scalar type 'CGSize' requested
  286 |     CGSize frameSize = [screen frame].size;
      |                        ~~~~~~~~~~~~~~~^~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In member function 'virtual LLGL::Offset2D LLGL::MacOSWindow::GetPosition() const':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:304:39: error: conversion from 'NSSize' to non-scalar type 'CGSize' requested
  304 |     CGSize frameSize = [screen frame].size;
      |                        ~~~~~~~~~~~~~~~^~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:311:22: error: conversion from 'NSRect' to non-scalar type 'CGRect' requested
  311 |     CGRect wndRect = [wnd_ frame];
      |                      ^~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In member function 'virtual LLGL::Extent2D LLGL::MacOSWindow::GetSize(bool) const':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:342:43: error: no match for 'operator=' (operand types are 'CGSize' and 'NSSize')
  342 |         size = [[wnd_ contentView] frame].size;
      |                                           ^~~~
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSGeometry.h:16,
                 from /System/Library/Frameworks/Foundation.framework/Headers/NSKeyedArchiver.h:8,
                 from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:34,
                 from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
                 from /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:8:
/System/Library/Frameworks/ApplicationServices.framework/Headers/../Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:21:8: note: candidate: 'CGSize& CGSize::operator=(const CGSize&)'
   21 | struct CGSize {
      |        ^~~~~~
/System/Library/Frameworks/ApplicationServices.framework/Headers/../Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:21:8: note:   no known conversion for argument 1 from 'NSSize' to 'const CGSize&'
/System/Library/Frameworks/ApplicationServices.framework/Headers/../Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:21:8: note: candidate: 'CGSize& CGSize::operator=(CGSize&&)'
/System/Library/Frameworks/ApplicationServices.framework/Headers/../Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:21:8: note:   no known conversion for argument 1 from 'NSSize' to 'CGSize&&'
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:344:27: error: no match for 'operator=' (operand types are 'CGSize' and 'NSSize')
  344 |         size = wnd_.frame.size;
      |                           ^~~~
/System/Library/Frameworks/ApplicationServices.framework/Headers/../Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:21:8: note: candidate: 'CGSize& CGSize::operator=(const CGSize&)'
   21 | struct CGSize {
      |        ^~~~~~
/System/Library/Frameworks/ApplicationServices.framework/Headers/../Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:21:8: note:   no known conversion for argument 1 from 'NSSize' to 'const CGSize&'
/System/Library/Frameworks/ApplicationServices.framework/Headers/../Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:21:8: note: candidate: 'CGSize& CGSize::operator=(CGSize&&)'
/System/Library/Frameworks/ApplicationServices.framework/Headers/../Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:21:8: note:   no known conversion for argument 1 from 'NSSize' to 'CGSize&&'
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In member function 'virtual void LLGL::MacOSWindow::OnProcessEvents()':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:493:6: error: 'autoreleasepool' was not declared in this scope; did you mean 'NSAutoreleasePool'?
  493 |     @autoreleasepool
      |      ^~~~~~~~~~~~~~~
      |      NSAutoreleasePool
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm: In function '-[MacOSWindowDelegate windowWillResize:toSize:]':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/LLGL-d98bcc8ee65d68e757ccae6770aed92f14b22617/sources/Platform/MacOS/MacOSWindow.mm:143:1: warning: control reaches end of non-void function [-Wreturn-type]
  143 | }
      | ^
make[2]: *** [CMakeFiles/LLGL.dir/sources/Platform/MacOS/MacOSWindow.mm.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/build'
make[1]: *** [CMakeFiles/LLGL.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_LLGL/LLGL/work/build'
make: *** [all] Error 2

P. S. I understand it is an old system, but if errors are fixable, it would be great to have them fixed.

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 21 (6 by maintainers)

Most upvoted comments

I will check what headers are there. It certainly has some support for OpenGL, it was there since Tiger if not earlier, but perhaps not what LLGL expects.

Looking at how Macports handled some related issues, they opted for Mesa and X11 for systems where native implementation is lacking or insufficient. Like: https://github.com/macports/macports-ports/commit/1b5491fea996e493a165b1cae71c2015c758c206 (I did not mean of course that LLGL has to declare an external dependency, rather that we can make a patch in Macports for <10.7, if that is the only way to support those OSs.)

If it’s not there on macOS before 10.7, how would you run OpenGL applications then? If it’s just for the headers, they are already included in this repository: https://github.com/LukasBanana/LLGL/tree/master/external/OpenGL/include/GL

Perhaps some more have to be added, but I don’t think another library dependency is necessary to support legacy systems.

Update LLGL also supports GL 2.X, though. If it’s just a problem of <OpenGL/gl3.h>, but <OpenGL/gl2.h> or the like would be okay, you can enable CMake option LLGL_GL_ENABLE_OPENGL2X to use legacy OpenGL.

Could you please open a PR for this change? This iteration on the compile errors is quite inconvenient since I don’t have access to a Mac with Mac OS X 10.6 and I don’t think I can easily install the Xcode deployment SDK for this system on my MacBook.

I force pushed an appendix with 8c55fbc. I think the only thing remaining is the issue with the NSApplication... constants, but they are only available since Mac OS X 10.7 and I can’t immediately see what they replaced: https://developer.apple.com/documentation/appkit/nsapplicationpresentationoptions/nsapplicationpresentationfullscreen

macOS 10.6.8 is indeed a very old system, but LLGL was intended to support older systems as well, so let’s see if we can fix at least some of these errors. First off: Can you please tell me what the values of these macros are on your environment:

MAC_OS_X_VERSION_MIN_ALLOWED
MAC_OS_X_VERSION_MAX_ALLOWED
MAC_OS_X_VERSION_10_12

A simple #error MAC_OS_X_VERSION_MIN_ALLOWED should reveal that. It seems as if the wrong constants are picked such as NSWindowStyleMaskBorderless instead of NSBorderlessWindowMask for older version of macOS or Xcode rather.

Speaking of which: Can you please also share your Xcode version?

Then there are a bunch of invalid conversations from NSRect to CGRect and NSSize to CGSize. Those should be easily fixable.

With things like CVDisplayLinkCreateWithCGDisplay: They are available since macOS 10.4, so there might just be a missing #import directive.