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

Building and running on Apple Silicon (M2) #8

Open
palmerj opened this issue Feb 15, 2024 · 2 comments
Open

Building and running on Apple Silicon (M2) #8

palmerj opened this issue Feb 15, 2024 · 2 comments

Comments

@palmerj
Copy link

palmerj commented Feb 15, 2024

Anyone tested this?

I've patched sf2types.h

diff --git a/FistBlue/sf2types.h b/FistBlue/sf2types.h
index 850c90c..96ef487 100644
--- a/FistBlue/sf2types.h
+++ b/FistBlue/sf2types.h
@@ -27,7 +27,7 @@
 #define SF2_CPU_AMD64
 #endif

-#ifdef __arm__
+#if defined(__arm__) || defined(__arm64__)
 #define SF2_ENDIAN_LITTLE
 #define SF2_CPU_ARM
 #endif

then built the roms, compiled the code with cmake, and then ran glutBasics I get a brown screen with debug info only.

Screenshot 2024-02-15 at 17 43 13

I've also tried building and running the code using the xcode project, but I got the same result.

Any tips for areas of the code to look at for platform issues?

@mdreeling
Copy link

mdreeling commented Nov 1, 2024

@palmerj I have this running under Sonoma (14.5) and XCode 16.1 (used the same patch as you have above) - I'm wondering if its something to do with your roms? I'm able to run both the Cocoa and GLUT targets. Strongly suggest getting it running, lots of fun looking at the code.

@bentorkington
Copy link
Owner

It may be an issue with ROMs, the app reads them blindly and doesn't verify they're correct. I think I'll add that.

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

3 participants