Skip to content

building on Mac (BigSur, AppleSilicon) #47

@akita11

Description

@akita11

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions