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

building on Mac (BigSur, AppleSilicon) #47

Open
akita11 opened this issue Jan 18, 2021 · 1 comment
Open

building on Mac (BigSur, AppleSilicon) #47

akita11 opened this issue Jan 18, 2021 · 1 comment

Comments

@akita11
Copy link

akita11 commented Jan 18, 2021

I'm trying to install graywolf on Mac (BigSur), and succeeded with some modification on source codes.
Here is my modification points, and I hope this will help someone to install graywolf on Mac with xcode compiler sets, where some of them would be a fixed in original sources.

  • prepare Homebrew
  • install cmake & libx11 by "brew install".
  • edit CMakeLists.txt at below line to avoid type-related errors and to set include/link path

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}
-DSIZEOF_VOID_P=${SIZEOF_VOID_P_BITS}
-Wno-implicit-function-declaration -Wno-return-type -Wno-format -I /usr/local/include -L /usr/local/lib")

  • on Mac(M1), getCompileDate() doesn't seem to work, so commended it out in program.c.
  • in genrows/draw.c, type specification "VOID" doesn't work, so delete it.
@breadnbeer
Copy link

I also had to remove *strcat() declaration in realpath.c.
(Big Sur, Intel chip)

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

2 participants