Re: Generating libXX.rootmap

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Tue, 12 Jan 2010 18:12:15 +0100


Hi Venkatesh,

yes, a rootmap file is the solution. You generate it either by hand (the syntax is trivial, just look at it) or you use rlibmap, the tool ROOT uses to generate its rootmap files. An example invocation is

bin/rlibmap -o lib/libThread.rootmap -l lib/libThread.so -d lib/libRIO.so -c core/thread/inc/LinkDef.h

Again, pretty much self-explaining: -o gets the output file name, -l the library for which you create the rootmap file, -d all the libraries that the library depends on, and -c the LinkDef.h file that rlibmap will parse to extract the list of classes defined in the library.

If you use genreflex to generate dictionaries then please let me know and I'll refresh my memory on how that works :-)

Cheers, Axel.

Venkatesh Kaushik wrote on 01/12/2010 06:02 PM:
> Hi,
> I have a TTree with user-defined objects. I would like
> to provide a way of loading the tree without the user
> getting such warnings:
> Attaching file SimpleFastReco_3981.root as _file0...
> Warning in <TClass::TClass>: no dictionary for class RunInfo is available
>
> In the interactive root session I have to do something along the
> following lines
> to get rid of the warning:
> [] gSystem->Load("libHist.so");
> gSystem->Load("libmumutil.so")
> gSystem->Load("libmumcore.so");
> and then read the tree.
>
> a) Is it possible to load these automatically when the user opens the
> root file
> containing this tree?
> b) Is having a .rootmap file a solution? and if so how is it done?
> Thanks for your help.
> Regards,
> Venkat
>
> PS: The output and the program are not exactly small, so I cannot attach
> more
> info other than providing the link to svn (where the code is) if necessary.
> Link to SVN:
> https://svnweb.cern.ch/cern/wsvn/atlasgrp/Institutes/Arizona/micromegas/trunk/#path_Institutes_Arizona_micromegas_trunk_
>
>
>
Received on Tue Jan 12 2010 - 18:09:52 CET

This archive was generated by hypermail 2.2.0 : Wed Jan 13 2010 - 17:50:01 CET