Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

Make it buildable using the new CMake-based build system #7

Open
rla opened this issue Oct 3, 2018 · 1 comment
Open

Make it buildable using the new CMake-based build system #7

rla opened this issue Oct 3, 2018 · 1 comment
Assignees

Comments

@rla
Copy link
Collaborator

rla commented Oct 3, 2018

SWI-Prolog switched recently to CMake-based build system. New instructions based on it need to be written. It seems like the build command should be:

cd src
mkdir build
cmake -DCMAKE_TOOLCHAIN_FILE=~/emsdk/emscripten/1.38.11/cmake/Modules/Platform/Emscripten.cmake \
  -DCMAKE_BUILD_TYPE=Release \
  -DZLIB_LIBRARY=~/zlib-1.2.11/libz.a \
  -DZLIB_INCLUDE_DIR=~/zlib-1.2.11 \
  -G "Unix Makefiles" ..

The paths of the toolchain file and zlib location have to adjusted for the versions.

@rla rla self-assigned this Oct 3, 2018
@rla
Copy link
Collaborator Author

rla commented Oct 3, 2018

It does seem like the zlib location has to be a full path, so:

cd src
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=$HOME/emsdk/emscripten/1.38.11/cmake/Modules/Platform/Emscripten.cmake \
  -DCMAKE_BUILD_TYPE=Release \
  -DZLIB_LIBRARY=$HOME/zlib-1.2.11/libz.a \
  -DZLIB_INCLUDE_DIR=$HOME/zlib-1.2.11 \
  -G "Unix Makefiles" ..
make VERBOSE=1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant