error while compiling CFDEM source

Submitted by LetThereBeLiggght on Tue, 12/20/2011 - 10:12

Hello everybody,

I tried to compile CFDEM from the instructionfile

system/files/setup_LIGGGHTS__OpenFoamR_CFDEM_2p0_on_Ubuntu1004_24052011.txt

At this point ...

#####################################
# compile src
#####################################

#- change the user-1.7.1/src/lagrangian/cfdemParticle path:
cd $WM_PROJECT_INST_DIR/$USER-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle

#- to compile the src type:
rmdepall
wclean
wmake libso

... I get a compilation error:

me@debian ~/OpenFOAM/me-1.7.x/src/lagrangian/cfdemParticle > wmake libso
/usr/bin/ld: cannot find -llmp_fedora
collect2: ld returned 1 exit status
make: *** [/home/me/OpenFOAM/me-1.7.x/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so] Fehler 1

Can anyone give me a hint?

Regards,

Christian

Yansan | Tue, 12/20/2011 - 12:46

Looks like you set the cfdem environment variables accidentally wrong. The variable llmp_fedora should most probably be lmp_fedora.

gedit $WM_PROJECT_INST_DIR/$USER-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc &

Regards,

Yansan

prasantud | Mon, 12/26/2011 - 11:57

Hi everybody,
merry Christmas,
I am facing following problems for cfdem compilation.

subModels/locateModel/engineSearch/engineSearch.C:64: error: no matching function for call to ‘Foam::meshSearch::meshSearch(const Foam::fvMesh&, Foam::Switch&)’

Requests your suggestions.
Best wishes
Samantaray

diego.peinado's picture

diego.peinado | Wed, 12/28/2011 - 10:24

Yes, I face the same error. It seems that something has changed in Openfoam 2.1.x. This error appears when compiling against openfoam 2.1.x.

See node/680#comment-2153

alice's picture

alice | Tue, 12/20/2011 - 16:43

Hello Christian,
try to replace lmp_fedora with lmp_fedora_fpic in the /etc/bashrc file.
cheers,
alice

sviets | Thu, 12/22/2011 - 22:28

Hello together,

When I'm compiling CFDEM I got the following error massages:

Making dependency list for source file derived/cfdemCloudIB/cfdemCloudIB.C
Making dependency list for source file cfdemCloud/cfdemCloud.C
could not open file compressible/turbulenceModel/turbulenceModel.H for source file cfdemCloud/cfdemCloud.C
could not open file basicThermo.H for source file cfdemCloud/cfdemCloud.C
could not open file compressible/turbulenceModel/turbulenceModel.H for source file derived/cfdemCloudIB/cfdemCloudIB.C
could not open file basicThermo.H for source file derived/cfdemCloudIB/cfdemCloudIB.C

>>> there are much more of these massages and another is :

subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:69: warning: use of old-style cast

does Any body know where I have to change some Options or Paths in the makefile directory ?

best regards

Sebastian