error when compiling solver CFDEM version 2.0.4

Submitted by Alexandre Costa on Thu, 07/21/2011 - 16:22

Hi,
Any help is very welcome.
I just downloaded the new beta version.
The src is compiling fine. However when compiling the solver, that compiled fine for the june/11 version, the following is displayed :
amscosta@amscosta-desktop:~/OpenFOAM/amscosta-1.7.x/applications/solvers/cfdemSolverPiso_shared$ wmake
Making dependency list for source file cfdemSolverPiso.C
could not open file RASModel.H for source file cfdemSolverPiso.C
SOURCE=cfdemSolverPiso.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/transportModels -I/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -I/home/amscosta/OpenFOAM/amscosta-1.7.x/run/../src/lagrangian/cfdemParticle//lnInclude -IlnInclude -I. -I/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/cfdemSolverPiso.o
/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable ‘transonic’
/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude/readPISOControls.H:14: warning: unused variable ‘nOuterCorr’
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/transportModels -I/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -I/home/amscosta/OpenFOAM/amscosta-1.7.x/run/../src/lagrangian/cfdemParticle//lnInclude -IlnInclude -I. -I/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGccDPOpt/cfdemSolverPiso.o -L/home/amscosta/OpenFOAM/OpenFOAM-1.7.x/lib/linuxGccDPOpt \
-L/home/amscosta/OpenFOAM/amscosta-1.7.x/lib/linuxGccDPOpt -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -l -lOpenFOAM -ldl -lm -o /home/amscosta/OpenFOAM/amscosta-1.7.x/applications/bin/linuxGccDPOpt/cfdemSolverPiso_shared
/usr/bin/ld: cannot find -l-lOpenFOAM
collect2: ld returned 1 exit status
make: *** [/home/amscosta/OpenFOAM/amscosta-1.7.x/applications/bin/linuxGccDPOpt/cfdemSolverPiso_shared] Error 1
amscosta@amscosta-desktop:~/OpenFOAM/amscosta-1.7.x/applications/solvers/cfdemSolverPiso_shared$ which cfdemSolverPiso_shared
amscosta@amscosta-desktop:~/OpenFOAM/amscosta-1.7.x/applications/solvers/cfdemSolverPiso_shared$

cgoniva's picture

cgoniva | Thu, 07/21/2011 - 21:27

Hi,

Something with the paths must bes messed up as it cannot find the openFOAM library libOpenFOAM....

Cheers,
Chris

Alexandre Costa | Thu, 07/21/2011 - 21:40

Hi Chris,
Did I miss something ?
I just followed the guideline that compiles the solver fine on the june version.
Thanks,
Alex

akimbrell | Thu, 07/21/2011 - 22:28

The line says this: /usr/bin/ld: cannot find -l-lOpenFOAM

You shouldn't have two '-l' symbols there.

cgoniva's picture

cgoniva | Fri, 07/22/2011 - 13:58

Hi!

Is the env variable "CFDEM_LIB_NAME" set correctly in /etc/bashrc?
echo $CFDEM_LIB_NAME

Cheers,
Chris