[osg-users] getWindowingSystemInterface() fails on Ubuntu 18.04

Ravi Mathur ravidavi at utexas.edu
Thu Sep 6 09:16:24 PDT 2018


Thanks guys for figuring this out. I ran into the exact same problem
earlier this week with Ubuntu 18.04. I'm using CompositeViewer similar to
the "-3" case of the osgcompositeviewer example (multiple Views in one
window). I call osg::GraphicsContext::createGraphicsContext(traits) with my
custom Traits, and of course was getting the "Unable to open display
":0.0""  error.

Robert's suggestion of calling "traits->readDISPLAY()" before creating the
graphics context seems to have fixed it.

Ravi

On Wed, Sep 5, 2018 at 12:47 PM Omar Álvarez <omar.alvarez at cinfo.es> wrote:

> Sorry, I meant the samples that use it. You're right.
>
> On Wed, Sep 5, 2018, 18:37 Robert Osfield <robert.osfield at gmail.com>
> wrote:
>
>> Hi Omar,
>>
>> On Wed, 5 Sep 2018 at 17:07, Omar Álvarez <omar.alvarez at cinfo.es> wrote:
>> > Thank you very much for your time. If nobody else feels like doing it,
>> I can help with updating osg::GraphicsContext::WindowingSystemInterface.
>>
>> This hasn't looked like an OSG bug too me, just a usage issue.  What
>> specifically do you think might need changing with
>> WindowingSystemInterface?
>>
>> Robert.
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180906/01f1c3a9/attachment.html>


More information about the osg-users mailing list