RE: [Qt-root-l] Root + qtRoot installation problem in afs

From: Bertrand Bellenot <Bertrand.Bellenot_at_cern.ch>
Date: Wed, 26 Aug 2009 15:45:30 +0200


Hi,

> Can you recompile root on afs and add the qtRoot? No need to recompile ROOT, ROOT on afs has been build with Qt4.4.2 support (libQtRoot.so and libGQt.so are already in $ROOTSYS/lib)

You may have to set the following environment variables: setenv QTDIR /afs/cern.ch/sw/lcg/external/qt/4.4.2/slc4_amd64_gcc34 setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${QTDIR}/lib

Cheers, Bertrand.

-----Original Message-----
From: qt-root-l-bounces_at_lists.bnl.gov
[mailto:qt-root-l-bounces_at_lists.bnl.gov] On Behalf Of Qt-Root integration project
Sent: Wednesday, August 26, 2009 15:18
To: Valeri Fayn
Cc: Rene Brun; roottalk_at_root.cern.ch; qt-root-l_at_lists.bnl.gov Subject: [Qt-root-l] Root + qtRoot installation problem in afs

Hello,
I have problem. I am trying to use ROOT+qtRoot from python. The afs install area the qtRoot is not installed. The following steps I did: I added to the .rootrc file the following lines:

Gui.Style:                  windows
Gui.Backend:                qt
Gui.Factory:                qtgui
Plugin.TGuiFactory: ^qtgui   TQtGUIFactory  QtRootGui       
"TQtGUIFactory()"

I opened a new lxplus session and I did: [lxplus252] ~ > setenv ROOTSYS
/afs/cern.ch/sw/lcg/app/releases/ROOT/5.22.00c/slc4_amd64_gcc34/root

[lxplus252] ~ > set path=($ROOTSYS/bin $path)
[lxplus252] ~ > setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${ROOTSYS}/lib
[lxplus252] ~ > setenv PYTHONPATH ${PYTHONPATH}:${ROOTSYS}/lib
[lxplus252] ~ > python

