The fmt package is an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://github.com/fmtlib/fmt/archive/11.2.0/fmt-11.2.0.tar.gz
Download MD5 sum: 2f3701cada629ca455c3388d1089f5bd
Download size: 692 KB
Estimated disk space required: 44 MB (with tests)
Estimated build time: 0.4 SBU (using parallelism=4; with tests)
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
-D FMT_TEST=OFF: This
switch initializes the package tests. It will be overriden if the
instructions for running the test suite is used.