Skip to content

macOS Build Support - #228

Open
sukibaby wants to merge 6 commits into
betafrom
macos-build
Open

macOS Build Support#228
sukibaby wants to merge 6 commits into
betafrom
macos-build

Conversation

@sukibaby

@sukibaby sukibaby commented Nov 7, 2025

Copy link
Copy Markdown
Collaborator

Needed changes to allow building on macOS.

PREREQUISITES:

  • brew install pkg-config
  • brew install sdl3
  • brew install nasm

@sukibaby sukibaby changed the title Introduce macOS build support, with build script. Compatible with x86_64 & arm64 macOS. Introduce macOS build support for CMake & Xcode (also includes build script) Nov 7, 2025
@uvcat7

uvcat7 commented Nov 11, 2025

Copy link
Copy Markdown
Owner

Looks fine so far. I would like to see some .yml files to prove the build process. Also not sure why it needs a build script; can you explain that to me?

Before I merge, I'd like to get the SDL porting work done so this could be used to iterate some Mac OS builds of ArrowVortex. Hopefully that won't take too long...

@sukibaby

Copy link
Copy Markdown
Collaborator Author

It doesn't need the build script, sorry for the confusion. I'll clear that out.

And then hopefully I can get a yaml update here before this is merged as well :)

No worries on holding off on this for now. I don't expect much to change here.

@sukibaby sukibaby closed this Sep 2, 2026
@sukibaby sukibaby reopened this Sep 2, 2026
@sukibaby
sukibaby marked this pull request as draft September 2, 2026 03:18
@sukibaby sukibaby closed this Sep 2, 2026
@sukibaby sukibaby reopened this Sep 2, 2026
@sukibaby sukibaby changed the title Introduce macOS build support for CMake & Xcode (also includes build script) macOS Build Support Sep 2, 2026
@sukibaby

sukibaby commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator Author

Re-opened and rebased following Linux support in beta. Working now on both x86_64 and arm64 macOS. Requires pkg-config, nasm and sdl3 from Homebrew.

Screenshot 2026-09-01 at 10 07 11 PM

@sukibaby
sukibaby marked this pull request as ready for review September 2, 2026 05:09
Comment thread src/System/System.h
@uvcat7

uvcat7 commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Thanks for doing this!
Can you add support for Mac builds to the .yml file, for both x64 and M1, and build information to BUILDING.md?

@uvcat7
uvcat7 self-requested a review September 4, 2026 04:33
Comment thread src/Core/Shader.h
#include <Core/Core.h>

#ifdef __APPLE__
#include <OpenGL/gl.h>

@uvcat7 uvcat7 Sep 4, 2026

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you just include System/OpenGL.h instead to avoid the #ifdef spam? (and if so correct all instances of the include?)

Comment thread src/System/OpenGL.h
#pragma once

#ifndef APIENTRY
#define APIENTRY

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct me if I'm wrong, but I thought Windows and SDL (Linux) both properly include the APIENTRY definitions. Maybe move these to the APPLE macro?

Comment thread CMakeLists.txt
endif()
endif()

if(APPLE)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanted to say. This is cool.

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

Successfully merging this pull request may close these issues.

2 participants