help on ERROR ../dump_movie.cpp:55

Dear lammps-users,

When I run lmp_mpi enabling 'dump movie' after reinstall lammps-14May16, following error shows:

ERROR on proc 0: Support for writing movies not included (../dump_movie.cpp:55)
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
[[email protected]...] ONE OF THE PROCESSES TERMINATED BADLY: CLEANING UP
APPLICATION TERMINATED WITH THE EXIT STRING: Terminated (signal 15)

I've set '-DLAMMPS_FFMPEG' in makefile, however not sure if FFmpeg is properly installed(I could see the 'ffmpeg' listed), bin & lib location also been included. Pls help to indicate how to install & check.

System: UBUNTU 14.04 lts

Many thx,

Dear lammps-users,

When I run lmp_mpi enabling 'dump movie' after reinstall lammps-14May16,
following error shows:

ERROR on proc 0: Support for writing movies not included
(../dump_movie.cpp:55)
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
[[email protected]...] ONE OF THE PROCESSES TERMINATED BADLY: CLEANING UP
APPLICATION TERMINATED WITH THE EXIT STRING: Terminated (signal 15)

I've set '-DLAMMPS_FFMPEG' in makefile, however not sure if FFmpeg is
properly installed(I could see the 'ffmpeg' listed), bin & lib location also
been included. Pls help to indicate how to install & check.

the problem you see is not with the ffmpeg binary, but with your
compilation. it looks like you may have a typo in your makefile or you
have changed the makefile, but then didn't do a "make clean-mpi"
before "make mpi" to recompile LAMMPS with ffmpeg support included.
the error message (line 55 in file dump_movie.cpp) can only be reached
when compiling without -DLAMMPS_FFMPEG.

axel.

actually I tried recompile lmps_mpi several times,

1.I suspect something is wrong with settings in LMP_INC,

LMP_INC = -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DLAMMPS_FFMPEG -DLAMMPS_JPEG

JPG_INC = -DLAMMPS_JPEG -I/usr/local/jpeg/include
JPG_PATH = -L/usr/local/jpeg/lib
JPG_LIB = -ljpeg

  1. Meanwhile, when I examine the presence of ffmpeg by the following:

ffmpeg -codecs 2>&1 | grep PPM DEV D ppm PPM (Portable PixelMap) image rpm -qi ffmpeg

info shows that,
$package ffmpeg is not installed

  1. @the same time, I tried to compile lmps_serial, When I recompile with same configuration for jpeg & ffmpeg, another error occurs,

ERROR: Support for writing images in JPEG format not included (…/dump_image.cpp:78)

I suspect -DLAMMPS_JPEG is not successfully working in this case.

I am confused with setting a pointer to executable ffmpeg(already exist) link to -DLAMMPS_FFMPEG?? Would u pls give a clue on how to successfully establish or correct errors in makefile settings .

Many thx!

actually I tried recompile lmps_mpi several times,

1.I suspect something is wrong with settings in LMP_INC,

no, they are correct. what you haven't shown us is whether the
compilation actually was successful and whether you have done a "make
clean-all" between compilations.

LMP_INC = -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 -DLAMMPS_FFMPEG
-DLAMMPS_JPEG
...
JPG_INC = -DLAMMPS_JPEG -I/usr/local/jpeg/include
JPG_PATH = -L/usr/local/jpeg/lib
JPG_LIB = -ljpeg

2. Meanwhile, when I examine the presence of ffmpeg by the following:

ffmpeg \-codecs 2>&1 | grep PPM DEV D ppm PPM \(Portable PixelMap\) image rpm -qi ffmpeg

info shows that,
$package ffmpeg is not installed

there is not a problem here. you are running on ubuntu, and thus
packages are not managed by rpm.

3. @the same time, I tried to compile lmps_serial, When I recompile with
same configuration for jpeg & ffmpeg, another error occurs,

ERROR: Support for writing images in JPEG format not included
(../dump_image.cpp:78)

I suspect -DLAMMPS_JPEG is not successfully working in this case.

-DLAMMPS_JPEG works fine for me.

I am confused with setting a pointer to executable ffmpeg(already exist)
link to -DLAMMPS_FFMPEG?? Would u pls give a clue on how to successfully
establish or correct errors in makefile settings .

the makefile settings are correct. most likely, you didn't clean up
between changing the makefile settings or you are not accessing the
newly compiled executable, but some other version. all the necessary
information is in the documentation and at a great level of detail.
whether you are employing those steps correctly is up to you. since
you don't seem to be very knowledgeable in terms of compilation of
software, your best shot is probably to find somebody local that does
have that experience and knowledge and can look over your shoulder and
tell you where you are going wrong.

unless you can *convincingly* _prove_ that you have done *all*
necessary steps as explained in the documentation and still get no
correctly working executable, i consider this discussion over.

axel.

Thx very much, Dr. Axel Kohlmeyer

ur comments is working on my side now,

Best regards,