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

[swak4Foam] some errors in compiling groovyBC in OF220

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 26, 2013, 07:16
Default some errors in compiling groovyBC in OF220
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
I want to compile groovyBC 0.2.1 in OF 220.but it shows errors and OF doesn't recognize the groovyBC boundary condition.
Code:
ehsan@Ehsan-com:~/Downloads/swak4Foam_2.x_release_0.2.1$ ./AllwmakeNo 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
abort: no repository found in '/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1' (.hg not found)!
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 2 Patch 0
No change to swak4FoamParsers/foamVersion4swak.H
make: *** No rule to make target `/opt/openfoam220/src/OpenFOAM/lnInclude/tetPointRef.H', needed by `plugins/SampledSurfaceValuePluginFunction.dep'.  Stop.
make: *** No rule to make target `/opt/openfoam220/src/OpenFOAM/lnInclude/mixedPointPatchField.H', needed by `groovyBCPointPatchFields.dep'.  Stop.
make: *** No rule to make target `/opt/openfoam220/src/sampling/lnInclude/coordSet.H', needed by `createSampledSet.dep'.  Stop.
make: *** No rule to make target `/opt/openfoam220/src/thermophysicalModels/basic/lnInclude/basicPsiThermo.H', needed by `modelLoading/loadThermoModelFunctionObjects.dep'.  Stop.
make: *** No rule to make target `/opt/openfoam220/src/OpenFOAM/lnInclude/tetPointRef.H', needed by `EvolveReactingMultiphaseCloudFunctionObject.dep'.  Stop.
SOURCE=general/swakExpressionFunctionObject.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I../simpleFunctionObjects/lnInclude -I/home/ehsan/OpenFOAM/ehsan-2.2.0/Libraries/simpleFunctionObjects/lnInclude -I../swak4FoamParsers/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/lagrangian/basic/lnInclude  -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/swakExpressionFunctionObject.o
In file included from ../simpleFunctionObjects/lnInclude/simpleFunctionObject.H:40:0,
                 from ../simpleFunctionObjects/lnInclude/simpleDataFunctionObject.H:40,
                 from ../simpleFunctionObjects/lnInclude/timelineFunctionObject.H:40,
                 from general/swakExpressionFunctionObject.H:40,
                 from general/swakExpressionFunctionObject.C:28:
