|
[Sponsors] |
February 15, 2024, 03:55 |
swak4Foam
|
#1 |
New Member
Sun
Join Date: Aug 2017
Posts: 4
Rep Power: 9 |
Hi
I am using openFoamv2312. I am trying to compile swak4Foam and received the following error g++ -std=c++14 -m64 -pthread -DOPENFOAM=2312 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I../swak4FoamParsers/lnInclude -I../simpleFunctionObjects/lnInclude -I../simpleCloudFunctionObjects/lnInclude -I../swakLagrangianParser/lnInclude -I/usr/lib/openfoam/openfoam2312/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2312/src/meshTools/lnInclude -I/usr/lib/openfoam/openfoam2312/src/surfMesh/lnInclude -I/usr/lib/openfoam/openfoam2312/src/sampling/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/pdfs/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/specie/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/basic/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/liquids/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/liquidMixture/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/solids/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/solidMixture/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/reactionThermo/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/radiation/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/SLGThermo/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/properties/solidProperties/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/usr/lib/openfoam/openfoam2312/src/thermophysicalModels/thermophysicalProperties/lnInclude -I/usr/lib/openfoam/openfoam2312/src/regionModels/regionModel/lnInclude -I/usr/lib/openfoam/openfoam2312/src/regionModels/surfaceFilmModels/lnInclude -I/usr/lib/openfoam/openfoam2312/src/finiteArea/lnInclude -I/usr/lib/openfoam/openfoam2312/src/faOptions/lnInclude -I/usr/lib/openfoam/openfoam2312/src/regionFaModels/lnInclude -I/usr/lib/openfoam/openfoam2312/src/lagrangian/basic/lnInclude -I/usr/lib/openfoam/openfoam2312/src/transportModels/compressible/lnInclude -I/usr/lib/openfoam/openfoam2312/src/lagrangian/intermediate/lnInclude -I/usr/lib/openfoam/openfoam2312/src/lagrangian/solidParticle/lnInclude -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2312/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2312/src/OSspecific/POSIX/lnInclude -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/EliminateBySwakExpressionInstances.o -L/usr/lib/openfoam/openfoam2312/platforms/linux64GccDPInt32Opt/lib \ -L/home/sun/OpenFOAM/sun-v2312/platforms/linux64GccDPInt32Opt/lib -lswakLagrangianParser -lswak4FoamParsers -lfiniteVolume -lmeshTools -lsampling -llagrangian -llagrangianIntermediate -lradiationModels -lsolidParticle -o /home/sun/OpenFOAM/sun-v2312/platforms/linux64GccDPInt32Opt/lib/libswakCloudFunctionObjects.so /usr/bin/ld: cannot find -lswakLagrangianParser collect2: error: ld returned 1 exit status make: *** [/usr/lib/openfoam/openfoam2312/wmake/makefiles/general:210: /home/sun/OpenFOAM/sun-v2312/platforms/linux64GccDPInt32Opt/lib/libswakCloudFunctionObjects.so] Error 1 Requirements for Library not satisfied. I see no sense in going on Please help me to fix this problem thank you Last edited by PhD_Sun; February 16, 2024 at 05:39. |
|
February 16, 2024, 13:16 |
|
#2 |
Member
Shravan
Join Date: Mar 2017
Posts: 75
Rep Power: 9 |
Hello,
I also see that you have posted here: cannot find -lswakLagrangianParser I also got a similar issue last year with swak4FoamParsers. You use a recent release, so first check if swak4Foam is compatible with the new release. Second, when I had this similar issue and Bernhard Gschaider gave me the following inputs (that could have caused such problems) Error installing swak4Foam This you may be give you some more idea about the issue. In my case, in order to resolve it, I used the following command and then recompiled HTML Code:
hg update develop So, since you also use a recent release I would suggest first to try this command and compile and check. As it is mentioned by Bernard here (specifically for new releases): https://openfoamwiki.net/index.php/Contrib/swak4Foam Thanks |
|
February 19, 2024, 10:50 |
|
#3 | |
Member
Roland
Join Date: Mar 2009
Location: Netherlands
Posts: 92
Rep Power: 17 |
I have the same problem.
Quote:
|
||
February 19, 2024, 12:29 |
|
#4 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
||
February 19, 2024, 13:24 |
|
#5 |
Member
Roland
Join Date: Mar 2009
Location: Netherlands
Posts: 92
Rep Power: 17 |
Hi Mark, probably what I was trying to do with funkySetFields is covered by built-in OpenFOAM functionality. But, it is just easier to keep using our older workflow than to convert to a newer setup.
|
|
February 21, 2024, 02:49 |
problem solved
|
#6 |
New Member
Sun
Join Date: Aug 2017
Posts: 4
Rep Power: 9 |
thank you all. I tried hg update develop, but it did not work for me either. However, I found out that swak4Foam works perfectly well with openFoamv2012 and that is fine for me. I suppose there is some compatibility issue in OpenFoam2312.
|
|
March 20, 2024, 09:58 |
|
#7 |
New Member
Join Date: Mar 2020
Posts: 1
Rep Power: 0 |
I had a similar problem with v2312. specifically swak4foam build failed when looking for -swakLagrangianParser.so and gave this error: usr/bin/ld: cannot find -lswakLagrangianParser.so. I rolled back to OF v2306 and recompiled and did not get the error. so something in v2312 changed that led to this shared object not being created or located in the same location.
|
|
June 4, 2024, 01:10 |
|
#8 |
New Member
Andrew Arnold
Join Date: Apr 2024
Posts: 10
Rep Power: 2 |
||
June 10, 2024, 01:46 |
|
#9 | |
New Member
Robert Baptist
Join Date: Jun 2024
Posts: 1
Rep Power: 0 |
Quote:
|
||
June 10, 2024, 08:12 |
|
#10 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
Any boundary condition that takes a PatchFunction1 has spatial handling and there is an expression PatchFunction1 too, which means for the most part you will never really need to the older expr boundary conditions anymore. |
||
June 10, 2024, 08:14 |
|
#11 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
If enough people have interest and can get together some support hours/funding, why not see about getting cloud expressions integrated directly? |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFoam Case crashes using swak4Foam | Miguel.Mendez | Main CFD Forum | 2 | March 24, 2021 00:42 |
[swak4Foam] swak4foam 0.4.2, groovyBC parallel diverging, openfoam extend 4.0 | Kombinator | OpenFOAM Community Contributions | 4 | November 24, 2020 09:42 |
source term in near wall cell | rajcfd | OpenFOAM Pre-Processing | 5 | February 1, 2016 11:31 |
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 | kobayashi | OpenFOAM Community Contributions | 2 | January 5, 2014 18:33 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |