I would like to save a bunch of Graphs as an gif animation but somehow it doesn’t work anymore with the SLC5 and root 5-25-01 (tried e.g.on lxplus249).
It works without a problem under SLC4 and root 5-23-04 …
Here is the main error message:
[…]
ASImage2gif():1069:<anim.gif>
GIF-LIB undefined error 0.
[…]
and a small example …
{ // MINIMAL WORKING EXAMPLE
char *fileOut = "anim.gif";
char animfile[100];
gStyle->SetCanvasPreferGL(true);
TCanvas *c1 = new TCanvas("test","test",0,0,600,700);
for (Int_t i = 0; i<20;i++) {
// simple plot
Double_t ev = (Double_t) i;
TH3D *his = new TH3D("ASDF","ASDF",3,0,3,3,0,3,3,0,3);
his->Fill(0.5,1.5,1.5,1);
his->Fill(1.5,1.5,1.5,ev);
his->DrawCopy("GLBOX");
his->SetStats(0);
gPad->SetPhi(35);gPad->SetTheta(15);
gPad->Update();
his->~TH3D();
sprintf(animfile,"%s+10",fileOut);
c1->Print(animfile);
}
sprintf(animfile,"%s++",fileOut); // infinite loop
c1->Print(animfile);
}