Voronoi feature compilation

Dear lammps users,

I am trying to install voronoi feature to my executable file, but having troubles.

I have read the instructions, and succeeded in installing c++ files(for voronoi) to lammps library folder.

This is my setting in Makefile.lammps in /lib/voronoi

voronoi_SYSINC = -I/home/lamplam/a/lee1281/ultrasim/LAMMPS_files/lammps-14May16/lib/voronoi/include/voro++
voronoi_SYSLIB = -llibvoro++.a
voronoi_SYSPATH = -L/home/lamplam/a/lee1281/ultrasim/LAMMPS_files/lammps-14May16/lib/voronoi/lib

I have ‘libvoro++.a’ this file in my lib directory.

After enabling voronoi feature (make yes-voronoi), I executed compilation.

At the end of my compilation, I always get this error.

/usr/bin/ld: cannot find -llibvoro++.a
collect2: ld returned 1 exit status
make[1]: *** […/lmp_mpi] Error 1
make[1]: Leaving directory `/home/lamplam/a/lee1281/ultrasim/LAMMPS_files/lammps-14May16/src/Obj_mpi’
make: *** [mpi] Error 2

I don’t understand why it is looking in ‘/usr/bin/ld’ this folder for the library file.
Can anyone help me solving this issue?

Thank you in advance.

Dear lammps users,

I am trying to install voronoi feature to my executable file, but having
troubles.

I have read the instructions, and succeeded in installing c++ files(for
voronoi) to lammps library folder.

This is my setting in Makefile.lammps in /lib/voronoi

voronoi_SYSINC = -I/home/lamplam/a/lee1281/ultrasim/LAMMPS_files/lammps-
14May16/lib/voronoi/include/voro++
voronoi_SYSLIB = -llibvoro++.a
voronoi_SYSPATH = -L/home/lamplam/a/lee1281/ultrasim/LAMMPS_files/lammps-
14May16/lib/voronoi/lib

I have 'libvoro++.a' this file in my lib directory.

After enabling voronoi feature (make yes-voronoi), I executed compilation.

At the end of my compilation, I always get this error.

/usr/bin/ld: cannot find -llibvoro++.a
collect2: ld returned 1 exit status
make[1]: *** [../lmp_mpi] Error 1
make[1]: Leaving directory `/home/lamplam/a/lee1281/
ultrasim/LAMMPS_files/lammps-14May16/src/Obj_mpi'
make: *** [mpi] Error 2

I don't understand why it is looking in '/usr/bin/ld' this folder for the
library file.

​/usr/bin/ld is the linker that is reporting the error.

the issue is, that if you want to link to libvoro++.a, the linker flag to
link is -lvoro++ and *not* -llibvoro++.a
since you used the latter, the linker will look for liblibvoro++.a.a​, fail
and thus exit with the error you have seen.

axel.