Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficulty building on macOS #99

Open
spencerking opened this issue Jul 23, 2019 · 3 comments
Open

Difficulty building on macOS #99

spencerking opened this issue Jul 23, 2019 · 3 comments

Comments

@spencerking
Copy link

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
Copy link

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

@deadpixi
Copy link
Owner

Thanks @mikerosenberg

@jacksonbenete
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants