-
Notifications
You must be signed in to change notification settings - Fork 133
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
MacOSDisplay.mm: error: 'CVDisplayLinkRef' was not declared in this scope (and other related errors) #80
Comments
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. MAC_OS_X_VERSION_MIN_ALLOWED
MAC_OS_X_VERSION_MAX_ALLOWED
MAC_OS_X_VERSION_10_12 A simple Speaking of which: Can you please also share your Xcode version? Then there are a bunch of invalid conversations from With things like |
@LukasBanana Thank you for responding! Xcode 3.2.6 is used on 10.6.8 (Xcode 4.2 also exists for it, but without PPC support in Rosetta), Xcode 3.2 on 10.6 PPC and Xcode 3.1.4 on 10.5.8. (Support for 10.4.11 is not my concern.)
|
Build log on 10.6.8 in Rosetta with Xcode 3.2.6 and gcc 12.2.0: |
@LukasBanana
I had a patch for
(This is not the whole patch, just an extract from it.) |
Otherwise earlier OS have no way to know what is This fixes part of errors. |
Then there are errors in
|
@LukasBanana Once |
With 1e9d62c I addressed most of these issues. There's a new CMake option for Apple platforms that you have to disable (it's enabled by default): |
@LukasBanana Thank you for such a fast response! It still fails with some undefined stuff in |
I force pushed an appendix with 8c55fbc. I think the only thing remaining is the issue with the |
@LukasBanana With Core Video turned on, there are few extra errors:
With Core video off, apparently just
|
@LukasBanana Perhaps solution is just to guard those |
Can you try 0d43ba7 and see if that fixes the remaining errors? |
@LukasBanana Thank you for an update! Looks promising, but we need to link to
(That is, in CMakeLists either check if example compiles without |
UPD. One more thing, there is a header problem here:
|
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. |
@LukasBanana Let me try. Linking to |
@LukasBanana I need to ask you one thing: is it possible to use Mesa includes for OpenGL? https://github.com/Mesa3D/mesa/tree/main/include |
Headers Mesa installs:
|
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: Perhaps some more have to be added, but I don't think another library dependency is necessary to support legacy systems. Update |
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: macports/macports-ports@1b5491f |
Build fails on macOS 10.6.8:
P. S. I understand it is an old system, but if errors are fixable, it would be great to have them fixed.
The text was updated successfully, but these errors were encountered: