deadpixi / sam

An updated version of the sam text editor.
Other
430 stars 46 forks source link

Difficulty building on macOS #99

Open spencerking opened 5 years ago

spencerking commented 5 years ago

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`

mikerosenberg commented 4 years ago

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

deadpixi commented 4 years ago

Thanks @mikerosenberg

jacksonbenete commented 2 years ago

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.