C++ Utilities  4.14.2
Useful C++ classes and routines such as argument parser, IO and conversion utilities
C++ utilities

Useful C++ classes and routines such as argument parser, IO and conversion utilities.


The library utilizes:

Besides, the library provides a few useful algorithms and data structures:

Build instructions


Build-only dependencies

Runtime dependencies

How to build

Just run:

cd "path/to/build/directory"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/final/install/location" \
make tidy # format source files (optional, must be enabled via CLANG_FORMAT_ENABLED)
make check # build and run tests (optional)
make coverage # build and run tests measuring test coverage (optional, must be enabled via CLANG_SOURCE_BASED_COVERAGE_ENABLED)
make apidoc # build API documentation (optional)
make DESTDIR="/temporary/install/location" install

General notes

Building for Windows

Building for MacOS X

Development builds

During development I find it useful to build all required projects (for instace c++utilities, qtutilities, tagparser and tageditor) as one big project.

This can be easily achieved by using CMake's add_subdirectory() function. For project files see the repository subdirs. For an example, see build instructions for Syncthing Tray.

For a debug build, just use -DCMAKE_BUILD_TYPE=Debug.

Arch Linux package

The repository PKGBUILDs contains files for building Arch Linux packages.

PKGBUILD files to cross compile for Windows using mingw-w64 and for MacOS X using osxcross are also included.

RPM packages for openSUSE

RPM *.spec files can be found at openSUSE Build Servide. Packages are available for x86_64, aarch64 and armv7l. Since GCC provided by Leap is too old, only Tumbleweed packages are up-to-date.


Packages are provided by perfect7gentleman; checkout his repository.


Scripts to build with Cygwin are provided by svnpenn. Checkout his repository.

General notes