Homebrew and TUnfold how to?

Hello,

I’m using root through a homebrew installation. Everything works fine but I just tried to run one of the TUnfold tutorial and I got:
fatal error: ‘TUnfoldDensity.h’ file not found

Any idea how to fix it or do I have to drop homebrew and install root from source?

Thanks for any suggestion

Attilio

Maybe @couet can give some hints

I think @moneta might know better.

Try (returns “yes” or “no”): root-config --has-unfold

I returns no

Attilio

So, you either build ROOT from source (with “-Dunfold=ON”), or you try to compile/add: the latest “standalone” TUnfold_V17.9 release

For the latter, you will probably also need this:

Note: in any case, it needs that: root-config --has-xml

Thanks for helping… I guess I’m going to build ROOT from source.

Attilio

Sorry for the inconvenience. We had to disable TUnfold in standard ROOT builds because it is licensed under the GPL rather than the LGPL like the rest of ROOT. This isn’t a problem for ROOT itself, but it is a potential pitfall for ROOT users: you might assume that using ROOT in a non-GPL project is fine - the LGPL is not copyleft - but as soon as you link against TUnfold, your project inherits GPL obligations. To avoid surprising users, we ship ROOT without TUnfold by default.

I’m in touch with the author of TUnfold to explore dual-licensing, so that the copy bundled with ROOT can carry the same license as ROOT itself. If that works out, we’ll be able to enable TUnfold in default builds again.

Cheers,
Jonas