Building SWI-Prolog on MS-Windows

Building SWI-Prolog on MS-Windows

If you have access to MSVC 5.0 or later, you may decide to build the Windows version SWI-Prolog yourself. There are only a few cases where you would like to do that:

As of the integrated XPCE/SWI-Prolog 4.0.0, the installation is no longer based on MSVC project files that are simply too hard to maintain if building involves many custom steps. Instead, there are makefiles for NMAKE that run from a command window.

Before starting the build, you'll need:

Now proceed as follows:

Thats all. You can now start plwin.exe or plcon.exe from the $(prefix)\pl\bin\ directory. If you want you can associate .PL with plwin.exe and/or add plwin.exe to your start menu.

Cleanup

After installing you may discard the entire source-tree or invoke one of the targets below to clean the object files or all generated files

nmake /f makefile.mak clean
nmake /f makefile.mak distclean

Compile for debugging

To compile SWI-Prolog for debugging, use a clean source-tree (using nmake /f makefile.mak clean), build and install SWI-Prolog using

nmake DBG=true /f makefile.mak
nmake DBG=true /f makefile.mak install


Home This page is maintained using the chpp macro language