Opened 13 years ago
Last modified 12 years ago
#32472 closed defect
Root compiles with qt4-mac but does not work — at Initial Version
Reported by: | martin.zeman@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | Cc: | ||
Port: | root |
Description
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[[BR]]
# 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