Python 2.5 (r25:51908, Oct 18 2007, 16:04:48) [GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>>
>>> from PyQt4.QtGui import *
>>> from PyQt4.QtCore import *
>>> import ROOT
>>>
>>> import sip
>>> application = qApp
>>> terminator = ROOT.TQtRootSlot.CintSlot()
** $Id: TGQt.cxx 26689 2008-12-06 07:03:04Z brun $ this=0x1782060 Symbol font family found: Standard Symbols L Error in <TUnixSystem::DynamicPathName>: QtRootGui[.so | .sl | .dl | .a | .dll] does not exist in
$(ROOTSYS)/cint/include:.:/afs/cern.ch/sw/lcg/app/releases/ROOT/5.22.00c /slc4_amd64_gcc34/root/lib::/afs/cern.ch/lhcb/software/DEV/DAVINCI/DAVIN CI_v24r1p1/InstallArea/slc4_amd64_gcc34/lib:/afs/cern.ch/lhcb/software/r eleases/HLT/HLT_v6r6/InstallArea/slc4_amd64_gcc34/lib:/afs/cern.ch/lhcb/ software/releases/LHCB/LHCB_v27r5/InstallArea/slc4_amd64_gcc34/lib:/afs/ cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r3/InstallArea/slc4_amd64_gcc34 /lib:/afs/cern.ch/lhcb/software/releases/REC/REC_v7r5/InstallArea/slc4_a md64_gcc34/lib:/afs/cern.ch/lhcb/software/releases/PHYS/PHYS_v8r8/Instal lArea/slc4_amd64_gcc34/lib:/afs/cern.ch/lhcb/software/releases/ANALYSIS/ ANALYSIS_v3r8/InstallArea/slc4_amd64_gcc34/lib:/afs/cern.ch/lhcb/softwar e/releases/LBCOM/LBCOM_v7r5/InstallArea/slc4_amd64_gcc34/lib:/afs/cern.c h/lhcb/software/releases/COMPAT/COMPAT_v1r2/CompatSys/slc4_amd64_gcc34/l ib:/afs/cern.ch/sw/lcg/external/qt/4.4.2/slc4_amd64_gcc34/lib:/afs/cern. ch/sw/lcg/external/castor/2.1.7-24/slc4_amd64_gcc34/us  

r/lib64:/afs/cern.ch/sw/lcg/external/Grid/myproxy/3.6-VDT-1.6.0/slc4_amd 64_gcc34/globus/lib:/afs/cern.ch/sw/lcg/external/Grid/gfal/1.11.8-2/slc4 _amd64_gcc34/lib64:/afs/cern.ch/sw/lcg/external/tcmalloc/1.3/slc4_amd64_

gcc34/lib:/afs/cern.ch/sw/lcg/app/releases/RELAX/RELAX_1_1_13b/slc4_amd6
4_gcc34/lib:/afs/cern.ch/sw/lcg/app/releases/POOL/POOL_2_9_1/slc4_amd64_
gcc34/lib:/afs/cern.ch/sw/lcg/external/pcre/4.4/slc4_amd64_gcc34/lib:/af
s/cern.ch/sw/lcg/external/HepMC/2.03.09/slc4_amd64_gcc34/lib:/afs/cern.c h/sw/lcg/external/Grid/globus/4.0.3-VDT-1.6.0/slc4_amd64_gcc34/globus/li b:/afs/cern.ch/sw/lcg/external/oracle/10.2.0.4-full/slc4_amd64_gcc34/lib :/afs/cern.ch/sw/lcg/external/sqlite/3.6.8/slc4_amd64_gcc34/lib:/afs/cer
n.ch/sw/lcg/app/releases/COOL/COOL_2_8_1/slc4_amd64_gcc34/lib:/afs/cern.
ch/sw/lcg/app/releases/CORAL/CORAL_2_3_1/slc4_amd64_gcc34/lib:/afs/cern.
ch/sw/lcg/external/clhep/1.9.4.2/slc4_amd64_gcc34/lib:/afs/cern.ch/sw/lc
g/external/XercesC/2.8.0/slc4_amd64_gcc34/lib:/afs/ce  

rn.ch/sw/lcg/external/uuid/1.38/slc4_amd64_gcc34/lib:/afs/cern.ch/sw/lcg /external/GSL/1.10/slc4_amd64_gcc34/lib:/afs/cern.ch/sw/lcg/external/Boo st/1.39.0_python2.5/slc4_amd64_gcc34/lib:/afs/cern.ch/sw/lcg/app/release s/ROOT/5.22.00c/slc4_amd64_gcc34/root/lib:/afs/cern.ch/sw/lcg/external/G rid/dm-util/1.7.6-1/slc4_amd64_gcc34/lib64:/afs/cern.ch/sw/lcg/external/ Grid/cgsi-gsoap/1.3.3-1/slc4_amd64_gcc34/lib64:/afs/cern.ch/sw/lcg/exter nal/Grid/voms-api-cpp/1.8.9-2/slc4_amd64_gcc34/lib64:/afs/cern.ch/sw/lcg /external/fftw3/3.1.2/slc4_amd64_gcc34/lib:/afs/cern.ch/sw/lcg/external/ Grid/LFC/1.7.2-1sec/slc4_amd64_gcc34/lib64:/afs/cern.ch/sw/lcg/external/ Grid/lcg-dm-common/1.7.2-1sec/slc4_amd64_gcc34/lib64:/afs/cern.ch/sw/lcg /external/Grid/voms-api-c/1.8.9-2/slc4_amd64_gcc34/lib64:/afs/cern.ch/sw /lcg/external/Python/2.5/slc4_amd64_gcc34/lib:/afs/cern.ch/sw/lcg/app/re leases/ROOT/5.22.00c/slc4_amd64_gcc34/root/lib:/afs/cern.ch/sw/lcg/app/r eleases/ROOT/5.22.00c/slc4_amd64_gcc34/root/cint/cint  /stl
TClass::TClass:0: RuntimeWarning: no dictionary for class QObject is available
>>> termAddress =

sip.wrapinstance(ROOT.AddressOf(terminator)[0],QObject)
>>> QObject.connect(application,

SIGNAL("lastWindowClosed()"),termAddress ,SLOT("Terminate()")) True
>>>

The problen is if I want to make a plots I can not because the library is missing.
I installed the qtRoot layer. I followed the instructions from http://root.bnl.gov/QtRoot/How2Install4Unix.html link. The installation it was ok, but the my application is crash.

Can you recompile root on afs and add the qtRoot?

Thanks,
Zoltan



Qt-Root-l mailing list
Qt-Root-l_at_lists.bnl.gov
https://lists.bnl.gov/mailman/listinfo/qt-root-l Received on Wed Aug 26 2009 - 15:45:36 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 26 2009 - 17:50:02 CEST