Chlumsky / msdfgen

Multi-channel signed distance field generator
MIT License
3.98k stars 412 forks source link

Compiling on MacOS #57

Closed neurolabusc closed 5 years ago

neurolabusc commented 7 years ago

Hello- It is great that the releases include a compiled Windows executable. As a feature request, can the documentation be extended to include instructions for how to compile the comprehensive standalone console program on other distributions. The naive g++ -o ms main.cpp does not work on MacOS. There is a precompiled executable for MacOS, but it does not appear to be a recent version. Thanks for a terrific program.

ckohnert commented 7 years ago

You should be able to use CMake after checking out the code:

mkdir out
cd out && cmake .. && make

It requires truetype libraries to build (it will complain if it can't find them). Both CMake and Truetype development libs can easily be obtained using homebrew.

neurolabusc commented 7 years ago

Terrific, that works. As a feature request, would be great to include this in the README.md

Chlumsky commented 5 years ago

Added mention in Readme.