Opened 11 years ago

Closed 11 years ago

#39860 closed defect (wontfix)

root: problems launching the Qt GUI

Reported by: mojca (Mojca Miklavec) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mattiafrancescomoro@…, cjones051073 (Chris Jones)
Port: root

Description

I'm not claiming that this is a MacPorts-only-related issue (it might be that it doesn't work on Mac at all), but this is what I get when I try to launch Qt interface in Root:

root [1] gEnv->SetValue("Gui.Backend","qt");
root [2] gEnv->SetValue("Gui.Factory","qt");
root [3] gEnv->Print()
...
root [4] t = new TBrowser();
** $Id$ this=0x7faa8ce5bcd0
The font "symbol.ttf" was not installed yet
 Substitute it with " "Arial" " 
 Make sure your local "~/.fonts.conf" or "/etc/fonts/fonts.conf" file points to " /opt/local/share/root/fonts " directory to get the proper support for ROOT TLatex class 
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineCap: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineWidth: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineJoin: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineDash: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetFillColorWithColor: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineCap: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineWidth: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineJoin: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineDash: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetShouldAntialias: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetInterpolationQuality: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextBeginPath: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextAddPath: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextDrawPath: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineCap: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineWidth: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineJoin: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineDash: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetFillColorWithColor: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineCap: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineWidth: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineJoin: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetLineDash: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetShouldAntialias: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextSetInterpolationQuality: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextBeginPath: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextAddPath: invalid context 0x0
Jul 25 22:51:37 myhostname root.exe[27120] <Error>: CGContextDrawPath: invalid context 0x0
... ad infinitum ...

Change History (6)

comment:1 Changed 11 years ago by cjones051073 (Chris Jones)

QT support in ROOT is abysmal, in my opinion. I wanted to remove it a while back, but was convinced to add it back, but only on an 'as is' basis. In that if it works for you then great, if not, I have no interest or time to fix it. Sorry...

comment:2 Changed 11 years ago by cjones051073 (Chris Jones)

p.s. still given the above, did you install ROOT with the QT variant enabled (not the default) ?

comment:3 Changed 11 years ago by mojca (Mojca Miklavec)

Yes, I installed it with +qt_mac.

Just curious: is Qt something that's still being more or less actively developed or something that has been written as proof-of-concept, but nobody is really interested in maintaining actively? Would bug reports be fixed quickly? I also had the impression that Qt support in ROOT is relatively basic, but I didn't ever explore the details.

comment:4 Changed 11 years ago by cjones051073 (Chris Jones)

I cannot answer that I'm afraid. You should ask on the ROOT mailing list or forum.

Personally, my interest in QT was only ever limited to a possible alternative to using X11 as the graphics backend, and for me that is now no longer relevant given the (much better) native cocoa variant. I still favour X11, but if I was to want to move away from that, the cocoa variant is a much better option I think.

Chris

comment:5 Changed 11 years ago by mojca (Mojca Miklavec)

I somehow oversaw the Cocoa variant.

I asked on the forum: http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=16852

Let's wait for a few days if they answer and if the solution can easily get ported to MacPorts. If not, this can be closed as wontfix.

comment:6 Changed 11 years ago by g5pw (Aljaž Srebrnič)

Resolution: wontfix
Status: newclosed

Closing as wontfix. In my opinion, we should move towards the cocoa variant.

Note: See TracTickets for help on using tickets.