-
Notifications
You must be signed in to change notification settings - Fork 3
macOS builds #3
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
Compiling on mac is possible, but it requires a bit of finagling to get it to work.
The ncurses version that is bundled with macOS is old and doesn't have definitions for
MOUSE5event masks, but the version that homebrew bundles has all of the necessary components (except for tinfo).To use the proper version from homebrew, you have to manually specify the include path (e.g.
/opt/homebrew/Cellar/ncurses/6.6/include). The include path isn't always consistent across machines, so adding a quick check for a var likeNCURSES_SRCto the Makefile is probably the best way to go:As for tinfo, removing the
-ltinfofrom theLDFLAGSseems to work fine. I can't tell if this breaks anything yet, but it looks fine so far. Perhaps it could be conditionally linked.With these changes, it compiles and runs fine for me.