/opt/openfoam220/src/OpenFOAM/lnInclude/functionObject.H: In static member function ‘static Foam::autoPtr<Foam::functionObject> Foam::functionObject::adddictionaryConstructorToTable<functionObjectType>::New(const Foam::word&, const Foam::Time&, const Foam::dictionary&) [with functionObjectType = Foam::swakExpressionFunctionObject]’:
/opt/openfoam220/src/OpenFOAM/lnInclude/functionObject.H:86:9:   instantiated from ‘Foam::functionObject::adddictionaryConstructorToTable<functionObjectType>::adddictionaryConstructorToTable(const Foam::word&) [with functionObjectType = Foam::swakExpressionFunctionObject]’
general/swakExpressionFunctionObject.C:44:1:   instantiated from here
/opt/openfoam220/src/OpenFOAM/lnInclude/functionObject.H:86:9: error: cannot allocate an object of abstract type ‘Foam::swakExpressionFunctionObject’
general/swakExpressionFunctionObject.H:53:7: note:   because the following virtual functions are pure within ‘Foam::swakExpressionFunctionObject’:
/opt/openfoam220/src/OpenFOAM/lnInclude/functionObject.H:164:22: note: 	virtual void Foam::functionObject::updateMesh(const Foam::mapPolyMesh&)
/opt/openfoam220/src/OpenFOAM/lnInclude/functionObject.H:167:22: note: 	virtual void Foam::functionObject::movePoints(const Foam::polyMesh&)
/opt/openfoam220/src/OpenFOAM/lnInclude/functionObject.H:86:9: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [Make/linux64GccDPOpt/swakExpressionFunctionObject.o] Error 1
/usr/bin/ld: cannot find -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakTopoSources.so] Error 1
make: *** No rule to make target `/opt/openfoam220/src/finiteVolume/lnInclude/makeBasicSource.H', needed by `swakImplicitSources.dep'.  Stop.
/usr/bin/ld: cannot find -lgroovyBC
/usr/bin/ld: cannot find -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so] Error 1
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
/usr/bin/ld: cannot find -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so] Error 1
/usr/bin/ld: cannot find -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so] Error 1
/usr/bin/ld: cannot find -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so] Error 1
/usr/bin/ld: cannot find -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so] Error 1
make: *** No rule to make target `/opt/openfoam220/src/thermophysicalModels/basic/lnInclude/basicPsiThermo.H', needed by `swakThermophysicalPluginFunction.dep'.  Stop.
/usr/bin/ld: cannot find -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so] Error 1
make: *** No rule to make target `/opt/openfoam220/src/sampling/lnInclude/coordSet.H', needed by `setValueMaximumPluginFunction.dep'.  Stop.
make: *** No rule to make target `/opt/openfoam220/src/OpenFOAM/lnInclude/tetPointRef.H', needed by `lcsSpeciesSourcePluginFunction.dep'.  Stop.
/usr/bin/ld: cannot find -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so] Error 1
make[1]: Entering directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/funkyDoCalc'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkyDoCalc.o -L/opt/openfoam220/platforms/linux64GccDPOpt/lib \
	     -lfiniteVolume 	-lmeshTools 	-L/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib 	-lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/funkyDoCalc
/usr/bin/ld: cannot find -lswak4FoamParsers
collect2: ld returned 1 exit status
make[1]: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/funkyDoCalc] Error 1
make[1]: Leaving directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/funkyDoCalc'
make: *** [funkyDoCalc] Error 2
make[1]: Entering directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/funkySetBoundaryField'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkySetBoundaryField.o -L/opt/openfoam220/platforms/linux64GccDPOpt/lib \
	     -lfiniteVolume 	-lmeshTools 	-L/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib 	-lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/funkySetBoundaryField
/usr/bin/ld: cannot find -lswak4FoamParsers
collect2: ld returned 1 exit status
make[1]: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/funkySetBoundaryField] Error 1
make[1]: Leaving directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/funkySetBoundaryField'
make: *** [funkySetBoundaryField] Error 2
make[1]: Entering directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/funkySetFields'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt  	 -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkySetFields.o -L/opt/openfoam220/platforms/linux64GccDPOpt/lib \
	     -lfiniteVolume 	-lmeshTools 	-L/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/lib 	-lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/funkySetFields
/usr/bin/ld: cannot find -lswak4FoamParsers
collect2: ld returned 1 exit status
make[1]: *** [/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/funkySetFields] Error 1
make[1]: Leaving directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/funkySetFields'
make: *** [funkySetFields] Error 2
make[1]: Entering directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/replayTransientBC'
make[1]: *** No rule to make target `/opt/openfoam220/src/OpenFOAM/lnInclude/tetPointRef.H', needed by `replayTransientBC.dep'.
make[1]: Failed to remake makefile `replayTransientBC.dep'.
make[1]: Target `/home/ehsan/OpenFOAM/ehsan-2.2.0/platforms/linux64GccDPOpt/bin/replayTransientBC' not remade because of errors.
make[1]: Leaving directory `/home/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Utilities/replayTransientBC'
make: *** [replayTransientBC] 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/ehsan/Downloads/swak4Foam_2.x_release_0.2.1/Libraries (most people will be fine without setting that variable)
immortality is offline   Reply With Quote

 


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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
Help for the small implementation in turbulence model shipman OpenFOAM Programming & Development 25 March 19, 2014 10:08
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 22:40
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 03:34


All times are GMT -4. The time now is 13:41.