I would like to install Paraview in my laptop with Ubuntu 18.04.6 LTS. I'm following this post to install vkt 8.2.0 in Ubuntu 18.04 (https://discourse.vtk.org/t/installing-vtk-in-ubuntu-18-04/2147/4). When I use
sudo cmake -DCMAKE_INSTALL_PREFIX=$HOME/vtk-inst \
-DCMAKE_INSTALL_RPATH=$HOME/vtk-inst \
-DVTK_Group_Qt=ON \
-DVTK_QT_VERSION=5 \
-DVTK_Group_Imaging=ON \
-DVTK_Group_Views=ON \
-DModule_vtkRenderingFreeTypeFontConfig=ON \
-DVTK_WRAP_PYTHON=ON \
-DVTK_PYTHON_VERSION=3 \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DPYTHON_INCLUDE_DIR=/usr/include/python3.6 \
-DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.6m.so \
-DBUILD_TESTING=OFF \
-DVTK_USE_SYSTEM_LIBRARIES=ON \
-DVTK_USE_SYSTEM_LIBPROJ4=OFF \
-DVTK_USE_SYSTEM_GL2PS=OFF \
-DVTK_USE_SYSTEM_LIBHARU=OFF \
-DVTK_USE_SYSTEM_PUGIXML=OFF \
-DCMAKE_BUILD_TYPE=Release \
..
Then I get the following error:
-- Could not use git to determine source version, using version
-- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OpenGL)
CMake Error at CMake/vtkModule.cmake:4612 (message):
Could not find the OpenGL external dependency.
Call Stack (most recent call first):
CMake/vtkModule.cmake:5206 (vtk_module_find_package)
Utilities/OpenGL/CMakeLists.txt:58 (vtk_module_third_party_external)
-- Configuring incomplete, errors occurred!
See also "$HOME/VTK-master/build/CMakeFiles/CMakeOutput.log".
See also "$HOME/VTK-master/build/CMakeFiles/CMakeError.log".
I have tried to solve this problem using this post:
CMake could not find OpenGL in Ubuntu
but nothing happens after install "libgl1-mesa-dev" or "libegl1-mesa-dev"
Any hint of how to solve it?