Re: error building root on RedHat 7.3

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Mon, 4 Aug 2008 15:32:17 +0200


Hi Christian and Tom,

On 2008-08-04 14:44, Christian Holm Christensen wrote:
> On Sun, 2008-08-03 at 10:26 +0200, Axel Naumann wrote:

>> the person who knows the answer is currently on vacation; he will reply 
>> when he is back.

>
> I'm not on vacation, so I'll try to help you :-)

Thanks, Christian! :-)

>>> That got Root to build, including static, and my program links with the
>>> static library. It runs unless it tries to use Root I/O, in which case
>>> it give this error message:
>>> Error in <TPluginManager::FindHandler>: Cannot find plugin handler for
>>> TVirtualStreamerInfo! Does $ROOTSYS/etc/plugins/TVirtualStreamerInfo exist?

>
> Try adding the following code to your "main" executable:
>
> /* magic line from Rene - for future reference! */
> gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo",
> "*",
> "TStreamerInfo",
> "RIO",
> "TStreamerInfo()");
>
> That might help. Problem is, that ROOT tries to be clever and load the
> non-existent shared library RIO which isn't there because you built
> statically.

...and this is why I wanted to wait a bit with the answer: I think we need a generic fix for this. If we offer a target for static libs then ROOT (e.g. the I/O) must cope with it, e.g. by adding an object to "libCore.a" that does the magic.

>>> I want to be able to run this program without depending on having the
>>> correct version of Root installed (or any Root installed at all). Do I
>>> need to use an older version of Root to avoid the plugins?

>
> Two things:
>
> 1. I understand your main concern is distribution of software.
> That is, you want to distribute your software "as a whole" -
> including third-party libraries and code. Did you consider
> making a distribution :-) Seriously, you could make a custom
> Debian GNU/Linux distribution on a LiveCD/DVD image.

Or take one that already exists, e.g. PAIPIX <http://aamorimsrv.fis.fc.ul.pt/tiki-index.php?page=PaiPix_EN&bl>

Cheers, Axel. Received on Mon Aug 04 2008 - 15:32:20 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 06 2008 - 05:50:03 CEST