[vtk-developers] OSMesa with Python issue (and semi fix)

Ken Martin ken.martin at kitware.com
Fri Nov 3 09:04:19 EDT 2017


There is a problem with using OSMesa and python with VTK right now. I
tracked down the issue. It seems that vtk either has to be built static or
you need to add the following to your python script.

import ctypes
osm = ctypes.CDLL("libOSMesa.so", ctypes.RTLD_GLOBAL)

for the OSMesa library symbols to be in a scope where glew's dlopen/dlsym
calls can find them.

Does someone knowledgeable in a Python modules know how to fix this in a
less hacky way?

It seems like when building vtk python modules with OSMesa that the OSMesa
lib should be somehow linked/pulled
into the python modules such that the glew library can find the symbols it
needs.

- Ken



-- 
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: <http://public.kitware.com/pipermail/vtk-developers/attachments/20171103/5a44dfcf/attachment.html>


More information about the vtk-developers mailing list