[vtkusers] Failed to get wglChoosePixelFormatARB on VM

Jesse Kinross-Smith Jesse.Kinross-Smith at bentley.com
Tue May 22 02:56:55 EDT 2018


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<mailto: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<http://www.kitware.com>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/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=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180522/6d0d943d/attachment.html>


More information about the vtkusers mailing list