graywolf icon indicating copy to clipboard operation
graywolf copied to clipboard

building on Mac (BigSur, AppleSilicon)

Open akita11 opened this issue 4 years ago • 1 comments

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.

akita11 avatar Jan 18 '21 06:01 akita11

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

breadnbeer avatar May 07 '21 14:05 breadnbeer