Hi,
I'm compiling using LIGGGHTS using cfdemCompLiggghts. I have a custom installation of VTK-6.3.0 and I edited the VTK_INC_USR and VTK_LIB_USR in the Makefile.user to point to the location.
All compilation process goes well, but at the last step, when creating the lmp_auto.o file, I am getting the following errors:
/usr/bin/ld: /usr/local/usrapps/gould/CFD-DEM/supportingPackages/VTK/VTK-Install-6.3.0/lib/libvtksys-6.3.a(DynamicLoader.cxx.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /usr/lib64/libdl.so.2 so try adding it to the linker command line
/usr/lib64/libdl.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [../lmp_auto] Error 1
make[1]: Leaving directory `/usr/local/usrapps/gould/CFD-DEM/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [auto] Error 2
/usr/bin/ld: /usr/local/usrapps/gould/CFD-DEM/supportingPackages/VTK/VTK-Install-6.3.0/lib/libvtkCommonCore-6.3.a(vtkDoubleArray.cxx.o): relocation R_X86_64_32S against `_ZTV14vtkDoubleArray' can not be used when making a shared object; recompile with -fPIC
/usr/local/usrapps/gould/CFD-DEM/supportingPackages/VTK/VTK-Install-6.3.0/lib/libvtkCommonCore-6.3.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [shlib] Error 1
make[1]: Leaving directory `/usr/local/usrapps/gould/CFD-DEM/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [auto] Error 2
Can someone help me with this?
yesaswi92 | Fri, 04/13/2018 - 03:32
Solved!
I forgot to set the build shared libraries option to on while configuring the VTK build. Hence the error.