Compiling LAMMPS with -DLAMMPS_JPEG for dump image command

Hello LAMMPS users and developers,

I am trying to compile LAMMPS with -DLAMMPS_JPEG flag which needs a JPEG library.
The problem is that I could only lay my hand on a static library that comes with REDHAT Linux in /usr/lib (named libjpeg.so).

My guess is that LAMMPS requires a dynamic linkage in the makefile for this flag to work. Could anyone with knowledge of this library direct me to a suitable JPEG library.

Suleiman.

Hello LAMMPS users and developers,

I am trying to compile LAMMPS with -DLAMMPS_JPEG flag which needs a JPEG library.
The problem is that I could only lay my hand on a static library that comes with REDHAT Linux in /usr/lib (named libjpeg.so).

no, this is a shared library. a corresponding static libraries would
be called libjpeg.a

My guess is that LAMMPS requires a dynamic linkage in the makefile for this flag to work. Could anyone with knowledge of this library direct me to a suitable JPEG library.

your guess is most likely wrong. however, without knowing any details
as to why your compilation is unsuccessful, it is impossible to give advice.

axel.

A static linkage should be fine.

Steve