From: Alexander W. <ale...@gm...> - 2013-09-30 20:18:23
|
Hi, I made some investigation to found source of troubles for linking Oculars, satellites and Telescope Control plugins on Windows with Qt5. In all those plugins has been used OpenGL functions like glColor3f(), glPopMatrix(), etc. which not safe for running now within Qt-app. We should write wrapper for those functions or add some black magic around QOpenGLFunctions_X_Y & QOpenGLContext. -- With best regards, Alexander |
From: Reaves, T. <tr...@si...> - 2013-10-01 01:15:06
|
Where did you read that information? I'm not sure it's correct. http://qt-project.org/doc/qt-5.1/qtgui/qabstractopenglfunctions.html Seems to idicate that classes using OpenGL should extend one of the subclasses. I see that StelModules extends QOpenGLFunctions, but, it does not provide all of the functions used. I believe QOpenGLFunctions_1_2 does. I've added QOpenGLFunctions_1_2 to the three plugins you list; please try to compile and see if that has any impact. On Mon, Sep 30, 2013 at 4:18 PM, Alexander Wolf <ale...@gm...>wrote: > Hi, > > I made some investigation to found source of troubles for linking Oculars, > satellites and Telescope Control plugins on Windows with Qt5. In all those > plugins has been used OpenGL functions like glColor3f(), glPopMatrix(), > etc. which not safe for running now within Qt-app. We should write wrapper > for those functions or add some black magic around QOpenGLFunctions_X_Y & > QOpenGLContext. > > -- > With best regards, Alexander > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk > _______________________________________________ > Stellarium-pubdevel mailing list > Ste...@li... > https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel > > |
From: Barry G. <bar...@ho...> - 2013-10-01 02:32:19
|
Hi Tim I have had a chance to build 6269 in Windows XP If I include oculars the build compiles OK but as soon as I select a star and press the oculars button the program crashes with a problem in libstelmain.dll If I include oculars and satellites the program fails to link as previously If I include oculars and telescopes the program compiles OK but if the telescope plugin is set to true in the config.ini thhe program crashes immediately with an error in the libstelmain.dll. If false program will load without the plug in. Barry Date: Mon, 30 Sep 2013 21:14:58 -0400 From: tr...@si... To: ste...@li... Subject: Re: [Stellarium-pubdevel] Oculars, Satellites and Telescope Control plugins Where did you read that information? I'm not sure it's correct. http://qt-project.org/doc/qt-5.1/qtgui/qabstractopenglfunctions.html Seems to idicate that classes using OpenGL should extend one of the subclasses. I see that StelModules extends QOpenGLFunctions, but, it does not provide all of the functions used. I believe QOpenGLFunctions_1_2 does. I've added QOpenGLFunctions_1_2 to the three plugins you list; please try to compile and see if that has any impact. On Mon, Sep 30, 2013 at 4:18 PM, Alexander Wolf <ale...@gm...> wrote: Hi, I made some investigation to found source of troubles for linking Oculars, satellites and Telescope Control plugins on Windows with Qt5. In all those plugins has been used OpenGL functions like glColor3f(), glPopMatrix(), etc. which not safe for running now within Qt-app. We should write wrapper for those functions or add some black magic around QOpenGLFunctions_X_Y & QOpenGLContext. -- With best regards, Alexander ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ Stellarium-pubdevel mailing list Ste...@li... https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ Stellarium-pubdevel mailing list Ste...@li... https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel |
From: Reaves, T. <tr...@si...> - 2013-10-01 11:53:59
|
Well, my understanding is, that's progress. :D I could have missed a file in the satellites plugin, and we may need the code Alex reverted on the QT5_USE_MODULE. On Mon, Sep 30, 2013 at 10:32 PM, Barry Gerdes <bar...@ho...>wrote: > Hi Tim > I have had a chance to build 6269 in Windows XP > If I include oculars the build compiles OK but as soon as I select a > star and press the oculars button the program crashes with a problem in > libstelmain.dll > If I include oculars and satellites the program fails to link as previously > If I include oculars and telescopes the program compiles OK but if the > telescope plugin is set to true in the config.ini thhe program crashes > immediately with an error in the libstelmain.dll. If false program will > load without the plug in. > > Barry > > ------------------------------ > Date: Mon, 30 Sep 2013 21:14:58 -0400 > From: tr...@si... > To: ste...@li... > Subject: Re: [Stellarium-pubdevel] Oculars, Satellites and Telescope > Control plugins > > > Where did you read that information? I'm not sure it's correct. > > http://qt-project.org/doc/qt-5.1/qtgui/qabstractopenglfunctions.html > Seems to idicate that classes using OpenGL should extend one of the > subclasses. I see that StelModules extends QOpenGLFunctions, but, it does > not provide all of the functions used. I believe QOpenGLFunctions_1_2 does. > > I've added QOpenGLFunctions_1_2 to the three plugins you list; please try > to compile and see if that has any impact. > > > On Mon, Sep 30, 2013 at 4:18 PM, Alexander Wolf <ale...@gm...>wrote: > > Hi, > > I made some investigation to found source of troubles for linking Oculars, > satellites and Telescope Control plugins on Windows with Qt5. In all those > plugins has been used OpenGL functions like glColor3f(), glPopMatrix(), > etc. which not safe for running now within Qt-app. We should write wrapper > for those functions or add some black magic around QOpenGLFunctions_X_Y & > QOpenGLContext. > > -- > With best regards, Alexander > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk > _______________________________________________ > Stellarium-pubdevel mailing list > Ste...@li... > https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance Free Intel webinars can help you > accelerate application performance. Explore tips for MPI, OpenMP, advanced > profiling, and more. Get the most from the latest Intel processors and > coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > > _______________________________________________ Stellarium-pubdevel > mailing list Ste...@li... > https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > _______________________________________________ > Stellarium-pubdevel mailing list > Ste...@li... > https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel > > |
From: Alexander W. <ale...@gm...> - 2013-10-01 11:59:23
|
2013/10/1 Reaves, Timothy <tr...@si...> > Well, my understanding is, that's progress. :D > > I could have missed a file in the satellites plugin, and we may need the > code Alex reverted on the QT5_USE_MODULE. > I think you should revert last changes because those changes give crashes on linux too. -- With best regards, Alexander |
From: Reaves, T. <tr...@si...> - 2013-10-01 12:03:42
|
Well, as it at least allows Windows to link, why not try to find out why it's crashing, and fix that? I'm sure the issue is our very out-dated cmake files. Were is the crash? Is it in an OpenGL call? On Tue, Oct 1, 2013 at 7:59 AM, Alexander Wolf <ale...@gm...>wrote: > > 2013/10/1 Reaves, Timothy <tr...@si...> > > Well, my understanding is, that's progress. :D >> >> I could have missed a file in the satellites plugin, and we may need the >> code Alex reverted on the QT5_USE_MODULE. >> > > I think you should revert last changes because those changes give crashes > on linux too. > > -- > With best regards, Alexander > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > _______________________________________________ > Stellarium-pubdevel mailing list > Ste...@li... > https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel > > |
From: Alexander W. <ale...@gm...> - 2013-10-01 12:11:11
|
2013/10/1 Reaves, Timothy <tr...@si...> > Well, as it at least allows Windows to link, why not try to find out why > it's crashing, and fix that? I'm sure the issue is our very out-dated > cmake files. > I think you are wrong. > > Were is the crash? Is it in an OpenGL call? > For example I can catch crash in the Oculars plugin. Of course OpenGL was call: Program received signal SIGSEGV, Segmentation fault. 0x0000000000762b49 in Oculars::draw(StelCore*) () What about OpenGLContext for this call? -- With best regards, Alexander |
From: Reaves, T. <tr...@si...> - 2013-10-01 12:38:03
|
As we've found out (Alex & I), this is working. At least on linux. The OpenGL subsystem needs to be initialized, and once I added that, the crashes disappear. Alex is trying Windows now. This would just be a stop-gap, assuming it works on Windows. We need to replace all non-ES OpenGL code. On Tue, Oct 1, 2013 at 8:10 AM, Alexander Wolf <ale...@gm...>wrote: > > 2013/10/1 Reaves, Timothy <tr...@si...> > >> Well, as it at least allows Windows to link, why not try to find out why >> it's crashing, and fix that? I'm sure the issue is our very out-dated >> cmake files. >> > > I think you are wrong. > > >> >> Were is the crash? Is it in an OpenGL call? >> > > For example I can catch crash in the Oculars plugin. Of course OpenGL was > call: > Program received signal SIGSEGV, Segmentation fault. > 0x0000000000762b49 in Oculars::draw(StelCore*) () > > What about OpenGLContext for this call? > > -- > With best regards, Alexander > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > _______________________________________________ > Stellarium-pubdevel mailing list > Ste...@li... > https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel > > |
From: Barry G. <bar...@ho...> - 2013-10-01 19:02:03
|
Hi Tim I just compiled 6272 on windows All three plugins compiled and linked. Satellites appears to work as pre Qt5 Oculars is odd the screen jumps to the FOV size OK but the window effect does not happen Telescope does not appear to work on the virtual telescope. I can't test a real telescope till I get up later At least no crashes Date: Tue, 1 Oct 2013 08:37:54 -0400 From: tr...@si... To: ste...@li... Subject: Re: [Stellarium-pubdevel] Oculars, Satellites and Telescope Control plugins As we've found out (Alex & I), this is working. At least on linux. The OpenGL subsystem needs to be initialized, and once I added that, the crashes disappear. Alex is trying Windows now. This would just be a stop-gap, assuming it works on Windows. We need to replace all non-ES OpenGL code. On Tue, Oct 1, 2013 at 8:10 AM, Alexander Wolf <ale...@gm...> wrote: 2013/10/1 Reaves, Timothy <tr...@si...> Well, as it at least allows Windows to link, why not try to find out why it's crashing, and fix that? I'm sure the issue is our very out-dated cmake files. I think you are wrong. Were is the crash? Is it in an OpenGL call? For example I can catch crash in the Oculars plugin. Of course OpenGL was call:Program received signal SIGSEGV, Segmentation fault. 0x0000000000762b49 in Oculars::draw(StelCore*) () What about OpenGLContext for this call? -- With best regards, Alexander ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ Stellarium-pubdevel mailing list Ste...@li... https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ Stellarium-pubdevel mailing list Ste...@li... https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel |
From: Barry G. <bar...@ho...> - 2013-10-01 22:53:23
|
Hi Tim Further on the telescope module The telescope position indicator and name are just invisible and the colour can't be reset. Barry |
From: Reaves, T. <tr...@si...> - 2013-10-01 23:22:42
|
O.K. Thanks Barry! We're working on it. At least I've figured out that much. We are going to probably need to remove all non-ES OpenGL code to cleanly clean this up. On Tue, Oct 1, 2013 at 6:53 PM, Barry Gerdes <bar...@ho...>wrote: > Hi Tim > Further on the telescope module > The telescope position indicator and name are just invisible and the > colour can't be reset. > > Barry > > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > _______________________________________________ > Stellarium-pubdevel mailing list > Ste...@li... > https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel > > |