[vtkusers] Failed to get wglChoosePixelFormatARB on VM

Todd Martin nztoddler at yahoo.com
Tue May 22 03:47:55 EDT 2018


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:  
 
 #yiv9300875591 #yiv9300875591 -- _filtered #yiv9300875591 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv9300875591 {panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv9300875591 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv9300875591 #yiv9300875591 p.yiv9300875591MsoNormal, #yiv9300875591 li.yiv9300875591MsoNormal, #yiv9300875591 div.yiv9300875591MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:sans-serif;}#yiv9300875591 a:link, #yiv9300875591 span.yiv9300875591MsoHyperlink {color:blue;text-decoration:underline;}#yiv9300875591 a:visited, #yiv9300875591 span.yiv9300875591MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv9300875591 p.yiv9300875591msonormal0, #yiv9300875591 li.yiv9300875591msonormal0, #yiv9300875591 div.yiv9300875591msonormal0 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9300875591 p.yiv9300875591msonormal, #yiv9300875591 li.yiv9300875591msonormal, #yiv9300875591 div.yiv9300875591msonormal {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9300875591 p.yiv9300875591msochpdefault, #yiv9300875591 li.yiv9300875591msochpdefault, #yiv9300875591 div.yiv9300875591msochpdefault {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9300875591 span.yiv9300875591msohyperlink {}#yiv9300875591 span.yiv9300875591msohyperlinkfollowed {}#yiv9300875591 span.yiv9300875591emailstyle17 {}#yiv9300875591 p.yiv9300875591msonormal1, #yiv9300875591 li.yiv9300875591msonormal1, #yiv9300875591 div.yiv9300875591msonormal1 {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:sans-serif;}#yiv9300875591 span.yiv9300875591msohyperlink1 {color:#0563C1;text-decoration:underline;}#yiv9300875591 span.yiv9300875591msohyperlinkfollowed1 {color:#954F72;text-decoration:underline;}#yiv9300875591 span.yiv9300875591emailstyle171 {font-family:sans-serif;color:windowtext;}#yiv9300875591 p.yiv9300875591msochpdefault1, #yiv9300875591 li.yiv9300875591msochpdefault1, #yiv9300875591 div.yiv9300875591msochpdefault1 {margin-right:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv9300875591 span.yiv9300875591EmailStyle29 {font-family:sans-serif;color:windowtext;}#yiv9300875591 .yiv9300875591MsoChpDefault {font-size:10.0pt;} _filtered #yiv9300875591 {margin:72.0pt 72.0pt 72.0pt 72.0pt;}#yiv9300875591 div.yiv9300875591WordSection1 {}#yiv9300875591 
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/opensource/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/f2b47467/attachment.html>


More information about the vtkusers mailing list