Swak4foam installation error with OF 2.2.0 (Ubuntu 12.04 LTS)
Does anyone know how to solve the installation error I am receiving?
Swak4foam retrieved from (version 0.4.0): https://github.com/Unofficial-Extend...-swak4Foam.git Openfoam version 2.2.0 was installed in /opt/ directory running Ubuntu 12.04 LTS. Looks like it cant find basicThermoCloud.H or symmetryPlanePolyPatch.H I looked in /opt/openfoam220 find -name basicThermoCloud.H Which returns nothing. So my guess is that it wasn't part of the openfoam install. ./Allwmake log file output: Code:
Previously compiled for OpenFOAM 2.2.0 |
UPDATE: Not fixed yet, but looks like it was an old bug that was fixed?
https://sourceforge.net/p/openfoam-e...swak4foam/228/ I tried applying the patch provided using Code:
patch -p1 < ~/Downloads/writeFieldsGeneralFunctionObject.C.patch Code:
patching file Libraries/simpleFunctionObjects/writeFields/writeFieldsGeneral/writeFieldsGeneralFunctionObject.C |
Have you been able to resolve the error
|
I am trying to install OF 2.4.0 with swak4Foam 0.4 and am getting the same error
Hi
I am trying to install OF 2.4.0 with swak4Foam from the link https://openfoamwiki.net/index.php/I....3.1_and_newer I am getting the same error. SOURCE=EliminateBySwakExpressionInstances.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I../swak4FoamParsers/lnInclude -I../simpleFunctionObjects/lnInclude -I../simpleCloudFunctionObjects/lnInclude -I../swakLagrangianParser/lnInclude -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -I/opt/openfoam220/src/sampling/lnInclude -I/opt/openfoam220/src/triSurface/lnInclude -I/opt/openfoam220/src/thermophysicalModels/pdfs/lnInclude -I/opt/openfoam220/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam220/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam220/src/thermophysicalModels/liquids/lnInclude -I/opt/openfoam220/src/thermophysicalModels/liquidMixture/lnInclude -I/opt/openfoam220/src/thermophysicalModels/solids/lnInclude -I/opt/openfoam220/src/thermophysicalModels/solidMixture/lnInclude -I/opt/openfoam220/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam220/src/thermophysicalModels/radiation/lnInclude -I/opt/openfoam220/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/openfoam220/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/openfoam220/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam220/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/openfoam220/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam220/src/regionModels/regionModel/lnInclude -I/opt/openfoam220/src/regionModels/surfaceFilmModels/lnInclude -I/opt/openfoam220/src/lagrangian/basic/lnInclude -I/opt/openfoam220/src/lagrangian/intermediate/lnInclude -I/opt/openfoam220/src/lagrangian/solidParticle/lnInclude -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/EliminateBySwakExpressionInstances.o In file included from EliminateBySwakExpressionInstances.C:38:0: ../simpleCloudFunctionObjects/lnInclude/makeFunctionObjectsForKnownClouds.H:46:30: fatal error: basicThermoCloud.H: No such file or directory compilation terminated. make: *** [Make/linuxGccDPOpt/EliminateBySwakExpressionInstances.o] Error 1 Requirements for Library not satisfied. I see no sense in going on Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard Has this error been rectified and is there a patch that works for this? Any help would be really valuable. Thanks |
I get the same question when I install swak4Foam in openfoam2.2.2, ubuntu18.04
1 Attachment(s)
/home/wjy/OpenFOAM/wjy-2.2.2/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)
Reading variables from 'swakConfiguration' Checking swak4Foam-version and generating file abort: no repository found in '/home/wjy/OpenFOAM/wjy-2.2.2/swak4Foam' (.hg not found)! Swak version is 0.4.1 Bison is version 2.7.12-4996 Flex is version 2.6.4 (Minor version: 4) OpenFOAM-version: Major 2 Minor 2 Patch 2 (-1 == x / 2) Fork: openfoam solverPerformanceToGlobalVariables.C:48:9: error: ‘lduMatrix’ in namespace ‘Foam’ does not name a type OpenFOAM-2.2.2/src/regionModels/surfaceFilmModels/lnInclude -I/home/wjy/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I/home/wjy/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/intermediate/lnInclude -I/home/wjy/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/solidParticle/lnInclude -IlnInclude -I. -I/home/wjy/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/wjy/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/EliminateBySwakExpressionInstances.o In file included from EliminateBySwakExpressionInstances.C:38:0: ../simpleCloudFunctionObjects/lnInclude/makeFunctionObjectsForKnownClouds.H:46:30: fatal error: basicThermoCloud.H: 没有那个文件或目录 #include "basicThermoCloud.H" ^ compilation terminated. EliminateBySwakExpressionInstances.dep:848: recipe for target 'Make/linux64GccDPOpt/EliminateBySwakExpressionInstances.o' failed make: *** [Make/linux64GccDPOpt/EliminateBySwakExpressionInstances.o] Error 1 Have you solve the problem? I would appreciate it if you could help me! |
Quote:
I also encountered the same swak4Foam installation error. Is your problem solved? Thank you |
Quote:
swak4foam is currently only tested back to OF 2.3 so it is possible that it doesn't compile with 2.2 The good news is that of the 3 errors I see 2 concern rather obscure/special) Libraries so you can ignore them (stream function and lagrangian stuff). What is more important is the first error message in swakFunctionObjects. But the file that fails there is also not important for other things. Open Make/files in that directory and remove the line with solverPerformanceToGlobalVariables.C and try compiling again |
Quote:
Dear Gschaider, Thank you very much for your quick reply. I tried your suggestion. but it did not solve the error. I am getting the following error. Please kindly help me In file included from EliminateBySwakExpressionInstances.C:38:0: ../simpleCloudFunctionObjects/lnInclude/makeFunctionObjectsForKnownClouds.H:46:30: fatal error: basicThermoCloud.H: No such file or directory #include "basicThermoCloud.H" ^ compilation terminated. EliminateBySwakExpressionInstances.dep:844: recipe for target 'Make/linux64GccDPOpt/EliminateBySwakExpressionInstances.o' failed make: *** [Make/linux64GccDPOpt/EliminateBySwakExpressionInstances.o] Error 1 Requirements for Library not satisfied. I see no sense in going on Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard |
Quote:
Comment the library that does this out in the Allwmake file (put a # in front of it). It has to do with Lagrangian particles and the API for those changed so often in OpenFOAM that you probably won't get it to compile with 2.2. And if you don't use Lagrangian particles you won't miss it anyway |
All times are GMT -4. The time now is 06:50. |