sam
sam copied to clipboard
Difficulty building on macOS
Is there a recommended X11 library for macOS? I have xquartz and it works fine for several other applications, but I'm having no luck with sam.
cd libXg; /Library/Developer/CommandLineTools/usr/bin/make gcc -std=c99 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -I../include -I/usr/include/freetype2 -c -o arith.o arith.c In file included from arith.c:3:0: ../include/libg.h:9:10: fatal error: X11/Xft/Xft.h: No such file or directory #include <X11/Xft/Xft.h> ^~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [arith.o] Error 1 make: *** [lXg] Error 2
check config.mk. there's some notes in there about alterations that are needed to build on a mac.
Thanks @mikerosenberg
I've just created a pull request #121 , we could solve this by injecting the dependencies by OS detection. I don't have too much experience with C and Makefiles but a lot of projects take this approach.
I would guess that since it was not being done already, it'll have drawbacks? Anyway I'll let the Pull Request if you think it's a good idea, and I would love to learn something new if you think it's a bad idea and wouldn't mind to share the reasons why we should not do that.