wordgrinder icon indicating copy to clipboard operation
wordgrinder copied to clipboard

Build fails on macOS - not finding cmark

Open dei-layborer opened this issue 2 years ago • 3 comments

Long-time user (albeit off and on), so definitely happy to see mac support! Unfortunately, can't get it to build.

To preface: I've installed the listed dependencies via homebrew as best I can tell (ninja, pkg-config, glfw). However, there are additional dependencies that I also had to install (from homebrew): imagemagick (to get convert) and fmt (to get fmt/format.h).

But the main problem is that make fails as it cannot find cmark.h. I have both cmake and cmark installed from homebrew, so I'm not sure why it can't find the header. Any ideas?

dei-layborer avatar Jul 11 '23 17:07 dei-layborer

I'm on Ubuntu, but I ran into the same problem. I had to sudo apt-get install libcmark-dev to overcome that particular hurdle. Perhaps homebrew has an analogous tap?

moonmaster9000 avatar Sep 22 '23 10:09 moonmaster9000

Thanks for following up! Unfortunately, I can't find anything analogous on homebrew...there's just cmake and cmark.

dei-layborer avatar Sep 22 '23 12:09 dei-layborer

I see. Then I recommend just installing the library headers from source yourself: https://github.com/commonmark/cmark

moonmaster9000 avatar Sep 23 '23 23:09 moonmaster9000