[vtkusers] vtk getting wrong OpenGL version number from mesa and macports

Ken Martin ken.martin at kitware.com
Mon Jan 29 15:21:42 EST 2018


I'm pretty sure OSX comes with OpenGL and OSX always provides at least
OpenGL 3.2 as of any version of OSX in the past few years. I'm not an OSX
wizard, but generally default vtk builds straight out of the box last I
checked. Maybe try a clean VTK build using all the defaults and see if that
works.

On Mon, Jan 29, 2018 at 3:08 PM, Langer, Stephen A. (Fed) <
stephen.langer at nist.gov> wrote:

> Hi --
>
> I'm revisiting earler efforts to get vtk working with X11 on macOS.  I'd
> been building vtk with Cocoa because with X11 vtk was complaining that it
> couldn't find OpenGL version 3.2 or later.  I'm using macports to install
> OpenGL (mesa), and supposedly it's providing version 4.5 of OpenGL.
>
> I've tried building vtk both with and without VTK_USE_SYSTEM_GLEW, since
> vtk gets the version number from glew.  I tried tracing though the process
> of getting the version number, starting with vtkOpenGLRenderWindow::OpenGLInitContext(),
> but found the glew code to be amazingly opaque.   All I know for sure is
> that in vtk's OpenGLInitContext, GLEW_VERSION_3_2 and GLEW_VERSION_3_1 are
> empty, but the glew source code *does* set them, in glewContextInit() in
> glew.c.  I don't know what it sets them *to*, though.
>
> I'm using the latest vtk from git master, but the problem occurred with
> released versions too.
>
> I don't know if this is a vtk problem or a macports problem or a mesa
> problem, but I didn't get a helpful answer from the macports list.  Any
> advice would be much appreciated.
>
> Thanks.
>
>  -- Steve
>
>
>
> _______________________________________________
> 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
>



-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180129/6f50d6de/attachment.html>


More information about the vtkusers mailing list