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

[glGraphics.mod] MacOS: Carbon API deprecated / not supported #296

Open
GWRon opened this issue Sep 11, 2023 · 0 comments
Open

[glGraphics.mod] MacOS: Carbon API deprecated / not supported #296

GWRon opened this issue Sep 11, 2023 · 0 comments

Comments

@GWRon
Copy link
Contributor

GWRon commented Sep 11, 2023

glgraphics.macos.m uses:

#include <AppKit/AppKit.h>
#include <Carbon/Carbon.h>
#include <OpenGL/gl.h>
#include <OpenGL/OpenGL.h>

And later it uses:

		HideMenuBar();

which in newer OS X's leads to the implicit-functions-declaration-error/warning which you can avoid by using

ModuleInfo "CC_OPTS: -std=c90"

But having a look where the HideMenuBar() comes from you will identify the "Carbon Framework":

https://github.com/216k155/MacOSX-SDKs/blob/master/MacOSX10.11.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Headers/Menus.h

With that framework being deprecated since 2012:

In 2012, with the release of OS X 10.8 Mountain Lion, most Carbon APIs were considered deprecated. The APIs were still accessible to developers and all Carbon applications still ran, but the APIs would no longer be updated.
On June 28, 2017, Apple announced that 32-bit software for macOS, such as all Carbon applications, would no longer be supported “without compromise” on versions of macOS after macOS 10.13 High Sierra.[10] macOS 10.15 Catalina officially removed support for 32-bit applications, including all Carbon applications.

https://en.wikipedia.org/wiki/Carbon_(API)#:~:text=in%20Cocoa%20versions.-,Deprecation%20and%20discontinuation,would%20no%20longer%20be%20updated.

Dunno what will be the best way to handle it ... GL on Mac is sooner or later doomed I guess, and we should keep this in mind :)

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

1 participant