CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] [OpenFOAM] [2.3.1] Install swak4Foam in Ubuntu 16.04.01 with errors

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By ycui

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2016, 05:16
Default [OpenFOAM] [2.3.1] Install swak4Foam in Ubuntu 16.04.01 with errors
  #1
New Member
 
Join Date: Nov 2016
Posts: 16
Rep Power: 9
ycui is on a distinguished road
Dear all,

I'm trying to install swak4Foam in Ubuntu 16.04.01 (OpenFOAM version 2.3.1), then I get following error log:

Quote:
Previously compiled for OpenFOAM 2.3.1

/home/ycui/OpenFOAM/ycui-2.3.1/swak4Foam_2.x/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

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
abort: no repository found in '/home/ycui/OpenFOAM/ycui-2.3.1/swak4Foam_2.x' (.hg not found)!
Swak version is 0.4.0
Bison is version 2.7.12-4996
Flex is version 2.6.0 (Minor version: 0)
OpenFOAM-version: Major 2 Minor 3 Patch 1 (-1 == x / 1) Fork: openfoam
No change to swak4FoamParsers/foamVersion4swak.H
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakLagrangianParser.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date.
Compiling swakFvOptions
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakFvOptions.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date.

SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Most people are fine without it

'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakDynamicMeshFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakMeshWaveFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakMRFFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/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

'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libsimpleCloudFunctionObjects.so' is up to date.
'/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/libswakCloudFunctionObjects.so' is up to date.

SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Utility funkyPythonPostproc not compiled

make[1]: '/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date.
make[1]: '/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/bin/funkyDoCalc' is up to date.
make[1]: '/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/bin/fieldReport' is up to date.
make[1]: '/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' is up to date.
make[1]: '/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/bin/funkySetFields' is up to date.
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/sampling/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/lagrangian/basic/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/lagrangian/intermediate/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/thermophysicalModels/basic/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/thermophysicalModels/radiation/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/thermophysicalModels/SLGThermo/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/thermophysicalModels/reactionThermo/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/thermophysicalModels/specie/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/thermophysicalModels/properties/solidProperties/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/regionModels/surfaceFilmModels/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/regionModels/regionModel/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/transportModels/compressible/lnInclude -I../../Libraries/swakLagrangianParser/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/ycui/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkySetLagrangianField.o -L/home/ycui/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib \
-lfiniteVolume -lmeshTools -llagrangian -L/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib -lswakLagrangianParser -lswak4FoamParsers -lOpenFOAM -ldl -lm -o /home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/bin/funkySetLagrangianField
make[1]: '/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/bin/funkyWarpMesh' is up to date.
make[1]: '/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date.
/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/liblagrangianIntermediate.so: undefined reference to `Foam::UOPstream::writeQuoted(std::string const&, bool)'
/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/liblagrangianIntermediate.so: undefined reference to `Foam::regExp::match(std::string const&) const'
/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/lib/liblagrangianIntermediate.so: undefined reference to `Foam::regExp::regExp(std::string const&, bool)'
collect2: error: ld returned 1 exit status
/home/ycui/OpenFOAM/OpenFOAM-2.3.1/wmake/Makefile:149: recipe for target '/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/bin/funkySetLagrangianField' failed
make[1]: *** [/home/ycui/OpenFOAM/ycui-2.3.1/platforms/linux64GccDPOpt/bin/funkySetLagrangianField] Error 1
/home/ycui/OpenFOAM/OpenFOAM-2.3.1/wmake/MakefileApps:39: recipe for target 'funkySetLagrangianField' failed
make: *** [funkySetLagrangianField] Error 2
make: Target 'application' not remade because of errors.


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/ycui/OpenFOAM/ycui-2.3.1/swak4Foam_2.x/Libraries (most people will be fine without setting that variable)
Any idea for fixing this problem?

Best regards,

@ycui

Last edited by ycui; November 11, 2016 at 06:16.
ycui is offline   Reply With Quote

Old   November 11, 2016, 08:12
Default
  #2
New Member
 
Join Date: Nov 2016
Posts: 16
Rep Power: 9
ycui is on a distinguished road
I fixed this problem by changing swak4Foam version to 0.4.1. And delete linux64GccDPOpt.
makaveli_lcf and wyldckat like this.
ycui is offline   Reply With Quote

Old   November 14, 2016, 07:41
Default
  #3
Senior Member
 
rdbisme's Avatar
 
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13
rdbisme is on a distinguished road
Quote:
Originally Posted by ycui View Post
I fixed this problem by changing swak4Foam version to 0.4.1. And delete linux64GccDPOpt.
As a matter of additional comment: when some of the builds fails (both for OpeFOAM, ThirdParty, or swak) remember to make a wclean (all or specifically to the last item that failed the compilation).

At least for me the error you showed seems coming from a second attempt of compilation over a non-cleaned failed compilation of swak4Foam.
rdbisme is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 16, 2019 23:12
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 12:46.