fccm / OCamlSDL2

OCaml interface to SDL 2.0 (for Linux, Windows, MacOS, and ChromeBook)
Other
51 stars 10 forks source link

Mac support #16

Closed sciencemanx closed 2 years ago

sciencemanx commented 3 years ago

Hey does this project support MacOS? ie

Thanks

fccm commented 3 years ago

OCamlSDL2 was very easy to compile on Windows even though I'm not an expert with Windows. SDL2 is well known to be very portable, so I would think that it's probably easy to compile on MacOS too.

You can see in the src/ directory that there are 2 possible Makefile.config provided, one for Linux and one for Windows that uses MinGW compiler under Cygwin:

If you want to contribute a Makefile.config.macos you are very welcome! :)

If you have difficulties to compile, but no time to explore/investigate, but if you have lots of money you can also donate me a Mac computer (someone already did, something like 10 years ago, for glMLite compatibility with MacOS, but I don't have this mac anymore).

fccm commented 3 years ago

In the following thread, the person with the nickname rnt111 reports that ocamlsdl2 works well on Mac: https://www.reddit.com/r/ocaml/comments/azbztb/ocaml_graphics_and_sound_libraries/

csoren commented 2 years ago

OCamlSDL2 works without changes for me on macOS 12.2 (the latest as of this writing). I think you can close this issue and add macOS as supported.