|
[Sponsors] |
[OpenFOAM.org] Can't compile OpenFOAM - /usr/bin/ld: cannot find -lxxxxx error |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 17, 2024, 13:25 |
Can't compile OpenFOAM - /usr/bin/ld: cannot find -lxxxxx error
|
#1 |
New Member
Carlos
Join Date: Sep 2024
Posts: 1
Rep Power: 0 |
Hi,
I'm a new member of the community, I hope this I'm posting this request in the right place. I'm trying to compile/build OpenFOAM-2.4.0 (from source), I know it's an old version, but this specific version is needed for a project. When compiling/building OpenFoam I get these errors: /usr/bin/ld: cannot find -lspecie /usr/bin/ld: cannot find -lcompressibleTurbulenceModels /usr/bin/ld: cannot find -lcompressibleTwoPhaseSystem /usr/bin/ld: cannot find -lcompressibleEulerianInterfacialModels /usr/bin/ld: cannot find -lfvOptions collect2: error: ld returned 1 exit status ****** Extract: ******* g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/transportModels/compressible/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/thermophysicalModels/basic/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/transportModels/incompressible/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/TurbulenceModels/turbulenceModels/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/TurbulenceModels/compressible/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/TurbulenceModels/phaseCompressible/lnInclude -IphaseCompressibleTurbulenceModels/lnInclude -IinterfacialModels/lnInclude -ItwoPhaseSystem/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/fvOptions/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/sampling/lnInclude -IlnInclude -I. -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/twoPhaseEulerFoam.o -L/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib \ -lfluidThermophysicalModels -lspecie -lturbulenceModels -lcompressibleTurbulenceModels -lphaseCompressibleTurbulenceModels -lincompressibleTransportModels -lcompressibleTwoPhaseSystem -lcompressibleEulerianInterfacialModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -lOpenFOAM -ldl -lm -o /nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/bin/twoPhaseEulerFoam /usr/bin/ld: cannot find -lspecie /usr/bin/ld: cannot find -lcompressibleTurbulenceModels /usr/bin/ld: cannot find -lcompressibleTwoPhaseSystem /usr/bin/ld: cannot find -lcompressibleEulerianInterfacialModels /usr/bin/ld: cannot find -lfvOptions collect2: error: ld returned 1 exit status make[2]: *** [/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/bin/twoPhaseEulerFoam] Error 1 make[2]: Leaving directory `/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/applications/solvers/multiphase/twoPhaseEulerFoam' make[1]: *** [twoPhaseEulerFoam] Error 2 make[1]: Target `application' not remade because of errors. make[1]: Leaving directory `/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/applications/solvers/multiphase' make: *** [multiphase] Error 2 make[1]: Entering directory `/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/applications/solvers/stressAnalysis' make[2]: Entering directory `/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/applications/solvers/stressAnalysis/solidDisplacementFoam' Making dependency list for source file tractionDisplacement/tractionDisplacementFvPatchVectorField.C Making dependency list for source file solidDisplacementFoam.C make[2]: Leaving directory `/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/applications/solvers/stressAnalysis/solidDisplacementFoam' ... make: Target `application' not remade because of errors. ****** Extract: ******* These are the commands I used to build/compile OpenFoam setenv FOAM_INST_DIR /nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root source $FOAM_INST_DIR/OpenFOAM-2.4.0/etc/cshrc cd $FOAM_INST_DIR/OpenFOAM-2.4.0 ./Allwmake Thanks |
|
Tags |
compiling error, ld error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
Problem Building OF on Centos cluster (no admin rights) | CKH | OpenFOAM Installation | 5 | November 13, 2011 07:32 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
checking the system setup and Qt version | vivek070176 | OpenFOAM Installation | 22 | June 1, 2010 13:34 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |