RE: NX client with root graphics

From: Fine, Valeri <fine_at_bnl.gov>
Date: Wed, 4 Oct 2006 15:46:48 -0400


Hello Roland,

> For the dummies: am I using QtRoot if I've run configure with "--with-
> qt-incdir=/usr/lib/qt-3.3/include --with-qt-libdir=/usr/lib/qt-3.3/
> lib"? "root-config --has-qt" returns "yes".

 No, it is not ENOUGH !!!

> I'm asking because NX
> crashes reliably when starting our readout error monitoring software.
> The problem is that that's a complicated piece of code from which I
> cannot easily extract a portable snippet exhibiting the error :-(
>
> Anything else I could try?

The QtRoot is a ROOT plugin. This means it is not enough to compile and install the QtRoot layer. One has to change either the "$ROOTSYS/etc/system.rootrc" or provide the custom ".rootrc" file to set the proper plugin .

Eitehr file shoiudl contain the lines

Gui.Backend:                qt
Gui.Factory:                qt

Instead of the "standard"

Gui.Backend:                native
Gui.Factory:                native

See: ROOT User's Manual, ROOT / Qt Integration Interfaces ftp://root.cern.ch/root/doc/chapter27.pdf http://root.bnl.gov

To turn the Qt Extension one needs

Gui.Backend:                qt
Gui.Factory:                qtgui

  Yu are using the QtRoot if when start ROOT session you see the Qt-Root banner followed by the usual ROOT banner

> root.exe

** $Id: TGQt.cxx,v 1.2 2006/09/22 17:07:38 fine Exp $ this=0x9d078c0


Compiled on 18 August 2006 for linux with thread support.

CINT/ROOT C/C++ Interpreter version 5.16.13, June 8, 2006 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. root.exe [0] .q

  Hope this helps,
  My best regards, Valeri

>
> Thanks,
> Roland
>
> --
> TU Muenchen, Physik-Department E18, James-Franck-Str., 85748 Garching
> Telefon 089/289-12575; Telefax 089/289-12570
> --
> CERN office: 892-1-D23 phone: +41 22 7676540 mobile: +41 76 487 4482
> --
> Any society that would give up a little liberty to gain a little
> security will deserve neither and lose both. - Benjamin Franklin
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GS/CS/M/MU d-(++) s:+ a-> C+++ UL++++ P+++ L+++ E(+) W+ !N K- w--- M
> + !V Y+
> PGP++ t+(++) 5 R+ tv-- b+ DI++ e+++>++++ h---- y+++
> ------END GEEK CODE BLOCK------
>
Received on Wed Oct 04 2006 - 21:47:53 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET