Trying to build SWI-PROLOG using cmake as described here
on my Mac Mini (arm64), but running the ‘ninja‘ command, it seems to get stuck on the use of the ‘undeclared identifier H_SAVE_FP‘ relative to the file
../swipl-devel/packages/libedit/libedit4pl.c:2111:24
I’m sorry if this issue has already been treated before, I wasn’t able to find anything regarding it. I just need the graphical tracer and xpce library that do not come with the stable home-brew installation.
I was about to comment on the same issue. On MacOS, using Homebrew for installing packages, there is a message on some packages, including libedit:
==> Caveats
libedit is keg-only, which means it was not symlinked into /opt/homebrew,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
For compilers to find libedit you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/libedit/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libedit/include"
For pkgconf to find libedit you may need to set:
export PKG_CONFIG_PATH="/opt/homebrew/opt/libedit/lib/pkgconfig"
Until now, I have been apparently building against the MacOS provided libedit. It does not even have H_SAVE_FP.