xmovie error compile

I’m trying to compile xmovie tool’s lammps, but i have the next error mensagge:

gcc -c -O2 -finline-functions -g -DMISSINGDEFS -D_POSIX_SOURCE -DUSEPRIVATE -DINCL_FLOAT -Wimplicit -Wunused -Wmissing-prototypes version.c
gcc -o xmovie -O2 -finline-functions -g version.o xmovie.o control.o scene.o read.o hpsort.o -L/usr/X11R6/lib64
-lX11 -lXaw -lm
/usr/bin/ld: scene.o: undefined reference to symbol ‘XpmWriteFileFromPixmap’
/usr/bin/ld: note: ‘XpmWriteFileFromPixmap’ is defined in DSO /usr/lib/libXpm.so.4 so try adding it to the linker command line
/usr/lib/libXpm.so.4: could not read symbols: Invalid operation
collect2: ld devolvió el estado de salida 1
make: *** [xmovie] Error 1
maestria@…3444…:~/Descargas/lammps/tools/xmovie$ nano scene.o

I have no idea I have to do, so I take the boldness to write asking for your help. Thank you very much for your attention and cooperation

I'm trying to compile xmovie tool's lammps, but i have the next error
mensagge:

gcc -c -O2 -finline-functions -g -DMISSINGDEFS -D_POSIX_SOURCE -DUSEPRIVATE
-DINCL_FLOAT -Wimplicit -Wunused -Wmissing-prototypes version.c
gcc -o xmovie -O2 -finline-functions -g version.o xmovie.o control.o
scene.o read.o hpsort.o -L/usr/X11R6/lib64
-lX11 -lXaw -lm
/usr/bin/ld: scene.o: undefined reference to symbol 'XpmWriteFileFromPixmap'
/usr/bin/ld: note: 'XpmWriteFileFromPixmap' is defined in DSO
/usr/lib/libXpm.so.4 so try adding it to the linker command line
/usr/lib/libXpm.so.4: could not read symbols: Invalid operation
collect2: ld devolvió el estado de salida 1
make: *** [xmovie] Error 1
[email protected]...:~/Descargas/lammps/tools/xmovie$ nano
scene.o

I have no idea I have to do, so I take the boldness to write asking for your
help. Thank you very much for your attention and cooperation

your linker already gives your a very strong hint:
you need to add -lXpm to your linker library list.
see the recommendation for MacOS in the makefile.

in general, it is almost not worth the effort of trying to
make xmovie work. it is so very limited and there are
several viable and more capable alternatives to visualize
LAMMPS trajectory data. on top of that, there are
several 64-bit problems in the code.

cheers,
    axel.