Opened 11 years ago
Closed 11 years ago
#39854 closed defect (invalid)
root: unable to use TGuiBuilder
Reported by: | mojca (Mojca Miklavec) | Owned by: | mattiafrancescomoro@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | root |
Description
I have the following version (variants) of root installed on 10.7:
root @5.34.09_0+graphviz+gsl+minuit2+opengl+roofit+soversion+ssl+tmva+xml
If I try to launch TGuiBuilder
, it fails with the following error:
******************************************* * * * W E L C O M E to R O O T * * * * Version 5.34/09 26 June 2013 * * * * You are welcome to visit our Web site * * http://root.cern.ch * * * ******************************************* ROOT 5.34/09 (v5-34-09@v5-34-09, Jun 26 2013, 17:10:36 on macosx64) CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. root [0] new [] TGuiBuilder Error: Symbol TGuiBuilder is not defined in current scope (tmpfile):1: Error in <TCint::AutoLoadCallback>: failure loading dependent library libRIO.so for class TGuiBuilder Error in <TCint::AutoLoadCallback>: failure loading dependent library libGraf.so for class TGuiBuilder Error in <TCint::AutoLoadCallback>: failure loading dependent library libGpad.so for class TGuiBuilder Error in <TCint::AutoLoadCallback>: failure loading library libGui.so for class TGuiBuilder *** Interpreter error recovered *** root [1]
I will try if Qt solves the problem (it probably doesn't), but honestly I'm not sure where to start looking. The libraries are there, for example:
/opt/local/lib/root/libRIO.5.34.so /opt/local/lib/root/libRIO.5.so /opt/local/lib/root/libRIO.rootmap /opt/local/lib/root/libRIO.so
but root indeed doesn't link against any particular dylib other than X11.
> otool -L /opt/local/bin/root /opt/local/bin/root: /opt/local/lib/libXpm.4.dylib (compatibility version 16.0.0, current version 16.0.0) /opt/local/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0) /opt/local/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
Change History (4)
comment:1 Changed 11 years ago by cjones051073 (Chris Jones)
comment:2 Changed 11 years ago by cjones051073 (Chris Jones)
Back at my Mac, and
new TGuiBuilder()
Works perfectly, as I expected.
Please could a committer close this report as invalid ?
cheers Chris
comment:3 Changed 11 years ago by mojca (Mojca Miklavec)
Gosh. Because I cleverly mistyped the example from http://root.cern.ch/drupal/content/how-use-root-gui-builder which says that one should use
[] new TGuiBuilder
so I typed
new [] TGuiBuilder
and kept copy-pasting to every further window. I "forgot to think about it" and the error looked like a misconfigured installation. I guess I should say "sorry for the noise (but it would be really nice if the error report was slightly more accurate)" ;).
comment:4 Changed 11 years ago by mojca (Mojca Miklavec)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Hi,
Why are you using operator [] to make a new instance ? This isn't an array, but a single object, so that isn't valid syntax I think.
I don't have access to OSX right now, but on linux I get the same if I do
but
works just fine.
Chris