Qt port of ROOT

Hi,

I am trying the QT port of ROOT and I have some questions.

1./ How much is that port “officical”?
(I do not find a link to the Qt port site on the official site)

2./ Why is so hard (slow and uncertain) to reach the BNL site?

3./ Are there any additional docs around this port?
I found some differences.
The "official’ tutorials runs fine, but with my file it gives the error message

[quote]root [2] .L TDocFile.C
Error: cannot open file “Riostream.h” FILE:F:\ROOT\tutorials\TDocFile.C LINE:8
*** Interpreter error recovered ***[/quote]
for the line

Formerly I was told that these lines must be present for compilation and that they need not be protected with conditionals when interpreted, and it really worked with the GTK port. Does it work differently with the QT port?

3./ I want to test my class with a test script like

[code]{// Check if TDocFile is already loaded
if (!TClass::GetDict(“TDocFile”))
{
gROOT->ProcessLine(".L TDocFile.C++");
}

// Use the Class
TDocFile *DF = new TDocFile(“Si_1s_3000.dat”);
TString S;
DF->GetCurrentLine(S);
printf("%s\n", S);
}[/code]

However, I receive error message like

[quote]root [0] .x TDocFileTest.C
Info in TWinNTSystem::ACLiC: creating shared library F:\ROOT\tutorials\TDocFil
e_C.dll
’rootcint’ is not recognized as an internal or external command,
operable program or batch file.
Error in : Dictionary generation failed!
Info in : Invoking compiler to check macro’s validity
TDocFile.C
F:\ROOT\tutorials\TDocFile.C(0) : fatal error C1083: Cannot open include file: ‘
w32pragma.h’: No such file or directory
Error: Symbol TDocFile is not defined in current scope FILE:F:\ROOT\tutorials\T
DocFileTest.C LINE:8
Error: Symbol TDocFile is not defined in current scope FILE:F:\ROOT\tutorials\T
DocFileTest.C LINE:8
Error: type TDocFile not defined FILE:F:\ROOT\tutorials\TDocFileTest.C LINE:8
Warning: Automatic variable TDocFileDF is allocated FILE:F:\ROOT\tutorials\TDoc
FileTest.C LINE:8
Error: Undeclared variable TDocFile
DF FILE:F:\ROOT\tutorials\TDocFileTest.C LIN
E:8
*** Interpreter error recovered ***[/quote]

This latter problem was already present in the GTK port, too, but with different error messages. Do I misinterpret something?

Regards

Janos

1[quote]./ How much is that port “officical”?
(I do not find a link to the Qt port site on the official site) [/quote]

The “qt” implementation is supported by Valeri Fine from BNL/STAR.
It is an implementation if TVirtualX, in the same way that we have
an implementation of TVirtualX for X11 and Windows.

The current implementation has still some problems. We hope that
these problems will be gradually eliminated by Valeri.

I know that this is a frequent complaint. The BNL site seems to be located on a machine with network access problems.

Concerning your other questions, please send your script TDocFile.C.
We cannot do much without this file.

Rene[/code][/quote]

Hi,

Since I am still beginner with ROOT, and also experience problems with the Qt port, I would like to install them simultaneously. Is it possible?

(I mean: I install one of them, them rename the install directory, install the other one and then make active the requested version through renaming the directories correspondingly. I guess that the environment variables etc. are compatible with each other. Is there something against this?)

Regards

Janos

You don’t need to have two different installations. At run time you can decide which one to use.
Modify your $ROOTSYS/etc/system.rootrc file
or create a .rootrc file with the two following lines
Gui.Backend: qt
Gui.Factory: qt

With these two lines active you will run with Qt. If instead you have
#Gui.Backend: qt
#Gui.Factory: qt

you will run with X11

Rene

From another mail I understand that you are running under Windows.
The Qt version is currently not running under Windows. valeri Fine is working on this port.

Rene

The current status of Qt port can be found on root.bnl.gov

[quote=“jvegh”]Hi,

I am trying the QT port of ROOT and I have some questions.

1./ How much is that port “officical”?
(I do not find a link to the Qt port site on the official site)

2./ Why is so hard (slow and uncertain) to reach the BNL site?

3./ Are there any additional docs around this port?
I found some differences.
The "official’ tutorials runs fine, but with my file it gives the error message

[quote]root [2] .L TDocFile.C
Error: cannot open file “Riostream.h” FILE:F:\ROOT\tutorials\TDocFile.C LINE:8
*** Interpreter error recovered ***[/quote]
for the line

Formerly I was told that these lines must be present for compilation and that they need not be protected with conditionals when interpreted, and it really worked with the GTK port. Does it work differently with the QT port?

3./ I want to test my class with a test script like

[code]{// Check if TDocFile is already loaded
if (!TClass::GetDict(“TDocFile”))
{
gROOT->ProcessLine(".L TDocFile.C++");
}

// Use the Class
TDocFile *DF = new TDocFile(“Si_1s_3000.dat”);
TString S;
DF->GetCurrentLine(S);
printf("%s\n", S);
}[/code]

However, I receive error message like

[quote]root [0] .x TDocFileTest.C
Info in TWinNTSystem::ACLiC: creating shared library F:\ROOT\tutorials\TDocFil
e_C.dll
’rootcint’ is not recognized as an internal or external command,
operable program or batch file.
Error in : Dictionary generation failed!
Info in : Invoking compiler to check macro’s validity
TDocFile.C
F:\ROOT\tutorials\TDocFile.C(0) : fatal error C1083: Cannot open include file: ‘
w32pragma.h’: No such file or directory
Error: Symbol TDocFile is not defined in current scope FILE:F:\ROOT\tutorials\T
DocFileTest.C LINE:8
Error: Symbol TDocFile is not defined in current scope FILE:F:\ROOT\tutorials\T
DocFileTest.C LINE:8
Error: type TDocFile not defined FILE:F:\ROOT\tutorials\TDocFileTest.C LINE:8
Warning: Automatic variable TDocFileDF is allocated FILE:F:\ROOT\tutorials\TDoc
FileTest.C LINE:8
Error: Undeclared variable TDocFile
DF FILE:F:\ROOT\tutorials\TDocFileTest.C LIN
E:8
*** Interpreter error recovered ***[/quote]

This latter problem was already present in the GTK port, too, but with different error messages. Do I misinterpret something?

Regards

Janos[/quote]

Hekllo Janos
I was not aware about the trouble to reach the BNL site?
Please, send me any E-mail just you experience the problem. That MUST be resolved.

[quote=“jvegh”]Hi,

I am trying the QT port of ROOT and I have some questions.

3./ Are there any additional docs around this port?
I found some differences.
The "official’ tutorials runs fine, but with my file it gives the error message

This latter problem was already present in the GTK port, too, but with different error messages. Do I misinterpret something?

Regards

Janos[/quote]

Hello Janos,

It sounds you have some ROOT misconfiguration.

Therefore I would like to know how you installed ROOT (Qt / Gdk) . In particular, I’d like to make sure you did not mix several different ROOT versions on your PATH (or something like this)

Which version of ROOT (GDK) you tested. The binary distribution for (Qt) Windows was done against of ROOT 4.00.08.
Some problem may be related to that ROOT version rather to the Qt layer.

Anyway, can you send me a short script to reproduce the problem.
( fine@bnl.gov )

Thank you