I have installed ROOT 5.32 in my computer with Mac OS X 10.6.8. I should anticipate that I have just begun to study ROOT, so there may be something basic that I have not understood.
My assumption was that it should be possible to call any ROOT function, even those that display a graphical output, from C++ code compiled and linked to the root libraries. However, when I attempt to call the Draw() method from any class I see only this Terminal output and nothing other happens:
Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
Moreover, if I just initialize a TBrowser the program outputs a weird bunch of lines that announces a crash. I am attaching my code and the output I see.
My program:
#include <TBrowser.h>
int main() {
TBrowser b;
}
The command I use to compile it:
The error it prints:
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
Thread 1 (process 30570):
#0 0x00007fff83f54b28 in wait4 ()
#1 0x00007fff83f690e6 in system ()
#2 0x00000001008ed16c in TUnixSystem::StackTrace ()
#3 0x00000001008ea161 in TUnixSystem::DispatchSignals ()
#4 <signal handler called>
#5 0x00000001008365c7 in TApplication::InitializeGraphics ()
#6 0x000000010083f4e5 in TBrowser::TBrowser ()
#7 0x0000000100001b68 in main ()
===========================================================
The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#5 0x00000001008365c7 in TApplication::InitializeGraphics ()
#6 0x000000010083f4e5 in TBrowser::TBrowser ()
#7 0x0000000100001b68 in main ()
===========================================================
Thanks in advance for any advice