CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] some errors in compiling groovyBC in OF220 (https://www.cfd-online.com/Forums/openfoam-community-contributions/115214-some-errors-compiling-groovybc-of220.html)

immortality March 26, 2013 07:16

some errors in compiling groovyBC in OF220
 
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)


gschaider March 26, 2013 07:30

Quote:

Originally Posted by immortality (Post 416472)
I want to compile groovyBC 0.2.1 in OF 220.but it shows errors and OF doesn't recognize the groovyBC boundary condition.

Not even release 0.2.2 will compile on OF2.2. Get release 0.2.3. And you'll have to comment out one line with that (see discussions elsewhere) if you're using 2.2.0 (2.2.x will work out of the box)

immortality March 26, 2013 08:08

thank you dear Bernard.
I should ask a silly question now about where can find latest versions you mentioned if they are released.I couldn't find them in openfoamwiki.net contrib.
and where i can find discussions about compiling it for OF 2.2.0
thank you very much.

immortality March 27, 2013 10:52

then it isn't possible to use groovyBC in new OpenFOAM 2.2.0?

gschaider March 27, 2013 12:22

Quote:

Originally Posted by immortality (Post 416774)
then it isn't possible to use groovyBC in new OpenFOAM 2.2.0?

Yes it is. Have you ever tried Advanced Search (in the Search Menu)? Keywords "swak4Foam 2.2.0" and "Show posts" finds you exactly one post with all you need to know: http://www.cfd-online.com/Forums/ope...tml#post415456

Please try it yourself

immortality March 28, 2013 07:43

I downloaded 0.2.3 and commented out the line you had told.but this error(end lines of message) is shown(OF versin is 2.2.0):
Code:

SOURCE=helpers/printSwakVersion.C ;  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/sampling/lnInclude -I/opt/openfoam220/src/fileFormats/lnInclude -I/opt/openfoam220/src/triSurface/lnInclude -I/opt/openfoam220/src/surfMesh/lnInclude -I/opt/openfoam220/src/lagrangian/basic/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/printSwakVersion.o
In file included from helpers/printSwakVersion.C:44:0:
lnInclude/swak.H:100:1: error: ‘define’ does not name a type
make: *** [Make/linux64GccDPOpt/printSwakVersion.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it
Requirements for Library not satisfied. I see no sense in going on

another question I have is that how can I be aware of new releases of SWAK4FOAM?
thanks.

gschaider March 28, 2013 08:32

Quote:

Originally Posted by immortality (Post 416954)
I downloaded 0.2.3 and commented out the line you had told.but this error(end lines of message) is shown(OF versin is 2.2.0):
Code:

SOURCE=helpers/printSwakVersion.C ;  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/sampling/lnInclude -I/opt/openfoam220/src/fileFormats/lnInclude -I/opt/openfoam220/src/triSurface/lnInclude -I/opt/openfoam220/src/surfMesh/lnInclude -I/opt/openfoam220/src/lagrangian/basic/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/printSwakVersion.o
In file included from helpers/printSwakVersion.C:44:0:
lnInclude/swak.H:100:1: error: ‘define’ does not name a type
make: *** [Make/linux64GccDPOpt/printSwakVersion.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it
Requirements for Library not satisfied. I see no sense in going on

another question I have is that how can I be aware of new releases of SWAK4FOAM?
thanks.

Remember the search function? Look for "swak4Foam new release", see which of the listed threads might be the right one and subscribe to it in the "Thread Tools"

immortality March 28, 2013 09:32

thanks.what about the problem?you prefer I propound it at that thread?

immortality March 28, 2013 14:41

thank you dear Bernard.it resolved now has compiled and works successfully ;)

immortality March 29, 2013 00:23

you didn't introduce a way to be aware quickly of new advances in useful library groovyBC you provide other than thread.
Thank you.

immortality April 1, 2013 03:46

always all people should refer to that thread?
I suggest to make a simple blog or anything like this for such a great work you have done then accessing it will be more easy.
Thanks.


All times are GMT -4. The time now is 06:31.