ERROR on proc 0: Support for writing movies not included (src/dump_movie.cpp:60)

Dear all, I’m very new to lammps and have no previous experience with linux.
The lammps version I’m used is LAMMPS (2 Aug 2023), my platform is MacOS13.2
I’m trying to follow the lammps workshop 2023, Virtual LAMMPS Workshop and Symposium 2023
There’s an already compiled lammps for macOS to download in the tutorial but I choose to download the lammps source with git on the lammps website. I follow the steps and run in the build directory
cmake -C …/cmake/presets/most.cmake …/cmake
cmake --build .
make install
then I proceed to run the basic_exercise in the tutorial by
~/mylammps/build/lmp -in in.friction
and I get following error
ERROR on proc 0: Support for writing movies not included (src/dump_movie.cpp:60)

Last command: run 20000

MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD

with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.

You may or may not see output from other processes, depending on

exactly when Open MPI kills them.

How do I solve this error? Does it relate to my compilation? I already tried recompile and run make clean in between but the same error still appears. Thank you in advance for your help!

Yes. You don’t have a viable FFMpeg executable installed but that is required to create movies with the dump movie command. CMake tries to detect this and will set the option -D WITH_FFMPEG accordingly.

Thank you very much akohlmey! I add to cmake option and recompile. It works now.