[vtk-developers] Compiling VTK with ANGLE
Patrick Bergeron
pbergeron at spiria.com
Wed May 8 16:51:29 EDT 2019
Hey folks,
I am trying to compile VTK with ANGLE on Windows. (for those who don't know, ANGLE is a GLESv2 and GLESv3 front-end over DirectX).
And I am using VTK in a Qt app.
Since Qt already ships with ANGLE (dll, import library, headers, everything I need), I am trying to use this library (libglesv2.lib) instead of the native opengl32.lib, which loads the native OpenGL driver DLL.
However, I am hitting problems everywhere.
Doing research on the topic, it appears that someone successfully managed - sort of - to get this going in 2017.
https://vtk.org/pipermail/vtk-developers/2017-July/035304.html
Alas, the suggested patch file to the cmake files no longer seems relevant.
Also, as as late, there seems to be new difficulties with doing this, although the post below is with Linux.
https://gitlab.kitware.com/vtk/vtk/issues/17584
Has anyone successfully done this before?
Here are my cmake settings:
OPENGL_gl_LIBRARY=libGLESv2
OPENGL_opengl_LIBRARY=libGLESv2 (added variable)
OPENGL_gles3_LIBRARY=libGLESv2 (added variable)
OPENGL_GLES3_INCLUDE_DIR=C:\Qt\Qt5.11.0\5.11.0\msvc2015_64\include\QtANGLE (added variable)
VTK_OPENGL_USE_GLES=[CHECKED]
Qt5OpenGL_DIR=C:/Qt/Qt5.11.0/5.11.0/msvc2015_64/lib/cmake/Qt5OpenGL
VTK_GROUP_ENABLE_Qt=YES
VTK_GROUP_ENABLE_VTK_RenderingQt=YES
Thanks everyone!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtk-developers/attachments/20190508/34467e8a/attachment.html>
More information about the vtk-developers
mailing list