-
Notifications
You must be signed in to change notification settings - Fork 479
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
macOS 12+ cannot find the OpenGL framework #826
Comments
Yep, tracing on recent macOS is completely broken. 😞 The trick that apitrace used of symlink And I don't see another solution to get to the true Probably the only solution is to use But I don't have much interest or time for OpenGL on macOS. I honestly feel tempted to drop macOS support altogether. However I just rebased https://github.com/apitrace/apitrace/tree/dyld-interpose branch on top of master, and confirmed it does work. So give it that branch a go. glretrace won't work. But tracing at least does. Then you can build glretrace/qapitrace on the master branch to analyze the trace. Is the best I can do for now. |
I will give that branch a go, thanks so much! And please do not drop support for macOS. I understand your frustration but apitrace has saved my day so many times while building my own OpenGL engine, I can't even count them! I can also help maintaining macOS compatibility but I am not familiar with the codebase, thus why I asked here rather than trying to tweak the code to make it work. And I believe there are others out there that still benefit from apitrace on macOS :) |
Help with macOS would definitely be appreciated! The changes in master...dyld-interpose are few, but unfortunately it breaks:
So getting This is easier said than those, because the If merging After all, OpenGL on macOS is not going to change ever (no new extensions, etc.) so forking apitrace for macOS might be the right call to make, certainly the least uphill struggle. |
Currently I build apitrace twice: once for glretrace, and then another time for the cgl tracer. Would it be an option to generate preprocessor macros which will become part of the generated files? I'm not familiar with the codebase, but I might try it when I find some free-time (which might still take a while). I think keeping macOS upstream is very important because it's pretty much the only remaining tool to debug OpenGL on macOS. When Renderdoc removed macOS the state of it got worse quickly. Also, although OpenGL won't change much on macOS, apitrace will probably continue to get updates (even if at slow pace). Maintaining a fork is probably more work than keeping macOS alive in the current codebase (and fixing it from time to time). I had to do rebase dyld-interpose because my system has Qt6 already (I couldn't get it to compile with Qt5). It worked then but there was a Qt error with |
I have compiled apitrace from source on macOS Monterey on a Silicon M1 Mac and it looks like everything went smooth.
But when I try to run apitrace with any OpenGL-based applications I get the following error:
Anyone who has any clue what is going wrong here and how to fix it?
The text was updated successfully, but these errors were encountered: