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

MacPorts noreply at macports.org
Fri Dec 9 08:10:43 PST 2011


#32472: Root compiles with qt4-mac but does not work
---------------------------------+------------------------------------------
 Reporter:  martin.zeman@…       |       Owner:  jonesc@…                
     Type:  defect               |      Status:  new                     
 Priority:  Normal               |   Milestone:                          
Component:  ports                |     Version:  2.0.3                   
 Keywords:                       |        Port:  root                    
---------------------------------+------------------------------------------
Changes (by macsforever2000@…):

  * keywords:  root, qtroot, qt_mac =>
  * owner:  macports-tickets@… => jonesc@…
 * cc: mattiafrancescomoro@… (added)


Old 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:[[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

New 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
 # 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

--

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


More information about the macports-tickets mailing list