[MacPorts] #32472: Root compiles with qt4-mac but does not work

MacPorts noreply at macports.org
Fri Dec 9 04:52:38 PST 2011


#32472: Root compiles with qt4-mac but does not work
----------------------------------+-----------------------------------------
 Reporter:  martin.zeman@…        |       Owner:  macports-tickets@…                   
     Type:  defect                |      Status:  new                                  
 Priority:  Normal                |   Milestone:                                       
Component:  ports                 |     Version:  2.0.3                                
 Keywords:  root, qtroot, qt_mac  |        Port:  root                                 
----------------------------------+-----------------------------------------
 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:[[BR]]
 [[BR]]
 Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineCap:
 invalid context 0x0 [[BR]]
 Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineWidth:
 invalid context 0x0 [[BR]]
 Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineJoin:
 invalid context 0x0 [[BR]]
 Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineDash:
 invalid context 0x0 [[BR]]
 Dec 9 13:23:01 valhalla root.exe[29444] <Error>:
 CGContextSetStrokeColorWithColor: invalid context 0x0 [[BR]]
 Dec 9 13:23:01 valhalla root.exe[29444] <Error>:
 CGContextSetFillColorWithColor: invalid context 0x0 [[BR]]
 Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineCap:
 invalid context 0x0 [[BR]]
 Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineWidth:
 invalid context 0x0 [[BR]]
 Dec 9 13:23:01 valhalla root.exe[29444] <Error>: CGContextSetLineJoin:
 invalid context 0x0 ...[[BR]]

 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:
 [[BR]]

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

 Modify .rootrc to call the QtRoot layer:[[BR]]
 # GUI specific settings[[BR]]
 Gui.Backend: qt[[BR]]
 Gui.Factory:qt[[BR]]
 # Qt GUI style setting[[BR]]
 Gui.Style: macintosh[[BR]]
 [[BR]]
 Call Root enviroment setup[[BR]]
 . /Ports/bin/thisroot.sh[[BR]]
 [[BR]]
 Start ROOT:[[BR]]
 root

 Call any Root GUI class:[[BR]]
 TCanvas t
 [[BR]]
 You should get the some invalid context errors. If you need me to provide
 anything else, please let me know.
 [[BR]]
 Thanks for any help,

 Martin

-- 
Ticket URL: <https://trac.macports.org/ticket/32472>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list