OpenFoam171: error /usr/bin/ld: cannot find -llduSolvers
Hallo,
I'm new to OpenFoam and also of Ubuntu_64. I'm using OpenFoam-1.7.1 and I downloaded the Ubuntu/Debian_64 Pack Installation. I'm trying to compile a solver that is a modification of simpleFoam. By the way, I already tryed to compile simpleFoam and it gives no problem at all. When i try to compile my new solver I get the following error: Code:
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/turbulenceModels -I/opt/openfoam171/src/turbulenceModels/incompressible/RAS/RASModel -I/opt/openfoam171/src/transportModels -I/opt/openfoam171/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/llduSolvers -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/actuatorDiskExplicitSimpleFoam.o Make/linux64GccDPOpt/actuatorDiskExplicit.o -L/opt/openfoam171/lib/linux64GccDPOpt \ Code:
sudo apt-get install binutils-dev I post also the ./Make/options file that can give maybe some more informations about what I put as input: Code:
EXE_INC = \ Thank You in advance Paolo |
Hi Paolo,
a little hint that may help you.. take a look into OpenFOAM lib directory (type "lib" and go into your platform directory), then look for the lduSolvers library. I took a look at an OpenFOAM-1.7.0 "debian packed" installation I have in one of my workstations and that library doesn't exist as well as its sources. I don't know if it exists in OpenFOAM-1.7.1 since I am using OpenFOAM-1.6-ext, but maybe you are trying to compile a solver developed for another OpenFOAM version (in ex. lduSolvers lib and src are present in OpenFOAM-1.6-ext). Regards Norman |
Hi Norman,
thank You very much for Your answer. As You mentioned, the code was written in OpenFOAM-1.5-dev and I tried to implement it in OpenFOAM-1.7.1. As You confirmed me that it is not possible to find the lduSolvers library I tried to change my /Make/options file with a last try, by erasing the lines that refer to lduSolvers etc.... Now the code looks like: Code:
EXE_INC = \ Anyway, thanks again Norman for Your help Paolo |
OpenFoam 2.1.x cannot find -llduSolvers
Hi,
I have had the same problem trying to compile a OpenFoam 1.6.x solver in OF 2.1.x, I deleted in option file the line refering -llduSolvers and now it works but the solver is not able to monitor calling libSimpleObjectFunction library. Do you have any idea on why it happens? Cheers Aldo Quote:
|
Hi Aldo,
The code for sampling in OpenFoam-2.1.x is: Quote:
|
Thanks for the answer,
That's exacly what I write in controlDict, the problem is that the forces, forceCoeffs, etc folders do not appear afterwards during calculation, without any warning or error. It seems that the lib has not been hooked at all and I don't know how to check or solve... Regards Aldo Quote:
|
Solver compiling issues
Hi Foamers,
So right now I have a solver multiphasedriftFluxFoam which is written for an old version (I don't know) is not compiling. The files in Make folder as follow; Code:
compressibleTurbulenceModels.C Code:
EXE_INC = \ Code:
/usr/bin/ld: cannot find -lmultiphaseRelativeVelocityModels Thanks in advance |
So guys,
I managed to solve this issue as I compiled in the $FOAM_SOLVERS not the user directory. I think there was some how a problem with the linker during the compilation process. I still don't understand why but this how it was worked. |
@Elol : I would like to know what do you mean user directory and $FOAM_SOLVERS directory. how did you compile in user directory previously ?
I'm trying to copy the viscoelasticFluidFoam solver from foam-extend4.0 to my openFoam1812 . when I try to compile solver using "wmake" I got error /usr/bin/ld: cannot find -lviscoelasticTransportModels /usr/bin/ld: cannot find -llduSolvers where can i find these files ? |
Hi ngrsun001,
Sorry for the late answer. I hope you found the solution already however here is some tips to help; To understand what is the meaning of a user directory I suggest to follow this simple tutorial which is compiling a new solver in user directory not in the original directory of compiled $FOAM_SOLVERS OpenFOAM . https://openfoamwiki.net/index.php/H...ure_to_icoFoam The $FOAM_SOLVERS is the orginal directory of the solvers come from OpenFOAM, You can also play with the solvers this and compile them aswell, However I not recommend that because somesolvers share some libraries which might affect each other if you try to compile them later. For your case, I suggest do a recheck on the files on Make directory and try to see if these libraries exist in this version of OpenFOAM . If there are not exist, I suggest you compile them first in the $FOAM_SOLVERS to create these libraries in the platform directory of OpenFOAM. and later if you wnat to change the solver or play with it go to the user directory/applications/solvers/yoursolver/ and compile it there |
All times are GMT -4. The time now is 03:08. |