Tested with root_6.28_04 (precompiled binaries for Ubuntu 20.04) I. Use with GNU make 1) set path in makefile according to your operating system 2) type in terminal: make all make htmldoc make install 3) add the install folder to LD_LIBRARY_PATH II. Use with cmake 1) mkdir build 2) cd build 3) cmake .. 4) make III. Test of compiled libraries 1) cd macros 2) rootlogon.C script will automatically load compiled libraries libTELoss.so and libAculData.so, then root -l testOfAculData.cxx root -l testOfTELoss.cxx