RE: GLSAViewer with qt

From: Fine, Valeri <fine_at_bnl.gov>
Date: Wed, 14 Jan 2009 11:28:10 -0500


Dear Maria,

Many GL<bla> features provided by ROOT, those rely on X11 interface directly, were not implemented under Qt-layer, because nobody said yet it is needed.

On the other hand, QtROOT provides 2 other Qt-based OpenGL ROOT-plugins

See:
http://pos.sissa.it//archive/conferences/050/023/ACAT_023.pdf See: http://root.bnl.gov/QtRoot/htmldoc/TQtGLViewerWidget.html also

To install QtRoot with OpenGL Qt-compliant plugins just download and invoke the script:
http://root.bnl.gov/QtRoot/How2Install4Unix.html This script works for the Windows platforms as well.

Bear in mind that with Qt-layer in place one can use any Qt widget rather those two INSTALL_QTROOT script installs for you.

One needs very ROOT plug-in to render the very ROOT 3D objects. To render non-ROOT object one can use any
http://doc.trolltech.com/4.4/qtopengl.html classes and third party Qt QtGL-based packages directly

You can find the some working example posted:

See: http://root.cern.ch/phpBB2/viewtopic.php?t=6753&highlight=qt4

     http://root.cern.ch/phpBB2/viewtopic.php?t=5412&highlight=opengl

Hope this helps,

Best Regards

                         Valeri Fine


Brookhaven National Laboratory
Upton, NY 11973, USA
Phone: +1 631 344 7806
Fax: +1 631 344 4206
E-mail: fine_at_bnl.gov

> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch]
On
> Behalf Of Maria.Martinez_at_mib.infn.it
> Sent: Wednesday, January 14, 2009 9:17 AM
> To: roottalk_at_lxbuild091.cern.ch
> Subject: [ROOT] GLSAViewer with qt
>
> Hello,
>
> It is not possible to open a TGLSAViewer when the qtlayer active?
>
> I have the following line in my .rootrc
>
> Gui.Backend: qt
>
> and when I try to open a TGLSAViewer, root crashes with the following
> trace:
>
>
> #1 0x04238233 in __waitpid_nocancel () from /lib/libc.so.6
> #2 0x041d659b in do_system () from /lib/libc.so.6
> #3 0x00ab403d in system () from /lib/libpthread.so.0
> #4 0x002fce4d in TUnixSystem::Exec () from
> /usr/local/root/lib/libCore.so.5.20
> #5 0x003021e1 in TUnixSystem::StackTrace () from
> /usr/local/root/lib/libCore.so.5.20
> #6 0x00302e6d in TUnixSystem::DispatchSignals () from
> /usr/local/root/lib/libCore.so.5.20
> #7 0x00302f6d in SigHandler () from

/usr/local/root/lib/libCore.so.5.20
> #8 0x002f9b42 in sighandler () from

/usr/local/root/lib/libCore.so.5.20
> #9 <signal handler called>
> #10 0x019769b3 in TGQt::wid () from /usr/local/root/lib/libGQt.so
> #11 0x0196e3e8 in TGQt::GetWindowAttributes () from
> /usr/local/root/lib/libGQt.so
> #12 0x0218c2fa in TGFrame::TGFrame () from
/usr/local/root/lib/libGui.so
> #13 0x027e6a3d in TGLWidget::TGLWidget () from
> /usr/local/root/lib/libRGL.so
> #14 0x027e7ae3 in TGLWidget::Create () from
/usr/local/root/lib/libRGL.so
> #15 0x027e7c85 in TGLWidget::Create () from
/usr/local/root/lib/libRGL.so
> #16 0x027ab608 in TGLSAViewer::CreateFrames () from
> /usr/local/root/lib/libRGL.so
> #17 0x027abcbc in TGLSAViewer::TGLSAViewer () from
> /usr/local/root/lib/libRGL.so
> #18 0x028a6be1 in G__G__GL_494_0_6 () from
/usr/local/root/lib/libRGL.so
> #19 0x00b503e6 in Cint::G__ExceptionWrapper () from
> /usr/local/root/lib/libCint.so.5.20
> #20 0x00c04da8 in G__execute_call () from
> /usr/local/root/lib/libCint.so.5.20
> #21 0x00c05e56 in G__call_cppfunc () from
> /usr/local/root/lib/libCint.so.5.20
> #22 0x00bdd31c in G__interpret_func () from
> /usr/local/root/lib/libCint.so.5.20
> #23 0x00bcccb4 in G__getfunction () from
> /usr/local/root/lib/libCint.so.5.20
> #24 0x00bfcfe2 in G__new_operator () from
> /usr/local/root/lib/libCint.so.5.20
> #25 0x00ba7be1 in G__getexpr () from

/usr/local/root/lib/libCint.so.5.20
> #26 0x00b911bf in G__define_var () from
> /usr/local/root/lib/libCint.so.5.20
> #27 0x00c2c4f2 in G__exec_statement () from
> /usr/local/root/lib/libCint.so.5.20
> #28 0x00b8a712 in G__exec_tempfile_core () from
> /usr/local/root/lib/libCint.so.5.20
> #29 0x00b8a9e9 in G__exec_tempfile_fp () from
> /usr/local/root/lib/libCint.so.5.20
> #30 0x00c3b73f in G__process_cmd () from
> /usr/local/root/lib/libCint.so.5.20
> #31 0x002ecb04 in TCint::ProcessLine () from
> /usr/local/root/lib/libCore.so.5.20
> #32 0x0021a6b9 in TApplication::ProcessLine () from
> /usr/local/root/lib/libCore.so.5.20
> #33 0x00957938 in TRint::HandleTermInput () from
> /usr/local/root/lib/libRint.so.5.20
> #34 0x00957315 in TTermInputHandler::Notify () from
> /usr/local/root/lib/libRint.so.5.20
> #35 0x00959944 in TTermInputHandler::ReadNotify () from
> /usr/local/root/lib/libRint.so.5.20
> #36 0x003003a9 in TUnixSystem::CheckDescriptors () from
> /usr/local/root/lib/libCore.so.5.20
> #37 0x00300709 in TUnixSystem::DispatchOneEvent () from
> /usr/local/root/lib/libCore.so.5.20
> #38 0x0027cfc1 in TSystem::InnerLoop () from
> /usr/local/root/lib/libCore.so.5.20
> #39 0x0027fcdb in TSystem::Run () from
/usr/local/root/lib/libCore.so.5.20
> #40 0x00218347 in TApplication::Run () from
> /usr/local/root/lib/libCore.so.5.20
> #41 0x00959424 in TRint::Run () from

/usr/local/root/lib/libRint.so.5.20
> #42 0x08048d85 in main ()
>
>
>
> Thank you
Received on Wed Jan 14 2009 - 17:28:18 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 15 2009 - 23:50:01 CET