fmt-12.2.0

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-1303

### Chapter 9. General Libraries

- Prev

  fftw-3.3.11

- Next

  GLib-2.88.3

- Up
- Home

# fmt-12.2.0

## Introduction to fmt

The fmt package is an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams.

### Note

This package is known to build and work properly using an LFS 13.1 platform.

### Package Information

- Download (HTTP): https://github.com/fmtlib/fmt/archive/12.2.0/fmt-12.2.0.tar.gz

- Download MD5 sum: 7be257d8bfad55bc9eabb1288ad895be

- Download size: 724 KB

- Estimated disk space required: 48 MB (with tests)

- Estimated build time: 0.4 SBU (using parallelism=4; with tests)

### Fmt Dependencies

#### Required

CMake-4.4.2

## Installation of fmt

Install fmt by running the following commands:

    mkdir build &&
    cd    build &&

    cmake -D CMAKE_INSTALL_PREFIX=/usr     \
          -D CMAKE_INSTALL_LIBDIR=/usr/lib \
          -D BUILD_SHARED_LIBS=ON          \
          -D FMT_TEST=OFF                  \
          -G Ninja ..                      &&
    ninja

To test the results, issue:

    cmake -D FMT_TEST=ON .. &&
    ninja                   &&
    ninja test

Now, as the `root` user:

    ninja install

## Command Explanations

`-D FMT_TEST=OFF`: This switch initializes the package tests. It will be overridden if the instructions for running the test suite is used.

## Contents

Installed Programs: None
Installed Libraries: libfmt.so
Installed Directories: /usr/include/fmt and /usr/lib/cmake/fmt

- Prev

  fftw-3.3.11

- Next

  GLib-2.88.3

- Up
- Home