[vtkusers] Failed to get wglChoosePixelFormatARB on VM

David E DeMarle dave.demarle at kitware.com
Tue May 22 16:42:19 EDT 2018


In VTK 8.1.1 on windows, there is a helper that:

1) makes a system call intended to test openGL compatibility
2) lets you swap in mesa if required.

See Rendering/OpenGL/vtkTestOpenGLVersion.h and https://gitlab.kitware.
com/vtk/vtk/commit/2d10325efedca53a6262550db94484ccc8a12e49

David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Tue, May 22, 2018 at 3:47 AM, Todd Martin via vtkusers <vtkusers at vtk.org>
wrote:

> Failing that you could try using Virtualbox.
>
>
> Todd Martin, Ph.D.
> Freelance Engineer/Software Architect.
>
>
>
> On Tuesday, May 22, 2018, 6:56:58 PM GMT+12, Jesse Kinross-Smith <
> Jesse.Kinross-Smith at bentley.com> wrote:
>
>
> So it looks like Microsoft’s VM’s only support OpenGL 1.1, and of course
> our library is built using OpenGL2.
>
> Somehow I thought there’d be a fallback option in case it wasn’t
> supported, but this doesn’t seem to be the case.
>
>
>
>>
> Jesse
>
> --
>
> Jesse Kinross-Smith
>
> Senior Software Engineer - BSW
>
> Bentley Systems, Fremantle
>
>
>
> *From:* Todd Martin [mailto:nztoddler at yahoo.com]
> *Sent:* Tuesday, 22 May 2018 1:56 PM
> *To:* vtk <vtkusers at vtk.org>; Jesse Kinross-Smith <
> Jesse.Kinross-Smith at bentley.com>
> *Subject:* Re: [vtkusers] Failed to get wglChoosePixelFormatARB on VM
>
>
>
>
> Did you install GLEW on the virtual machine?
>
>
>
>
>
> Todd Martin, Ph.D.
>
> Freelance Engineer/Software Architect.
>
>
>
>
>
>
>
> On Tuesday, May 22, 2018, 5:33:53 PM GMT+12, Jesse Kinross-Smith <
> Jesse.Kinross-Smith at bentley.com> wrote:
>
>
>
>
>
> Getting the following errors when testing our app with VTK rendering on a
> Hyper-V virtual machine (works great on my laptop though):
>
>
>
> ERROR: In C:\hg\sharedlibs\VTK-8.1.0\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.cxx,
> line 685
>
> vtkWin32OpenGLRenderWindow (000001D110ADE9F0): failed to get
> wglChoosePixelFormatARB
>
> ERROR: In C:\hg\sharedlibs\VTK-8.1.0\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.cxx,
> line 769
>
> vtkWin32OpenGLRenderWindow (000001D110ADE9F0): failed to get valid pixel
> format.
>
> ERROR: In C:\hg\sharedlibs\VTK-8.1.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx,
> line 785
>
> vtkWin32OpenGLRenderWindow (000001D110ADE9F0): GLEW could not be
> initialized.
>
>
>
> We’re using the vtkMFCWindow class and I don’t see any fallback options
> anywhere.
>
> Is there any way this can default to software rendering on low end
> machines like this?
>
>
>
> Jesse
>
> --
>
> Jesse Kinross-Smith
>
> Senior Software Engineer - BSW
>
> Bentley Systems, Fremantle
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=FK6sM6Bp3hbBX5EMYm2faK9qcACWQxeJcUnKBuPmoWI&s=bqbTWJI4m5_7_qEnO2JKkvbluKt8OCZB4gYwDl9xUpI&e=>
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.org_Wiki_VTK-5FFAQ&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=FK6sM6Bp3hbBX5EMYm2faK9qcACWQxeJcUnKBuPmoWI&s=UzFAHgl7PyQg5ESRLyUxCocKInz_vIzTQ_d1cJRd0VU&e=>
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=FK6sM6Bp3hbBX5EMYm2faK9qcACWQxeJcUnKBuPmoWI&s=FBdGMsou1CQoJAQ6LND1TyA0NVI1KbJVx4vcVuvrWF0&e=>
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__vtk.org_mailman_listinfo_vtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=FK6sM6Bp3hbBX5EMYm2faK9qcACWQxeJcUnKBuPmoWI&s=0tDVpJThCwRRKDpjOerLgkBKOzJbzHtlrNCi_KBFapY&e=>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180522/dcf560df/attachment.html>


More information about the vtkusers mailing list