when I trying to configure with VTK_OPENGL_USE_GLES=ON during build, it gives me an error:
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:27:3: note: candidate expects 0 arguments, 2 provided
make[2]: *** [Rendering/LICOpenGL2/CMakeFiles/RenderingLICOpenGL2.dir/build.make:368: Rendering/LICOpenGL2/CMakeFiles/RenderingLICOpenGL2.dir/vtkCompositeSurfaceLICMapperDelegator.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:8350: Rendering/LICOpenGL2/CMakeFiles/RenderingLICOpenGL2.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
[ 58%] Building CXX object Rendering/LICOpenGL2/CMakeFiles/RenderingLICOpenGL2.dir/vtkCompositeSurfaceLICMapperDelegator.cxx.o
/home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx: In constructor ‘vtkCompositeSurfaceLICMapperDelegator::vtkCompositeSurfaceLICMapperDelegator()’:
/home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:22:53: error: cannot convert ‘vtkBatchedSurfaceLICMapper*’ to ‘vtkOpenGLLowMemoryBatchedPolyDataMapper*’ in assignment
22 | this->GLDelegate = vtkBatchedSurfaceLICMapper::New();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
| |
| vtkBatchedSurfaceLICMapper*
/home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx: In member function ‘virtual void vtkCompositeSurfaceLICMapperDelegator::ShallowCopy(vtkCompositePolyDataMapper*)’:
/home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:39:19: error: invalid use of incomplete type ‘class vtkOpenGLLowMemoryBatchedPolyDataMapper’
39 | this->GLDelegate->SetInputArrayToProcess(0, cpdm->GetInputArrayInformation(0));
| ^~
In file included from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.h:13,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:4:
/home/javad/Downloads/vtk/Rendering/OpenGL2/vtkOpenGLCompositePolyDataMapperDelegator.h:27:7: note: forward declaration of ‘class vtkOpenGLLowMemoryBatchedPolyDataMapper’
27 | class vtkOpenGLLowMemoryBatchedPolyDataMapper;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/javad/Downloads/vtk/Rendering/Core/vtkCompositePolyDataMapperDelegator.h:21,
from /home/javad/Downloads/vtk/Rendering/OpenGL2/vtkOpenGLCompositePolyDataMapperDelegator.h:17,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.h:13,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:4:
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h: In instantiation of ‘vtkSmartPointer<T>& vtkSmartPointer<T>::operator=(const vtkSmartPointer<U>&) [with U = vtkOpenGLLowMemoryBatchedPolyDataMapper; T = vtkPolyDataMapper]’:
/home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:23:58: required from here
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:143:41: error: no matching function for call to ‘vtkSmartPointer<vtkPolyDataMapper>::operator=(vtkOpenGLLowMemoryBatchedPolyDataMapper*)’
143 | this->vtkSmartPointerBase::operator=(r.GetPointer());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
In file included from /home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:14,
from /home/javad/Downloads/vtk/Rendering/Core/vtkCompositePolyDataMapperDelegator.h:21,
from /home/javad/Downloads/vtk/Rendering/OpenGL2/vtkOpenGLCompositePolyDataMapperDelegator.h:17,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.h:13,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:4:
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:59:24: note: candidate: ‘vtkSmartPointerBase& vtkSmartPointerBase::operator=(vtkObjectBase*)’
59 | vtkSmartPointerBase& operator=(vtkObjectBase* r);
| ^~~~~~~~
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:59:49: note: no known conversion for argument 1 from ‘vtkOpenGLLowMemoryBatchedPolyDataMapper*’ to ‘vtkObjectBase*’
59 | vtkSmartPointerBase& operator=(vtkObjectBase* r);
| ~~~~~~~~~~~~~~~^
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:60:24: note: candidate: ‘vtkSmartPointerBase& vtkSmartPointerBase::operator=(const vtkSmartPointerBase&)’
60 | vtkSmartPointerBase& operator=(const vtkSmartPointerBase& r);
| ^~~~~~~~
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:60:61: note: no known conversion for argument 1 from ‘vtkOpenGLLowMemoryBatchedPolyDataMapper*’ to ‘const vtkSmartPointerBase&’
60 | vtkSmartPointerBase& operator=(const vtkSmartPointerBase& r);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
In file included from /home/javad/Downloads/vtk/Rendering/Core/vtkCompositePolyDataMapperDelegator.h:21,
from /home/javad/Downloads/vtk/Rendering/OpenGL2/vtkOpenGLCompositePolyDataMapperDelegator.h:17,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.h:13,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:4:
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h: In instantiation of ‘static void vtkSmartPointer<T>::CheckTypes() [with U = vtkOpenGLLowMemoryBatchedPolyDataMapper; T = vtkPolyDataMapper]’:
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:141:35: required from ‘vtkSmartPointer<T>& vtkSmartPointer<T>::operator=(const vtkSmartPointer<U>&) [with U = vtkOpenGLLowMemoryBatchedPolyDataMapper; T = vtkPolyDataMapper]’
/home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:23:58: required from here
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:37:47: error: static assertion failed: Cannot store an object with undefined type in vtkSmartPointer. Missing include?
37 | static_assert(vtk::detail::IsComplete<U>::value,
| ^~~~~
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:37:47: note: ‘vtk::detail::IsComplete<vtkOpenGLLowMemoryBatchedPolyDataMapper>::value’ evaluates to false
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/fstream:38,
from /home/javad/Downloads/vtk/Common/Core/vtkIOStream.h:17,
from /home/javad/Downloads/vtk/Common/Core/vtkSystemIncludes.h:27,
from /home/javad/Downloads/vtk/Common/Core/vtkIndent.h:16,
from /home/javad/Downloads/vtk/Common/Core/vtkObjectBase.h:41,
from /home/javad/Downloads/vtk/Common/Core/vtkObject.h:33,
from /home/javad/Downloads/vtk/Rendering/Core/vtkCompositePolyDataMapperDelegator.h:17,
from /home/javad/Downloads/vtk/Rendering/OpenGL2/vtkOpenGLCompositePolyDataMapperDelegator.h:17,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.h:13,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:4:
/usr/include/c++/11/type_traits: In instantiation of ‘struct std::is_base_of<vtkPolyDataMapper, vtkOpenGLLowMemoryBatchedPolyDataMapper>’:
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:40:42: required from ‘static void vtkSmartPointer<T>::CheckTypes() [with U = vtkOpenGLLowMemoryBatchedPolyDataMapper; T = vtkPolyDataMapper]’
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:141:35: required from ‘vtkSmartPointer<T>& vtkSmartPointer<T>::operator=(const vtkSmartPointer<U>&) [with U = vtkOpenGLLowMemoryBatchedPolyDataMapper; T = vtkPolyDataMapper]’
/home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:23:58: required from here
/usr/include/c++/11/type_traits:1422:38: error: invalid use of incomplete type ‘class vtkOpenGLLowMemoryBatchedPolyDataMapper’
1422 | : public integral_constant<bool, __is_base_of(_Base, _Derived)>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.h:13,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:4:
/home/javad/Downloads/vtk/Rendering/OpenGL2/vtkOpenGLCompositePolyDataMapperDelegator.h:27:7: note: forward declaration of ‘class vtkOpenGLLowMemoryBatchedPolyDataMapper’
27 | class vtkOpenGLLowMemoryBatchedPolyDataMapper;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/javad/Downloads/vtk/Rendering/Core/vtkCompositePolyDataMapperDelegator.h:21,
from /home/javad/Downloads/vtk/Rendering/OpenGL2/vtkOpenGLCompositePolyDataMapperDelegator.h:17,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.h:13,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:4:
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h: In instantiation of ‘static void vtkSmartPointer<T>::CheckTypes() [with U = vtkOpenGLLowMemoryBatchedPolyDataMapper; T = vtkPolyDataMapper]’:
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:141:35: required from ‘vtkSmartPointer<T>& vtkSmartPointer<T>::operator=(const vtkSmartPointer<U>&) [with U = vtkOpenGLLowMemoryBatchedPolyDataMapper; T = vtkPolyDataMapper]’
/home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:23:58: required from here
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:40:42: error: ‘value’ is not a member of ‘std::is_base_of<vtkPolyDataMapper, vtkOpenGLLowMemoryBatchedPolyDataMapper>’
40 | static_assert(std::is_base_of<T, U>::value,
| ^~~~~
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h: In instantiation of ‘T* vtkSmartPointer<T>::GetPointer() const [with T = vtkOpenGLLowMemoryBatchedPolyDataMapper]’:
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:143:54: required from ‘vtkSmartPointer<T>& vtkSmartPointer<T>::operator=(const vtkSmartPointer<U>&) [with U = vtkOpenGLLowMemoryBatchedPolyDataMapper; T = vtkPolyDataMapper]’
/home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:23:58: required from here
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:178:43: error: invalid ‘static_cast’ from type ‘vtkObjectBase* const’ to type ‘vtkOpenGLLowMemoryBatchedPolyDataMapper*’
178 | T* GetPointer() const noexcept { return static_cast<T*>(this->Object); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.h:13,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:4:
/home/javad/Downloads/vtk/Rendering/OpenGL2/vtkOpenGLCompositePolyDataMapperDelegator.h:27:7: note: class type ‘vtkOpenGLLowMemoryBatchedPolyDataMapper’ is incomplete
27 | class vtkOpenGLLowMemoryBatchedPolyDataMapper;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/javad/Downloads/vtk/Rendering/Core/vtkCompositePolyDataMapperDelegator.h:21,
from /home/javad/Downloads/vtk/Rendering/OpenGL2/vtkOpenGLCompositePolyDataMapperDelegator.h:17,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.h:13,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:4:
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h: In instantiation of ‘vtkSmartPointer<T>::vtkSmartPointer(T*, const vtkSmartPointerBase::NoReference&) [with T = vtkOpenGLLowMemoryBatchedPolyDataMapper]’:
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:255:49: required from ‘static vtkSmartPointer<T> vtkSmartPointer<T>::Take(T*) [with T = vtkOpenGLLowMemoryBatchedPolyDataMapper]’
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:363:34: required from ‘vtkSmartPointer<T> vtk::TakeSmartPointer(T*) [with T = vtkOpenGLLowMemoryBatchedPolyDataMapper]’
/home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:23:41: required from here
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:282:31: error: no matching function for call to ‘vtkSmartPointerBase::vtkSmartPointerBase(vtkOpenGLLowMemoryBatchedPolyDataMapper*&, const vtkSmartPointerBase::NoReference&)’
282 | : vtkSmartPointerBase(r, n)
| ^
In file included from /home/javad/Downloads/vtk/Common/Core/vtkSmartPointer.h:14,
from /home/javad/Downloads/vtk/Rendering/Core/vtkCompositePolyDataMapperDelegator.h:21,
from /home/javad/Downloads/vtk/Rendering/OpenGL2/vtkOpenGLCompositePolyDataMapperDelegator.h:17,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.h:13,
from /home/javad/Downloads/vtk/Rendering/LICOpenGL2/vtkCompositeSurfaceLICMapperDelegator.cxx:4:
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:85:3: note: candidate: ‘vtkSmartPointerBase::vtkSmartPointerBase(vtkObjectBase*, const vtkSmartPointerBase::NoReference&)’
85 | vtkSmartPointerBase(vtkObjectBase* r, const NoReference&);
| ^~~~~~~~~~~~~~~~~~~
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:85:38: note: no known conversion for argument 1 from ‘vtkOpenGLLowMemoryBatchedPolyDataMapper*’ to ‘vtkObjectBase*’
85 | vtkSmartPointerBase(vtkObjectBase* r, const NoReference&);
| ~~~~~~~~~~~~~~~^
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:43:3: note: candidate: ‘vtkSmartPointerBase::vtkSmartPointerBase(vtkSmartPointerBase&&)’
43 | vtkSmartPointerBase(vtkSmartPointerBase&& r) noexcept
| ^~~~~~~~~~~~~~~~~~~
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:43:3: note: candidate expects 1 argument, 2 provided
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:38:3: note: candidate: ‘vtkSmartPointerBase::vtkSmartPointerBase(const vtkSmartPointerBase&)’
38 | vtkSmartPointerBase(const vtkSmartPointerBase& r);
| ^~~~~~~~~~~~~~~~~~~
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:38:3: note: candidate expects 1 argument, 2 provided
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:32:3: note: candidate: ‘vtkSmartPointerBase::vtkSmartPointerBase(vtkObjectBase*)’
32 | vtkSmartPointerBase(vtkObjectBase* r);
| ^~~~~~~~~~~~~~~~~~~
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:32:3: note: candidate expects 1 argument, 2 provided
/home/javad/Downloads/vtk/Common/Core/vtkSmartPointerBase.h:27:3: note: candidate: ‘vtkSmartPointerBase::vtkSmartPointerBase()’
27 | vtkSmartPointerBase() noexcept;
| ^~~~~~~~~~~~~~~~~~~