Hello Zoltan,
> Maybe you will have a other person how use PyQt and
> qtRoot and PyQt link the wrong qt version.
I've linked your instruction from my Web page:
http://root.bnl.gov/QtRoot/How2Install4Unix.html http://root.bnl.gov/QtRoot/How2Install4Unix.html#pyqtroot http://root.bnl.gov/QtRoot/PyQtRoot.html
Hope it helps
Best Regards
Valeri Fine
> -----Original Message-----
> From: Zoltan MATHE [mailto:Zoltan.Mathe_at_ucdconnect.ie]
> Sent: Tuesday, July 28, 2009 8:39 AM
> To: Fine, Valeri
> Cc: Riemann, Robert; roottalk_at_root.cern.ch
> Subject: Re: [ROOT] ruby with root + qt
>
> Hello Valeri,
> I found the problem. I followed the instructions, but I forgot to
> recompile pyQt with qt4.5.2. That was the problem. PyQT packages
linked
> the qt4.4.2.
> I think good if we have one sentence about the pyqt in
> http://root.bnl.gov/QtRoot/How2Install4Unix.html#x11short page. Maybe
> you will have a other person how use PyQt and qtRoot and PyQt link the
> wrong qt version.
> Thanks for your helps!
> Zoltan
> Fine, Valeri wrote:
> > Hello Zoltan,
> >
> >
> >> Hello Valeri,
> >> I tried to use the new version ROOT and qtRoot, but It dosn't work.
> >> I get the following error message:
> >> [pclhcb43] /scratch/zmathe/local > python qtexample.py
> >> Executable 'root.exe' was compiled with Qt 4.5.2, found Qt 4.4.2.
> >>
> >
> > It seems to me the message above is clear.
> >
> > It says, that that you had compiled QtRoot using Qt 4.5.2 and you
> attempted to invoke ROOT against Qt 4.4.2.
> >
> >
> >> I used INSTALL_QTROOT.sh scripts from
> >> . . .
> >> http://root.bnl.gov/QtRoot/INSTALL_QTROOT.sh
> >>
> >
> > Did you use it "as is " or had customized the script? If the later
is
> correct I would like to see the "diff" file. The page
> http://root.bnl.gov/QtRoot/How2Install4Unix.html#x11short that
describes
> the installation, says,
> > " . . .
> > 1. Set the package environment. To do that you need to find and
select
> one of the 3 shell scripts created by the "Full Installation"
> > source set_environment.csh
> > source set_environment.sh # this script is Ok for Cygwin
> environment as well)
> > source set_environment.tcsh
> > . . . "
> > Did you perform that step ?
> >
> >
> >> I recompiled the root. I used: ./configure
> >> --prefix=/scratch/zmathe/local/root --enable-python --enable-qt
> >>
> >
> > Mmm , the step above is REDUNDANT, The
> http://root.bnl.gov/QtRoot/How2Install4Unix.html
> <http://root.bnl.gov/QtRoot/How2Install4Unix.html> suggests a few
ways to
> use the script to compliment the existing ROOT installation made with
no
> "--enable-qt" option.
> >
> > Did you use the script "as is" or you customized it? I am wondering
if
> you have built QtRoot twice and each time against of the different
Qt
> version.
> >
> > I really would like to see what you did "step -by-step" and I would
like
> to see your environment variables for each of your step too.
> >
> > Please make sure
> >
> > 1. You have only version of Qt on your LD_LIBRARY_PATH
> >
> > 2. There is ONLY one version of the libGQt.so shared library.
> >
> > . . . .
> >
> >
> >> Can you help me? I have no idea what I am doing wrong.
> >>
> >
> > I can not guess what you did wrong. Please tell me what you did
"step-
> by-step". This way I'll be able to spot what you did wrong. ( may be
you
> should send me a private message )
> >
> >
> >> Before I used ROOT 5.22, QtRoot and qt 4.4.2 and It is worked.
> >>
> >
> > Does that Qt 4.4.2 is still installed on your computer? Do you have
Qt
> 4.4.2 AND Qt 4.5.2 on your computer installed simultaneously? How did
you
> separate the installations?
> >
> > Valeri
> >
> >
> > Fine, Valeri wrote:
> >
> >> Hello Robert,
> >>
> >> From your other post
> http://root.cern.ch/root/roottalk/roottalk09/0691.html
> >>
> >> I learned http://pastie.org/558537 your way to build ROOT:
> >>
> >> ./configure --prefix=/usr/local --enable-ruby --enable-python
--enable-
> explicitlink --enable-gsl-shared --enable-rpath
> >>
> >> It indicates that you do not build the Qt-layer due lack of the
> optional "--enable-qt" build parameters.
> >> That means you should do that first.
> >> The recommended way is
> http://root.bnl.gov/QtRoot/How2Install4Unix.html#complement
> <http://root.bnl.gov/QtRoot/How2Install4Unix.html#complement>
> >> Hope this helps, Valeri
> >>
> >>
> >> ________________________________
> >>
> >> From: Riemann, Robert [mailto:robert.riemann_at_physik.hu-berlin.de]
> >> Sent: Thu 7/23/2009 2:34 PM
> >> To: Fine, Valeri
> >> Cc: roottalk_at_root.cern.ch; Zoltan.Mathe_at_ucdconnect.ie
> >> Subject: Re: [ROOT] ruby with root + qt
> >>
> >>
> >>
> >> I tested the new pyroot example, but the program aborted with the
> following
> >> message:
> >>
> >>
> >>
> >>
> >>> python qt3example.py
> >>>
> >>>
> >> Traceback (most recent call last):
> >> File "qt3example.py", line 47, in <module>
> >> terminator = ROOT.TQtRootSlot.CintSlot()
> >> File "lib/ROOT.py", line 345, in __getattr1
> >> return getattr( self, name )
> >> File "lib/ROOT.py", line 367, in __getattr2
> >> attr = _root.LookupRootEntity( name )
> >> AttributeError: TQtRootSlot
> >>
> >> I published qt3example.py on a code-snippet-wiki
> >> (editable without login):
> >> http://refactory.org/s/using_root_with_python_and_qt4/view/1
> >>
> >> Maybe I find some time on the weekend to read something about the
qt-
> layer
> >> configs.
> >>
> >> Greets Robert
> >>
> >>
> >> Am Donnerstag, 23. Juli 2009 19:44:55 schrieb Fine, Valeri:
> >>
> >>
> >>> Hello Robert,
> >>>
> >>> I have neither Python nor PyQt installed to debug PyROOT related
> issue.
> >>>
> >>>
> >>>
> >>>> I tried to translate the python+qt example from the userguide to
> ruby.
> >>>>
> >>>>
> >>>>
> >>>>> I had to add one modification (line 17, actually in comments) to
get
> >>>>>
> >>>>>
> >>> it
> >>>
> >>>
> >>>
> >>>> working, but the program doesn't behave as well as the python-
> version.
> >>>>
> >>>>
> >>> From the first glance the example:
> >>> ftp://root.cern.ch/root/doc/19PythonRuby.pdf is for Qt3.
> >>>
> >>> That was fixed by Zoltan Mathe (See his E-mail below)
> >>>
> >>>
> >>>
> >>>>> -----Original Message-----
> >>>>> From: Zoltan MATHE [mailto:Zoltan.Mathe_at_ucdconnect.ie]
> >>>>> Sent: Wednesday, June 10, 2009 7:50 AM
> >>>>> To: Fine, Valeri
> >>>>> Cc: WLavrijsen_at_lbl.gov; Rene Brun
> >>>>> Subject: Re: [Fwd: root and qt problem]
> >>>>>
> >>>>> Hello, :)
> >>>>> I changed the qtexample.py, because it is implemented qt3. I
> attached
> >>>>>
> >>>>> the file. But it still dosn't work.
> >>>>>
> >>>>>
> >>> ....
> >>>
> >>> I've submitted his patch to CERN.
> >>>
> >>> Index: qtexample.py
> >>>
This archive was generated by hypermail 2.2.0 : Thu Jul 30 2009 - 23:50:02 CEST