Skip to content

Detector Setup

Run:

wfdb-qrs-kit doctor

The doctor output shows the package cache, detected executables, and the local provenance manifest.

Existing executables

If you already have wqrs and eplimited, either set environment variables:

set WFDB_QRS_KIT_WQRS_EXE=C:\wfdb\bin\wqrs.exe
set WFDB_QRS_KIT_EPLIMITED_EXE=C:\wfdb\bin\eplimited.exe

or copy them into the package cache:

wfdb-qrs-kit install-detectors --from-bin-dir C:\wfdb\bin --no-download

Download and compile

When a WFDB C development environment is installed:

wfdb-qrs-kit install-detectors --compile --compiler gcc

On Windows with MSVC, pass WFDB include and library directories:

wfdb-qrs-kit install-detectors --compile --compiler cl ^
  --wfdb-include C:\wfdb\include ^
  --wfdb-lib C:\wfdb\lib

Each install writes detector_manifest.json with source URLs, checksums, build commands, executable paths, and license notes.

WSL / Linux without sudo

If you cannot install libwfdb-dev with apt, build WFDB into a user-writable prefix and compile the detectors against that prefix:

cd /mnt/e/GPTProject2/wfdb-qrs-kit
mkdir -p detector-cache-wsl/upstream detector-cache-wsl/build detector-cache-wsl/wfdb-local
cd detector-cache-wsl/upstream
curl -L -o wfdb.tar.gz https://physionet.org/physiotools/wfdb.tar.gz
tar -xzf wfdb.tar.gz -C ../build
cd ../build/wfdb-*
./configure --prefix=/mnt/e/GPTProject2/wfdb-qrs-kit/detector-cache-wsl/wfdb-local
make -j2
make install

cd /mnt/e/GPTProject2/wfdb-qrs-kit
python -m wfdb_qrs_kit.cli install-detectors \
  --cache-dir /mnt/e/GPTProject2/wfdb-qrs-kit/detector-cache-wsl \
  --compile \
  --compiler gcc \
  --wfdb-include /mnt/e/GPTProject2/wfdb-qrs-kit/detector-cache-wsl/wfdb-local/include \
  --wfdb-lib /mnt/e/GPTProject2/wfdb-qrs-kit/detector-cache-wsl/wfdb-local/lib

The gcc build embeds an rpath to the local WFDB library path. The runtime also adds the executable directory to LD_LIBRARY_PATH / DYLD_LIBRARY_PATH before launching detectors.