wyldckat |
April 23, 2019 19:21 |
Quick answer: :eek: Oooohhh... OK, this explains a few posts I've been seeing about people complaining that they aren't able to fully build foam-extend 4.0 due to Bison...
My guess is that the version of swak4Foam that was pulled-in within foam-extend 4.0 script, got the latest instead of the latest known to be working for this version of foam-extend...
Ah, OK, so signs initially pointed to Mercurial not being installed in your system, hence the problem... I say this because the version you've gotten is 0.4.2, when 0.4.0 is the one meant to be used... mmm, let me try this manually... OK, I get this error:
Code:
abort: unknown revision 'version_0.4.0_v2.x'!
This means that the problem isn't due to not having Mercurial installed, it's because the Mercurial repository actually is missing the branch/revision "version_0.4.0_v2.x".
edit on the 25th of April: The issue has been solved on swak4Foam's repo!
OK, the following commands might solve the problem:
Code:
cd $WM_THIRD_PARTY_DIR
cd rpmBuild/BUILD/swak4Foam-0.4.0
./Allwclean
hg update --clean .
hg checkout v0.4.1
./Allwmake > log.make 2>&1
./Allwmake > log.make.2nd 2>&1
The last 2 commands will send the screen output to the files "log.make" and "log.make.2nd", so that it's easier to check what went wrong, if anything goes wrong...
- WARNING: the command "hg update" has a space and a dot right at the end of the line. Please do not miss them.
If you then run:
it will hopefully show something similar to this:
Code:
Previously compiled for OpenFOAM (4.0)
No file 'swakConfiguration'. Python etc won't work. See README for details
Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems
Checking swak4Foam-version and generating file
Swak version is 0.4.1
Bison is version 2.7
Flex is version 2.6.0 (Minor version: 0)
OpenFOAM-version: Major 4 Minor 0 Patch 0 (-1 == x / 0) Fork: extend
No change to swak4FoamParsers/foamVersion4swak.H
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswak4FoamParsers.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakLagrangianParser.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libgroovyBC.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakFunctionObjects.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libsimpleFunctionObjects.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libsimpleSearchableSurfaces.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libsimpleSwakFunctionObjects.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakTopoSources.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakStateMachine.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakDynamicMesh.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakSourceFields.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakFiniteArea.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libgroovyStandardBCs.so' is up to date.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Most people are fine without it
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakChemistryModelFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakDynamicMeshFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakMeshWaveFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakMRFFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakQuantileFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakRadiationModelFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakRandomFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakShiftFieldFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakVelocityFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakFacSchemesFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakCoalCloudAdaptor.so' is up to date.
If you have your own function-plugins you can specify them using the SWAK_USER_PLUGINS environment variable and they would be compiled now. If you don't know what this means: don't bother. You propably don't need it
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Utility funkyPythonPostproc not compiled
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/calcNonUniformOffsetsForMapped' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/fieldReport' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/funkySetAreaFields' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/funkyDoCalc' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/funkySetBoundaryField' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/funkySetLagrangianField' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/funkySetFields' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/funkyWarpMesh' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/replayTransientBC' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/writeBoundarySubfields' is up to date.
If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/ofuser/foam/foam-extend-4.0/ThirdParty/tmp/swak4Foam/Libraries (most people will be fine without setting that variable)
As long as no "Error" words appear on this second log file, we should be OK.
|