Did you know ... Search Documentation:
Build SWI-Prolog from source

The sources are common for all platforms. Building them requires CMake, a C11 compliant C compiler and the dependencies. The core system has a hard requirement on zlib. All other dependencies are optional.

Build instruction by platform