Hi,
I am trying to build LAMMPS with the VTK package. I am getting this error when running cmake
:
CMake Error at /usr/local/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
Could NOT find MPI (missing: MPI_C_FOUND C)
Reason given by package: MPI component 'C' was requested, but language C is not enabled.
Call Stack (most recent call first):
/usr/local/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.31/Modules/FindMPI.cmake:1842 (find_package_handle_standard_args)
/usr/lib/x86_64-linux-gnu/cmake/vtk-9.1/VTK-vtk-module-find-packages.cmake:397 (find_package)
/usr/lib/x86_64-linux-gnu/cmake/vtk-9.1/vtk-config.cmake:150 (include)
Modules/Packages/VTK.cmake:1 (find_package)
CMakeLists.txt:585 (include)
I’ve installed VTK and Qt by running:
sudo apt-get install libvtk9-dev
sudo apt-get install qtdeclarative5-dev
sudo apt-get install qtbase5-dev
CMake version: cmake version 3.31.1
OpenMPI version: mpiexec (OpenRTE) 4.1.2
Ubuntu version: 22.04.5 LTS