PixelGuys / Cubyz

Voxel sandbox game with a large render distance, procedurally generated content and some cool graphical effects.
GNU General Public License v3.0
436 stars 55 forks source link

Mac Developer Support #324

Closed archbirdplus closed 3 months ago

archbirdplus commented 6 months ago

This issue is about merging the necessary modifications to allow Cubyz to compile on Mac.

This has several benefits:

This is similar but distinct to issue #299. #299 refers to native Cubyz support for Mac, which requires adapting Cubyz or OpenGL to work on Mac with native performance. This issue only requires that Cubyz compiles, regardless of playability.

Changes to consider:

IntegratedQuantum commented 6 months ago

I'm mostly in favor of this. However since the future probably involves vulkan #102 I would like to avoid adding too much extra stuff, especially all the zink stuff, to the repositories for now.

Install scripts or instructions for additional libraries/applications, such as Mesa LLVMpipe/Zink libGL. Alternatively ship our own versions of these.

You are the only person on mac who will be going through all that trouble to get a barely playable game, so honestly we don't need install instructions for now. I think install instruction might actually be harmful because their existence would give the impression that the game would work on mac, which it doesn't.

Include GLFW as a submodule

Git submodules are annoying to use. It's better to use the zig package manager for that (similarly to how I did it for freetype and harfbuzz).

Note: because of the new platforms, this requires duplicating libcubyz_deps.a several times (20 MB with -Doptimize=ReleaseSmall), which may be undesirable.

Include an "official" build script for Cubyz-libs releases.

I've decided to extract these into a separate issue #325 which would be a requirement for this.

IntegratedQuantum commented 3 months ago

By the way hasn't this been fixed a while ago? You have been able to develop on mac for quite a while I think.