This is aimed at a developer the needs to write a C++ application that uses the BAG library to read a bag file.
Make sure dependencies are installed.
sudo apt install libxml2-dev libhdf5-dev
Follow usual cmake procedures, disabling testing by setting BAG_BUILD_TESTS to OFF.
mkdir build
cd build
cmake-gui ../
Modify CMAKE_INSTALL_PREFIX if desired, build, and install.
make
make install
See the How-to Guide and C++ API Reference and Python API Reference for tips on how to use the BAG library to read and create BAG files.