WolfireGames / overgrowth

Open Source codebase of the game Overgrowth by Wolfire Games LLC
Apache License 2.0
2.51k stars 260 forks source link

Apple Silicon support #33

Open MaddTheSane opened 2 years ago

MaddTheSane commented 2 years ago

When trying to compile the base Overgrowth program on my M1 MacBook Pro, I ran into a few issues:

That's as far as my first build test went.

turol commented 2 years ago

These might be fixed by updating the libraries to newer versions. For Crunch you will probably want to use a fork, the upstream is pretty dead. Also I think this crunch has some local changes which should be sent upstream to the fork you end up using.

YouRik commented 2 years ago

A week ago, I started to have a look into this. Fixed a build issue with Crunch and another with FreeImage, then wanted to continue today. Just rebuilt from main and noticed that there's a completely new set of build errors with FreeType now. This is honestly a bit too fiddly for me ATM. I think I'll personally wait and see what the maintainers are doing with the library devendoring and submoduling and once that has stabilized, will check in again.

GunpowderGuy commented 2 years ago

Issues with opengl support may also arise since that api has been deprecated or poorly maintained on mac os for years

turol commented 2 years ago

You could always write a Vulkan renderer and let MoltenVK take care of macOs support.

GunpowderGuy commented 2 years ago

@turol Since there is no opengl to metal abstraction layer being developed we may have to do what you are saying. The other option is to move to WebGpu, it works on the web but also most platforms including mac os