Got unknown argument: --egl-device-index=0.

Hi,

I compiled Paraview using the following configuration in a cmake file. After a successful compilation, I got the following error:

Got unknown argument: --egl-device-index=0. Could you have misspelled your Python file path or name?

Here is the configuration of my Paraview build put in a cmake file:

# General build settings
set(CMAKE_BUILD_TYPE_paraview   Release CACHE STRING "")
set(BUILD_SHARED_LIBS  ON CACHE BOOL "")
#set(CMAKE_INSTALL_PREFIX /mnt/lustre/phy3/phyalan/paraview-cray/compiled CACHE PATH "")

# Enable the appropriate packages
set(ENABLE_boost       ON  CACHE BOOL "")
set(ENABLE_bzip2       OFF CACHE BOOL "")
set(ENABLE_cosmotools  ON  CACHE BOOL "")
set(ENABLE_ffmpeg      ON  CACHE BOOL "")
set(ENABLE_fortran     ON  CACHE BOOL "")
set(ENABLE_freetype    ON  CACHE BOOL "")
set(ENABLE_genericio   ON  CACHE BOOL "")
set(ENABLE_hdf5        ON  CACHE BOOL "")
set(ENABLE_lapack      ON  CACHE BOOL "")
set(ENABLE_libxml2     OFF CACHE BOOL "")
set(ENABLE_llvm        ON CACHE BOOL "")
set(ENABLE_matplotlib  ON  CACHE BOOL "")
set(ENABLE_mpi         ON  CACHE BOOL "")
set(ENABLE_numpy       ON  CACHE BOOL "")
set(ENABLE_osmesa      OFF  CACHE BOOL "")
#set(mesa_SWR_ARCH "avx,avx2" CACHE STRING "")
set(ENABLE_ospray      OFF CACHE BOOL "")
set(ENABLE_paraview    ON  CACHE BOOL "")
set(ENABLE_paraviewsdk ON  CACHE BOOL "")
set(ENABLE_paraviewgettingstartedguide   ON CACHE BOOL "")
set(ENABLE_paraviewtutorial              ON CACHE BOOL "")
set(ENABLE_paraviewtutorialdata          ON CACHE BOOL "")
set(ENABLE_paraviewusersguide            ON CACHE BOOL "")
set(ENABLE_png         ON  CACHE BOOL "")
set(ENABLE_python      ON  CACHE BOOL "")
set(ENABLE_python3     ON  CACHE BOOL "")
#set(ENABLE_python2     OFF CACHE BOOL "")
#set(ENABLE_qt          OFF CACHE BOOL "")
set(ENABLE_silo        OFF CACHE BOOL "")
set(ENABLE_socat       OFF CACHE BOOL "")
set(ENABLE_szip        ON  CACHE BOOL "")
set(ENABLE_scipy       ON  CACHE BOOL "")
set(ENABLE_visitbridge OFF CACHE BOOL "")
#set(ENABLE_vortexfinder2   ON CACHE BOOL "")
set(ENABLE_vtkm        ON  CACHE BOOL "")
set(ENABLE_xdmf3       ON  CACHE BOOL "")
set(ENABLE_zlib        ON  CACHE BOOL "")
set(PARAVIEW_PLUGIN_ENABLE_pvNVIDIAIndeX        ON  CACHE BOOL "")
set(ENABLE_nvidiaindex        ON  CACHE BOOL "")
set(ENABLE_glproto        OFF  CACHE BOOL "")
set(ENABLE_egl        ON  CACHE BOOL "")
set(VTK_USE_OFFSCREEN_EGL   ON  CACHE BOOL "")
#set(PARAVIEW_DEFAULT_SYSTEM_GL   ON  CACHE BOOL "")
set(VTK_USE_X       OFF  CACHE BOOL "")
set(VTK_OPENGL_HAS_EGL        ON  CACHE BOOL "")
#set(ENABLE_cuda        OFF CACHE BOOL "")
# Work around cmake bug, which values from `which cc,CC,ftn`
set(MPI_CXX_COMPILER /opt/cray/pe/craype/2.6.1/bin/CC CACHE STRING "")
set(MPI_C_COMPILER /opt/cray/pe/craype/2.6.1/bin/cc CACHE STRING "")
set(MPI_Fortran_COMPILER /opt/cray/pe/craype/2.6.1/bin/ftn CACHE STRING "")

# These will get pulled from the compute node's userland
set(USE_SYSTEM_boost      OFF CACHE BOOL "")
set(USE_SYSTEM_bzip2      OFF CACHE BOOL "")
set(USE_SYSTEM_freetype   ON CACHE BOOL "")
set(USE_SYSTEM_hdf5       ON CACHE BOOL "")
#set(VTK_USE_SYSTEM_HDF5   ON CACHE BOOL "")
set(USE_SYSTEM_lapack     ON CACHE BOOL "")
set(USE_SYSTEM_libxml2    ON CACHE BOOL "")
#set(USE_SYSTEM_llvm       ON CACHE BOOL "")
set(USE_SYSTEM_matplotlib OFF CACHE BOOL "")
set(USE_SYSTEM_mpi        ON CACHE BOOL "")
set(USE_SYSTEM_numpy      ON CACHE BOOL "")
set(USE_SYSTEM_osmesa     OFF CACHE BOOL "")
set(USE_SYSTEM_png        ON CACHE BOOL "")
set(USE_SYSTEM_python     ON CACHE BOOL "")
set(USE_SYSTEM_python3    ON CACHE BOOL "")
set(USE_SYSTEM_zlib       ON CACHE BOOL "")

# ParaView details
set(SUPERBUILD_PROJECT_PARALLELISM 24 CACHE STRING "")
set(paraview_SOURCE_SELECTION 5.7.0 CACHE BOOL "")

# Specify where the necessary tarballs have been downloaded to
set(superbuild_download_location ${CMAKE_BINARY_DIR}/../../downloads CACHE STRING "")

# Another, ensure we get cray python
set(PYTHON_EXECUTABLE /opt/python/3.6.5.7/bin/python CACHE FILEPATH "")
set(PYTHON_INCLUDE_DIR /opt/python/3.6.5.7/include/python3.6m CACHE PATH "")
set(PYTHON_LIBRARY /opt/python/3.6.5.7/lib/libpython3.6m.so CACHE FILEPATH "")
set(superbuild_python_pip /opt/python/3.6.5.7/bin/pip CACHE FILEPATH "")

PS: I was trying to build Paraview in offscreen rendering mode with EGL on headless nodes to use the cluster variant of Nvidia IndeX