I could able to compile when i set VTK_USE_X ON. Do you think that there
is a bug in 5.7.0RC1? I think i could not use EGL with this version
because it will try to open a X window. Right? Thanks for your help.
Just got burnt by this one with the ongoing emscripten work. X gets disabled in vtkOpenGLOptions.cmake for emscripten. vtkglew does not include that script and assumes X is enabled, goes ahead to call glX funcs, ends up with undefined refs.
I suspect the order of vtk_source_directories causes trouble. VTK_USE_X is set in vtkOpenGLOptions.cmake, include by Utilities/OpenGL module. However, the Utilities directory is scanned after Thirdparty/.
Explains why one needed to add -DVTK_OPENGL_USE_GLES=ON on the command line for configure. Anyway, including vtkOpenGLOptions.cmake in Thirdparty/glew/CMakeLists.txt fixed it. Will open a mr for this.