Compiling VTK with ANGLE

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Compiling VTK with ANGLE

drjustice

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!


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers