Opened 12 years ago

Last modified 12 years ago

#32472 closed defect

Root compiles with qt4-mac but does not work — at Version 2

Reported by: martin.zeman@… Owned by: jonesc@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: mattiafrancescomoro@…
Port: root

Description (last modified by mf2k (Frank Schima))

Dear all,

I was able to compile the root package with qt_mac variant on my qt4-mac port. However after turning on the QtRoot layer I get the following errors:

Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineCap: invalid context 0x0 
Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineWidth: invalid context 0x0 
Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineJoin: invalid context 0x0 
Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineDash: invalid context 0x0 
Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0 
Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetFillColorWithColor: invalid context 0x0 
Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineCap: invalid context 0x0 
Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineWidth: invalid context 0x0 
Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineJoin: invalid context 0x0 ...

My system is Lion 10.7.2, which I assume is the problem. I tried to completely remove my MacPorts installation and do this from scratch, did not help, the problem stays the same, ROOT version is 5.32/00 (newest). Do this to completely reproduce my setup:

sudo port install python27
sudo port select --set python python27
sudo port install qt4-mac
sudo port install py27-pyqt4
sudo port install pythia
sudo port install root +python27 +qt_mac +ssl +xml +gsl +minuit2 +tmva +roofit +pythia

Modify .rootrc to call the QtRoot layer:

# GUI specific settings
Gui.Backend: qt
Gui.Factory:qt
# Qt GUI style setting
Gui.Style: macintosh

Call Root enviroment setup

. /Ports/bin/thisroot.sh

Start ROOT:

root

Call any Root GUI class:

TCanvas t

You should get the some invalid context errors. If you need me to provide anything else, please let me know.

Thanks for any help,

Martin

Change History (2)

comment:1 Changed 12 years ago by martin.zeman@…

Apologies, there is a formatting error in the .rootrc posted here. Just put in: Gui.Backend: qt Gui.Factory:qt Gui.Style: macintosh

comment:2 Changed 12 years ago by mf2k (Frank Schima)

Cc: mattiafrancescomoro@… added
Description: modified (diff)
Keywords: root qtroot qt_mac removed
Owner: changed from macports-tickets@… to jonesc@…
Note: See TracTickets for help on using tickets.