RE: ROOT Qt Manual Example

From: Fine, Valeri <>
Date: Thu, 20 Apr 2006 12:38:37 -0400

Hi Valeri,

That was the problem. I had not gotten the other half of the Qt package. The manual example works, now I'll try to get my Qt application with ROOT widgets to work.

Mmmm, :-( It should not be a problem; the Manual's examples should work from the CERN distribution alone. Yesterday I did check it. I'll re-check it again.

Anyway, let me know just you have any news.

Best regards, Valeri

Thanks for your help.

-----Original Message-----

From: Fine, Valeri [] Sent: Wed 4/19/2006 5:54 PM
To: Lee, Kerry T. (JSC-SF)[UHCL]; Subject: RE: [ROOT] ROOT Qt Manual Example

Hello Kerry,

The Qt package is artificially split by two.

See <>

Install it in full (all Hello World examples are included there too) <> <>

Let me know whether it helps

Best Regards

                         Valeri Fine

Brookhaven National Laboratory

Upton, NY 11973, USA

Phone: +1 631 344 7806

Fax: +1 631 344 4206

E-mail: <>

-----Original Message-----

[] On Behalf Of Lee, Kerry T. (JSC-SF)[UHCL]
Sent: Wednesday, April 19, 2006 5:29 PM
Subject: [ROOT] ROOT Qt Manual Example

Dear ROOT team,

I am using ROOT 5.11.02 on CentOS (linux) compiled with gcc 3.4.4.

I have tried to duplicate the Qt example in the manual. The output of qmake and make are below.

[kerrylee_at_jsc-sf-2148872 MyQButtonEx]$ qmake WARNING: Failure to find: Dict.cxx
[kerrylee_at_jsc-sf-2148872 MyQButtonEx]$ make g++ -c -pipe -Wall -W -O2 -g -pipe -m32 -march=i386 -mtune=pentium4
-I/usr/lib/qt-3.3/mkspecs/default -I. -I"/include"
-I"/home/root/gcc/5.11.00/root/include" -I/usr/lib/qt-3.3/include -o
TMyQButton.o TMyQButton.cxx
/home/root/gcc/5.11.00/root/bin/rootcint -f Dict.cxx -c
-DQT_VERSION=0x30000 -I/usr/lib/qt-3.3/mkspecs/default -I. -I"/include"
-I"/home/root/gcc/5.11.00/root/include" -I/usr/lib/qt-3.3/include
TMyQButton.h LinkDef.h
g++ -c -pipe -Wall -W -O2 -g -pipe -m32 -march=i386 -mtune=pentium4
-I/usr/lib/qt-3.3/mkspecs/default -I. -I"/include"
-I"/home/root/gcc/5.11.00/root/include" -I/usr/lib/qt-3.3/include -o
Dict.o Dict.cxx
rm -f
g++ -shared -Wl,-soname, -o TMyQButton.o Dict.o -L/usr/lib/qt-3.3/lib -L/lib -lGQt -lQtGui
-L/home/root/gcc/5.11.00/root/lib -lCore -lCint -lHist -lGraf -lGraf3d
-lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lGui -pthread -lm
-ldl -rdynamic -lTable -lqt-mt

/usr/bin/ld: cannot find -lQtGui
collect2: ld returned 1 exit status
make: *** [] Error 1

I can omit -lQtGui from the last command and there are no errors, but I cannot load the created library into root. I have also searched for the libQtGui and it does not exist despite Qt being installed correctly.

Any help is appreciated.

Kerry Received on Thu Apr 20 2006 - 18:39:43 MEST

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