Problem about coupling palabos and liggghts

Submitted by houpeng on Mon, 03/18/2019 - 01:38

Hello everyone,

I got a problem when I'm trying to couple palabos and liggghts as show below.

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
mpicxx -o benchmark.o -c -Wnon-virtual-dtor -Wno-write-strings -O3 -DPLB_MPI_PARALLEL -DPLB_USE_POSIX -I/home/hp/Palabos-PFM-master/src -I/home/hp/Palabos-PFM-master/externalLibraries -I/home/hp/LBDEMcoupling-public/src -I/home/hp/LIGGGHTS-PUBLIC/src benchmark.cpp
mpicxx -o benchmark -Wl,--whole-archive -llmp_fedora -Wl,--no-whole-archive benchmark.o /home/hp/LBDEMcoupling-public/src/liggghtsCouplingWrapper.o /home/hp/LBDEMcoupling-public/src/latticeDecomposition.o /home/hp/Palabos-PFM-master/lib/libplb_mpi.a -L/home/hp/LIGGGHTS-PUBLIC/src
/usr/bin/ld: cannot find -llmp_fedora
collect2: error: ld returned 1 exit status
scons: *** [benchmark] Error 1
scons: building terminated because of errors.
Makefile:88: recipe for target 'compile' failed
make: *** [compile] Error 2

I have checked liggghts for a simulation and it works well. I have also added 'alias "liggghts=$HOME/LIGGGHTS-PUBLIC/src/lmpi_fedora' to .bashrc file.

Could you tell me what's wrong?

Thanks very much.