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

Fails to run on Apple Silicon #22

Open
junglie85 opened this issue Apr 2, 2022 · 1 comment
Open

Fails to run on Apple Silicon #22

junglie85 opened this issue Apr 2, 2022 · 1 comment

Comments

@junglie85
Copy link

Great work on porting to Apple. I'm trying to run on an M1 processor and can build successfully, but running fails with an assertion failure in CreateWindowPane():

#if defined(__APPLE__)
			Class GLUTViewClass = objc_getClass("GLUTView");

			SEL scrollWheelSel = sel_registerName("scrollWheel:");
			bool resultAddMethod = class_addMethod(GLUTViewClass, scrollWheelSel, (IMP)scrollWheelUpdate, "v@:@");
			assert(resultAddMethod);
#endif

If I comment out this section of code I can get the PGE to run (requires XQuartz and freeglut to be installed as CMake fails to find GLUT - not sure if that is a Silicon thing or a Monterey thing).

Any ideas on how to fix this?

@MumflrFumperdink
Copy link
Owner

Sorry, I'm not very familiar with CMake. Could you try using the makefile instead?

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

2 participants