Open friguzzi opened 5 years ago
That is a Mac setup issue. I don't know. I have a very old mac. On any normal system cc
should be able to find the core header files, but I guess you need to do something different on the Mac ... Use swipl-ld -v ...
to find what it is doing and try to figure out what is wrong.
The problem is that macOS has an old version of libffi. With brew the latest version is installed but configure gets the cc of Xcode
<wchar.h>
is a standard C header that comes with the compiler and has nothing to do with libffi. I think swipl-ld calls the compiler found by CMake to compile SWI-Prolog. You might need to call the compiler some other way in MacOS, Try simple using cc
from the default path.
Hi Jan, this is the procedure I followed for compiling on mac (look at the readme) https://github.com/friguzzi/ffi I couldn't manage to find a way to encode the process in configure.ac and Makefile in a general way. If you're satisfied with the text instructions in the README.md I will send a pull request
On a mac with os Mojave, swipl 8.1.3-26-g30498cd0a
doesn't compile, I get