please make sure that the paths in /etc/bashrc are set correctly.
Please further check if you compiled the CFDEM package as liblagrangianCFDEM or probably as different name?
please check the log of the compilaiton of the lagrangian library, $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/log/log_compileCFDEMcoupling_cfdemParticle
and the LIGGGHTS compilation
$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/log/log_compileLIGGGHTS
for errors and post them here.
Afterwards I'm sure we can help you.
I have the same issue that the error: /usr/bin/ld cannot find -llangrangianCFDEM, is generated when compiling the solvers. I looked into the logfile log_compileCFDEMcoupling_cfdemParticle and found the following: /usr/bin/ld: cannot find -lcoupleMany2Many.
The compilation of iblagrangianCFDEM-17.02-4.1 seems to be fine, some warnings about using the old-style-cast is generated when compiling the cfdemParticleComp part. But I think these warnings should not influence the compilation of the solvers. Do you have any idea what can cause the failures in the compilation?
Hi! please make sure that the
Hi!
please make sure that the paths in /etc/bashrc are set correctly.
Please further check if you compiled the CFDEM package as liblagrangianCFDEM or probably as different name?
Cheers,
Chris
In reply to by anonymous_stub (not verified)
Hi Chris, Thanks for your
Hi Chris,
Thanks for your reply. I found liblagrangianCFDEM is compiled as liblagrangianCFDEM_shared.
After correcting the Make/options, it works.
Thanks.
rq
In reply to Hi Chris, Thanks for your by rqwang
Can you explain in more details?
I am getting the following error when compiling CFDEM on a cluster running CENTOS 7 (having no problems compiling on local desktop running ubuntu):
/gpfs/gss1/work/OpenFOAM/ThirdParty-3.0.x/platforms/linux64/gcc-4.8.4/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -llagrangianCFDEM-PUBLIC-3.0.x
collect2: error: ld returned 1 exit status
Does anyone know how to fix this specific problem?
In reply to Can you explain in more details? by hrvig
Hi,
Hi,
please check the log of the compilaiton of the lagrangian library, $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/log/log_compileCFDEMcoupling_cfdemParticle
and the LIGGGHTS compilation
$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/log/log_compileLIGGGHTS
for errors and post them here.
Afterwards I'm sure we can help you.
Cheers,
Josef
/usr/bin/ld: cannot find -lcoupleMany2Many
Hi,
I have the same issue that the error: /usr/bin/ld cannot find -llangrangianCFDEM, is generated when compiling the solvers. I looked into the logfile log_compileCFDEMcoupling_cfdemParticle and found the following: /usr/bin/ld: cannot find -lcoupleMany2Many.
Do you know how to tackle this problem?
Thanks in advance,
Sam
In reply to /usr/bin/ld: cannot find -lcoupleMany2Many by sam_mcdermott
Hi Sam,
Hi Sam,
I'll write you an email, if this is okay for you?
Cheers,
Josef
In reply to Hi Sam, by j-kerbl
Hi Josef,
Hi Josef,
I have managed to deal with this problem, however, the compilation of the solvers still does not work. I am getting these errors:
g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/meshTools/lnInclude -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/TurbulenceModels/incompressible/lnInclude -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/transportModels -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/s112882/CFDEM/CFDEMcoupling-17.02/src/lagrangian/cfdemParticle/lnInclude -I/home/s112882/CFDEM/CFDEMcoupling-17.02/src/lagrangian/cfdemParticle/cfdTools -IlnInclude -I. -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/s112882/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt64Opt/cfdemSolverPiso.o -L/home/s112882/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt64Opt/lib \
-L/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib -lturbulenceModels -lincompressibleTurbulenceModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -llagrangianCFDEM-17.02-4.1 -lOpenFOAM -ldl \
-lm -o /home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/bin/cfdemSolverPiso
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `LAMMPS_NS::Input::one(char const*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `allocate_external_double(double**&, int, char const*, double, void*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `LAMMPS_NS::LAMMPS::~LAMMPS()'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `allocate_external_int(int**&, int, char const*, int, void*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `allocate_external_double(double**&, int, int, double, void*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `liggghts_get_maxtag(void*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `data_of_to_liggghts(char const*, char const*, void*, void*, char const*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `LAMMPS_NS::LAMMPS::LAMMPS(int, char**, ompi_communicator_t*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `data_liggghts_to_of(char const*, char const*, void*, void*&, char const*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `LAMMPS_NS::Input::file(char const*)'
/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/lib/liblagrangianCFDEM-17.02-4.1.so: undefined reference to `allocate_external_int(int**&, int, int, int, void*)'
collect2: error: ld returned 1 exit status
/home/s112882/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/general:132: recipe for target '/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/bin/cfdemSolverPiso' failed
make: *** [/home/s112882/OpenFOAM/s112882-4.1/platforms/linux64GccDPInt64Opt/bin/cfdemSolverPiso] Error 1
The compilation of iblagrangianCFDEM-17.02-4.1 seems to be fine, some warnings about using the old-style-cast is generated when compiling the cfdemParticleComp part. But I think these warnings should not influence the compilation of the solvers. Do you have any idea what can cause the failures in the compilation?
Greetings Sam
In reply to Hi Sam, by j-kerbl
Solved problem
Hi Josef,
I have managed to solve the problems and CFDEMcoupling now runs fine. Thanks for your help!
Cheers,
Sam
In reply to Solved problem by sam_mcdermott
Hi Sam,
Hi Sam,
actually I din't do much :)
Cheers and happy simulating,
Josef