Installation — libdicom documentation

# Installation

## Building

The library and executables can be built using Meson:

    meson setup --buildtype release builddir
    meson compile -C builddir
    meson install -C builddir

## Build dependencies

To install build dependencies:

On Debian-based Linux distributions:

    sudo apt install build-essential git meson pkg-config

On macOS:

    brew install git meson pkg-config

On Windows:

    # Pin to Meson 0.60.1 for https://github.com/mesonbuild/meson/issues/10022
    pip install meson==0.60.1

## Build configuration

Build for development and debugging:

    meson setup builddir --buildtype debug
    meson compile -C builddir

## Optional dependencies

This package uses check for unit testing and uthash for data structures. It will automatically download and build both libraries, or can use system copies.

To install system copies:

On Debian-based Linux distributions:

    sudo apt install check uthash-dev

On macOS:

    brew install check uthash