Complie cfdemSolverPisoExplicit: cannot find -lPstream

Submitted by tshan on
cgoniva

Hi Tong!

It is hard to give an advise from the distance, as this error does not emerge on my machine...

Are you able to compile other libraries and solvers like:
libfiniteVolume or icoFoam ?

Cheers,
Chris

Wed, 24 Nov 2010 - 10:37 Permalink
tshan

In reply to by anonymous_stub (not verified)

Hi, Chris,

After initializing OpenFOAM environment, there's no problem on compiling the existing icoFoam.C solver.

Best,
Tong

Wed, 24 Nov 2010 - 14:48 Permalink

Hi, Chris

However, I met a new error in cfdemSolverPisoExplicit compilation, saying:

...
/usr/bin/ld: cannot find -lPstream
collect2: ld returned 1 exit status
make: *** [/home/tong/OpenFOAM/tong-1.6/applications/bin/linux64GccDPOpt/cfdemSolverPisoExplicit] Error 1

How can I resolve this linking error?

Thanks for your reply.

Best,
Tong

tong@tong-laptop:~/Software/cfdem/cfdemSolverPisoExplicit$ wmake
Making dependency list for source file cfdemSolverPisoExplicit.C
could not open file RASModel.H for source file cfdemSolverPisoExplicit.C
SOURCE=cfdemSolverPisoExplicit.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/tong/OpenFOAM/OpenFOAM-1.6/src/turbulenceModels/incompressible/turbulenceModel -I/home/tong/OpenFOAM/OpenFOAM-1.6/src/transportModels -I/home/tong/OpenFOAM/OpenFOAM-1.6/src/transportModels/incompressible/singlePhaseTransportModel -I/home/tong/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/tong/OpenFOAM/tong-1.6/src/lagrangian/cfdemParticle/lnInclude -I/home/tong/Software/cfdem/cfdemParticle/lnInclude -I/home/tong/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt -L/home/tong/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/openmpi-1.3.3 -IlnInclude -I. -I/home/tong/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/tong/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/cfdemSolverPisoExplicit.o
/home/tong/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/home/tong/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable ‘transonic’
/home/tong/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/readPISOControls.H:14: warning: unused variable ‘nOuterCorr’
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/tong/OpenFOAM/OpenFOAM-1.6/src/turbulenceModels/incompressible/turbulenceModel -I/home/tong/OpenFOAM/OpenFOAM-1.6/src/transportModels -I/home/tong/OpenFOAM/OpenFOAM-1.6/src/transportModels/incompressible/singlePhaseTransportModel -I/home/tong/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/tong/OpenFOAM/tong-1.6/src/lagrangian/cfdemParticle/lnInclude -I/home/tong/Software/cfdem/cfdemParticle/lnInclude -I/home/tong/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt -L/home/tong/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/openmpi-1.3.3 -IlnInclude -I. -I/home/tong/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/tong/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/cfdemSolverPisoExplicit.o -L/home/tong/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt \
-L/home/tong/OpenFOAM/tong-1.6/lib/linux64GccDPOpt -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -llagrangianCFDEM_shared -lincompressibleTurbulenceModel -lPstream -lOpenFOAM -liberty -ldl -lm -o /home/tong/OpenFOAM/tong-1.6/applications/bin/linux64GccDPOpt/cfdemSolverPisoExplicit
/usr/bin/ld: cannot find -lPstream
collect2: ld returned 1 exit status
make: *** [/home/tong/OpenFOAM/tong-1.6/applications/bin/linux64GccDPOpt/cfdemSolverPisoExplicit] Error 1