CryptoMiniSat uses CMake and automatically fetches cadical and cadiback dependencies. You only need to install gmp and zlib on your system.
1. Install System Dependencies
Debian/Ubuntu:
sudo apt-get install build-essential cmake ninja-build git libgmp-dev zlib1g-dev
macOS (Homebrew):
brew install cmake ninja gmp
Windows (MSYS2/MINGW64):
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja \
mingw-w64-x86_64-gmp mingw-w64-x86_64-zlib git
2. Compile
Run these commands in your terminal:
git clone https://github.com/msoos/cryptominisat
cd cryptominisat
mkdir build && cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
To build a fully static binary (no shared-library dependencies at runtime), use the -DBUILD_SHARED_LIBS=OFF flag.
cd cryptominisat
mkdir build && cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ..
cmake --build .