Re: [ROOTDEV] root

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Tue, 04 Jul 2006 13:07:40 +0200


On your first machine, as suggested by the error message, run   cd $ROOTSYS
   make install
or simply

   make map

Then, fix your test file with spheres, replacing the line #include"iostream"
by
#include "iostream"

Rene Brun

keshavmehta wrote:
> Hi,
>
> Keshav Here from INDIA. Here is my problem I wrote a small code in
> Root for graph.
> But It is showing following error in one machine .
>
> *Error in <TCint::LoadLibraryMap>: library map empty, no
> system.rootmap file
> found. ROOT not properly installed (run "make install").*
> **
> *In Another Machine:*
> **
> * No Error But Graph is not dispalying . Ho wto see the graph .*
> **
> *plz help me ...*
> * *
> * *
> *
> *
>
> #include"iostream"
> #include "TRandom.h"
> #include "TCanvas.h"
> #include "TView.h"
> #include "TPolyMarker3D.h"
> using namespace std;
> void spheres(Int_t nspheres=20, Int_t npoints=100000)
> {
> // generate random points uniformly distributed over the surface
> // of spheres generated at random positions.
> TCanvas *c1 = new TCanvas("c1","spheres",600,600);
> c1->SetFillColor(kBlack);
> TView *view = new TView(1);
> Double_t k=0.8;
> view->SetRange( -k, -k, -k, k, k, k);
>
> //generate sphere coordinates and radius
> TRandom r;
> if (nspheres <=0) nspheres = 10;
> Double_t *xs = new Double_t[nspheres];
> Double_t *ys = new Double_t[nspheres];
> Double_t *zs = new Double_t[nspheres];
> Double_t *rs = new Double_t[nspheres];
> Int_t i;
> for (i=0;i<nspheres;i++)
> {
> xs[i] = r.Uniform(0,1);
> ys[i] = r.Uniform(-1,1);
> zs[i] = r.Uniform(-1,1);
> rs[i] = r.Uniform(0.05,0.25);
> //cout<<"MAT: "<<xs[i]<<endl;
> }
> TPolyMarker3D *pm = new TPolyMarker3D(npoints);
> pm->SetMarkerColor(kRed);
> Double_t x,y,z;
> for (Int_t j=0;j<npoints;j++) {
> i = (Int_t)r.Uniform(0,nspheres); //choose sphere
> r.Sphere(x,y,z,rs[i]);
> pm->SetPoint(j,xs[i]+x, ys[i]+y,zs[i]+z);
> }
>
> delete [] xs;
> delete [] ys;
> delete [] zs;
> delete [] rs;
>
> pm->Draw();
> }
> int main()
> {
> spheres();
> return 0;
> }

>
>

> *
> Kesavarao s
>

> Financial Engineer's Group,
>

> HCL,+91.9886.230.376
>

> *
>

> ------------------------------------------------------------------------
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls
> <http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>
> to the US (and 30+ countries) for 2¢/min or less.
Received on Tue Jul 04 2006 - 13:07:49 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET