compiling problem of JPEG lib on LAMMPS

Hi, LAMMPS users:

Hi:

I have tried to compile LAMMPS with JPEG lib source, as manual instructed, I give the path for JPEG lib as below

JPG_INC = -L/usr/include

JPG_PATH = -L/usr/lib

JPG_LIB = -libjpeg.so.62

However, I got some error information upon compiling the codes, details as below. I have no idea whether it is wrong with my settings or system problem, would appreciate if you could advise.

math_extra.cpp(222): (col. 3) remark: BLOCK WAS VECTORIZED.

library.cpp(424): (col. 9) remark: LOOP WAS VECTORIZED.

library.cpp(450): (col. 9) remark: LOOP WAS VECTORIZED.

library.cpp(509): (col. 11) remark: LOOP WAS VECTORIZED.

library.cpp(528): (col. 11) remark: LOOP WAS VECTORIZED.

lammps.cpp(173): (col. 18) remark: LOOP WAS VECTORIZED.

/tmp/ipo_icpcNUsSM81.o: In function `LAMMPS_NS::Image::write_JPG(_IO_FILE*)’:

/tmp/ipo_icpcNUsSM81.c:(.text.hot00760+0x15): undefined reference to `jpeg_std_error’

/tmp/ipo_icpcNUsSM81.c:(.text.hot00760+0x34): undefined reference to `jpeg_CreateCompress’

/tmp/ipo_icpcNUsSM81.c:(.text.hot00760+0x44): undefined reference to `jpeg_stdio_dest’

/tmp/ipo_icpcNUsSM81.c:(.text.hot00760+0x85): undefined reference to `jpeg_set_defaults’

/tmp/ipo_icpcNUsSM81.c:(.text.hot00760+0x9c): undefined reference to `jpeg_set_quality’

/tmp/ipo_icpcNUsSM81.c:(.text.hot00760+0xae): undefined reference to `jpeg_start_compress’

/tmp/ipo_icpcNUsSM81.c:(.text.hot00760+0xfc): undefined reference to `jpeg_write_scanlines’

/tmp/ipo_icpcNUsSM81.c:(.text.hot00760+0x10b): undefined reference to `jpeg_finish_compress’

/tmp/ipo_icpcNUsSM81.c:(.text.hot00760+0x118): undefined reference to `jpeg_destroy_compress’

/tmp/ipo_icpcNUsSM81.o: In function `LAMMPS_NS::DumpImage::write()’:

/tmp/ipo_icpcNUsSM81.c:(.text.hot01258+0x348): undefined reference to `jpeg_std_error’

/tmp/ipo_icpcNUsSM81.c:(.text.hot01258+0x367): undefined reference to `jpeg_CreateCompress’

/tmp/ipo_icpcNUsSM81.c:(.text.hot01258+0x377): undefined reference to `jpeg_stdio_dest’

/tmp/ipo_icpcNUsSM81.c:(.text.hot01258+0x3b6): undefined reference to `jpeg_set_defaults’

/tmp/ipo_icpcNUsSM81.c:(.text.hot01258+0x3cd): undefined reference to `jpeg_set_quality’

/tmp/ipo_icpcNUsSM81.c:(.text.hot01258+0x3df): undefined reference to `jpeg_start_compress’

/tmp/ipo_icpcNUsSM81.c:(.text.hot01258+0x42b): undefined reference to `jpeg_write_scanlines’

/tmp/ipo_icpcNUsSM81.c:(.text.hot01258+0x43a): undefined reference to `jpeg_finish_compress’

/tmp/ipo_icpcNUsSM81.c:(.text.hot01258+0x447): undefined reference to `jpeg_destroy_compress’

make[1]: *** […/lmp_fuji] Error 1

make[1]: Leaving directory `/USER_HOME01/IHPC/ihpcdail/software/lammps/lammps-19Sep12/src/Obj_fuji’

make: *** [fuji] Error 2

Thanks & Best Regards!

Dai Ling

Scientist

Institue of High Performance Computing, A*STAR

Singapore

Tel: +65-64191428

Hi, LAMMPS users:

Hi:

I have tried to compile LAMMPS with JPEG lib source, as manual instructed,
I give the path for JPEG lib as below

JPG_INC = -L/usr/include

JPG_PATH = -L/usr/lib

JPG_LIB = -libjpeg.so.62

However, I got some error information upon compiling the codes, details as
below. I have no idea whether it is wrong with my settings or system
problem, would appreciate if you could advise.

your library syntax in JPG_LIB is wrong.
where did you find this?

you'll have to use -ljpeg
please familiarize yourself
with the syntax of how you
provide libraries when compiling.

axel.

I don't understand the error messages, but this line

JPG_LIB = -libjpeg.so.62

should not have a "-" in front of libjpeg.

Steve