sam icon indicating copy to clipboard operation
sam copied to clipboard

Difficulty building on macOS

Open spencerking opened this issue 5 years ago • 3 comments

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

spencerking avatar Jul 23 '19 02:07 spencerking

check config.mk. there's some notes in there about alterations that are needed to build on a mac.

mikerosenberg avatar Sep 06 '19 00:09 mikerosenberg

Thanks @mikerosenberg

deadpixi avatar Sep 10 '19 16:09 deadpixi

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.

jacksonbenete avatar Feb 20 '22 15:02 jacksonbenete