Skip to content

macOS builds #3

Description

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 MOUSE5 event 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 like NCURSES_SRC to the Makefile is probably the best way to go:

INCLUDES = -I$(AICODIX_DSP) -I$(AICODIX_CODE) -I$(MODEM_SRC)
ifdef NCURSES_SRC
    INCLUDES += -I$(NCURSES_SRC)
endif

As for tinfo, removing the -ltinfo from the LDFLAGS seems 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.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions