Skip to content

Compilation failures with plain Makefile on certain ROOT installation

On Ubuntu 24.04 LTS the snap ROOT package brings (smuggles, as it is not properly exposed for public) its own nlohmann/json implementation which causes build failures using plain Makefile (CMake is ok).

Just a note in case this issue will re-appear in other configurations. Possible options:

  • get rid of nlohmann/json in this project, moving to yaml-cpp
  • make p348reco respect system envornment
  • carefully resolve includes at the library level (hacky)
  • elaborate plain Makefile (hacky)