I’m a new ROOT user and I need to compile and link my root program so to have an executable to be run on a machine which does not support root.
Can you help me?
I tried to make a makefile like this but it doesn’t really work:
To generate a static module using ROOT, you need to generate libRoot.a, an archive library containing all ROOT classes. This library is created when installing ROOT from source
./configure
make
make static
make static generates $ROOTSYS/lib/libRoot.a as well as a static
module $ROOTSYS/bin/roota.
To build the static module, one must force the dictionaries to be loaded
in the executable from libRoot.a. An example can be found in the procedurebelow linking a static executable of geant3 with ROOT.