id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,port 32472,Root compiles with qt4-mac but does not work,martin.zeman@…,cjones051073,"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] : CGContextSetLineCap: invalid context 0x0 Dec 9 13:23:01 valhalla root.exe[29444] : CGContextSetLineWidth: invalid context 0x0 Dec 9 13:23:01 valhalla root.exe[29444] : CGContextSetLineJoin: invalid context 0x0 Dec 9 13:23:01 valhalla root.exe[29444] : CGContextSetLineDash: invalid context 0x0 Dec 9 13:23:01 valhalla root.exe[29444] : CGContextSetStrokeColorWithColor: invalid context 0x0 Dec 9 13:23:01 valhalla root.exe[29444] : CGContextSetFillColorWithColor: invalid context 0x0 Dec 9 13:23:01 valhalla root.exe[29444] : CGContextSetLineCap: invalid context 0x0 Dec 9 13:23:01 valhalla root.exe[29444] : CGContextSetLineWidth: invalid context 0x0 Dec 9 13:23:01 valhalla root.exe[29444] : 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 ",defect,closed,Normal,,ports,2.0.3,wontfix,,mattiafrancescomoro@…,root