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] Error bulding swak4Foam (https://www.cfd-online.com/Forums/openfoam-community-contributions/112514-error-bulding-swak4foam.html)

sfigato January 30, 2013 07:56

Error bulding swak4Foam
 
Hi Foamers,

I cannot install the swak4Foam in the last repository version of OpenFOAM. I have compiled it two times. The second output message is:


No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Traceback (most recent call last):
File "./maintainanceScripts/makeSwakVersionFile.py", line 8, in <module>
output = Popen(["hg", "branch"], stdout=PIPE).communicate()[0]
File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
Bison is version 2.5
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 1 Patch x
No change to swak4FoamParsers/foamVersion4swak.H
SOURCE=CommonValueExpressionDriver.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/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/CommonValueExpressionDriver.o
CommonValueExpressionDriver.C:1309:7: error: template argument required for ‘class lessOp’
CommonValueExpressionDriver.C: In member function ‘Foam::vector Foam::CommonValueExpressionDriver::getPositionOfMi nimum(const scalarField&, const vectorField&) const’:
CommonValueExpressionDriver.C:1374:37: error: missing template arguments before ‘(’ token
CommonValueExpressionDriver.C: In member function ‘Foam::word Foam::CommonValueExpressionDriver::getHex(const void*) const’:
CommonValueExpressionDriver.C:1389:35: warning: use of old-style cast [-Wold-style-cast]
CommonValueExpressionDriver.C: In member function ‘Foam::vector Foam::CommonValueExpressionDriver::getPositionOfMi nimum(const scalarField&, const vectorField&) const’:
CommonValueExpressionDriver.C:1375:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [Make/linux64GccDPOpt/CommonValueExpressionDriver.o] Fehler 1
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libgroovyBC.so] Fehler 1
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so] Fehler 1
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so] Fehler 1
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakTopoSources.so] Fehler 1
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakSourceFields.so] Fehler 1
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lgroovyBC
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so] Fehler 1
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so] Fehler 1
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so] Fehler 1
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so] Fehler 1
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so] Fehler 1
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so] Fehler 1
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so] Fehler 1
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so] Fehler 1
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so] Fehler 1
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so] Fehler 1
make[1]: Entering directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/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/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkyDoCalc.o -L/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib \
-lfiniteVolume -lmeshTools -L/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lm -o /home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/bin/funkyDoCalc
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make[1]: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/bin/funkyDoCalc] Fehler 1
make[1]: Leaving directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4Foam_2.x_release_0.2.1/Utilities/funkyDoCalc'
make: *** [funkyDoCalc] Fehler 2
make[1]: Entering directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/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/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkySetBoundaryField.o -L/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib \
-lfiniteVolume -lmeshTools -L/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lm -o /home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/bin/funkySetBoundaryField
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make[1]: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/bin/funkySetBoundaryField] Fehler 1
make[1]: Leaving directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4Foam_2.x_release_0.2.1/Utilities/funkySetBoundaryField'
make: *** [funkySetBoundaryField] Fehler 2
make[1]: Entering directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/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/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkySetFields.o -L/opt/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib \
-lfiniteVolume -lmeshTools -L/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lm -o /home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/bin/funkySetFields
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lswak4FoamParsers
collect2: error: ld returned 1 exit status
make[1]: *** [/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/bin/funkySetFields] Fehler 1
make[1]: Leaving directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4Foam_2.x_release_0.2.1/Utilities/funkySetFields'
make: *** [funkySetFields] Fehler 2
make[1]: Entering directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4Foam_2.x_release_0.2.1/Utilities/replayTransientBC'
make[1]: »/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/bin/replayTransientBC« ist bereits aktualisiert.
make[1]: Leaving directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4Foam_2.x_release_0.2.1/Utilities/replayTransientBC'
make: Das Target »application« wurde wegen Fehlern nicht aktualisiert.


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4Foam_2.x_release_0.2.1/Libraries (most people will be fine without setting that variable


Anyone Can help me
?



Regards
MARCO

gschaider January 30, 2013 08:25

Quote:

Originally Posted by sfigato (Post 405015)
Hi Foamers,

I cannot install the swak4Foam in the last repository version of OpenFOAM. I have compiled it two times. The second output message is:


No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Traceback (most recent call last):
File "./maintainanceScripts/makeSwakVersionFile.py", line 8, in <module>
output = Popen(["hg", "branch"], stdout=PIPE).communicate()[0]
File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
Bison is version 2.5
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 1 Patch x
No change to swak4FoamParsers/foamVersion4swak.H
SOURCE=CommonValueExpressionDriver.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/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/CommonValueExpressionDriver.o
CommonValueExpressionDriver.C:1309:7: error: template argument required for ‘class lessOp’
CommonValueExpressionDriver.C: In member function ‘Foam::vector Foam::CommonValueExpressionDriver::getPositionOfMi nimum(const scalarField&, const vectorField&) const’:
CommonValueExpressionDriver.C:1374:37: error: missing template arguments before ‘(’ token

<snip>


Anyone Can help me
?



Regards
MARCO

I think we can promote this problem to rank classic but bound to be extinct (because the next release fixes it):
http://sourceforge.net/apps/mantisbt...iew.php?id=163

The Python-thing in the beginning does not concern you (that file is up-to-date for you anyway)

sfigato January 30, 2013 08:33

Hallo Bernhard,

I did not understand. I downloaded the last release that there is in OpenFoamWiki.
It is not the last one?

Can I download the real lst from the link that you post?

Greets
MARCO

gschaider January 30, 2013 08:52

Quote:

Originally Posted by sfigato (Post 405025)
Hallo Bernhard,

I did not understand. I downloaded the last release that there is in OpenFoamWiki.
It is not the last one?

Can I download the real lst from the link that you post?

Greets
MARCO

That IS the latest Release. It will be fixed in the next (in fact: the development version in the Mercurial repository already has it. But I don't call that a release until I'm sure nothing is broken - stuff I push to the public should at least compile and have no problems that I know of - but I don't vouch for it)

sfigato January 30, 2013 08:55

HI,

I am here again!! I cannot understand how to use the patch in the link to fix the problem!
Can you briefly describe the procedure?

Thx
Marco

wyldckat January 30, 2013 08:58

Greetings to all!

You can download a version with the patch already applied from here: https://github.com/wyldckat/swak4foam/archive/OF21X.zip

It's from the repository that I keep for assisting in fixing some occasional details on swak4Foam ;): https://github.com/wyldckat/swak4foam/tree/OF21X

Best regards,
Bruno

sfigato January 30, 2013 09:06

Hi Bruno,

thank you very much! I will do it!..The last question! I have installed OpenFoam in root/opt/ directory. Do I need to compile swak in root mode or I can compile it like a normal user (I prefear it!!)?

Regards
MARCO

sfigato January 30, 2013 09:12

I compiled the new version and this is the output. There is a deneid permission. If I compile it in root mode I have a OpenFOAM folder in my root directory and I want to avoid it. What can I do?

Regards
MARCO

ifas@lg-208-linux:~/OpenFOAM/ifas-2.1.x/applications/utilities/swak4foam-OF21X> ./Allwmake
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Traceback (most recent call last):
File "./maintainanceScripts/makeSwakVersionFile.py", line 8, in <module>
output = Popen(["hg", "branch"], stdout=PIPE).communicate()[0]
File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
Bison is version 2.5
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 1 Patch -1 (-1 == x)
No swak4FoamParsers/foamVersion4swak.H. Generated
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file helpers/printSwakVersion.C
Making dependency list for source file repositories/SurfacesRepository.C
Making dependency list for source file repositories/SetsRepository.C
Making dependency list for source file repositories/GlobalVariablesRepository.C
Making dependency list for source file ExpressionDriverWriter.C
Making dependency list for source file ExpressionResult/ExpressionResult.C
Making dependency list for source file ExpressionResult/StoredExpressionResult.C
Making dependency list for source file ExpressionResult/DelayedExpressionResult.C
Making dependency list for source file setsAndSurfaces/swakRegistryProxySurface.C
Making dependency list for source file setsAndSurfaces/swakRegistryProxySet.C
Making dependency list for source file FieldValueExpressionParser.yy
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionParser.yy
could not open file directMappedFvPatch.H for source file FieldValueExpressionParser.yy
could not open file directMappedWallFvPatch.H for source file FieldValueExpressionParser.yy
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionParser.yy
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionParser.yy
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionParser.yy
Making dependency list for source file PatchValueExpressionParser.yy
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy
Making dependency list for source file SubsetValueExpressionParser.yy
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionParser.yy
Making dependency list for source file CommonValueExpressionDriver.C
Making dependency list for source file makeSwakDataEntry.C
Making dependency list for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll
could not open file directMappedFvPatch.H for source file FieldValueExpressionLexer.ll
could not open file directMappedWallFvPatch.H for source file FieldValueExpressionLexer.ll
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionLexer.ll
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionLexer.ll
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionLexer.ll
Making dependency list for source file FieldValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionDriver.C
could not open file directMappedFvPatch.H for source file FieldValueExpressionDriver.C
could not open file directMappedWallFvPatch.H for source file FieldValueExpressionDriver.C
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionDriver.C
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionDriver.C
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionDriver.C
Making dependency list for source file PatchValueExpressionLexer.ll
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll
Making dependency list for source file PatchValueExpressionDriver.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
could not open file directMappedFvPatch.H for source file PatchValueExpressionDriver.C
could not open file directMappedWallFvPatch.H for source file PatchValueExpressionDriver.C
could not open file FixedValuePointPatchField.H for source file PatchValueExpressionDriver.C
could not open file ZeroGradientPointPatchField.H for source file PatchValueExpressionDriver.C
could not open file CalculatedPointPatchField.H for source file PatchValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
Making dependency list for source file SubsetValueExpressionLexer.ll
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionLexer.ll
Making dependency list for source file SubsetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionDriver.C
Making dependency list for source file SetSubsetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SetSubsetValueExpressionDriver.C
Making dependency list for source file CellSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellSetValueExpressionDriver.C
Making dependency list for source file FaceSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceSetValueExpressionDriver.C
Making dependency list for source file CellZoneValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellZoneValueExpressionDriver.C
Making dependency list for source file FaceZoneValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceZoneValueExpressionDriver.C
Making dependency list for source file SampledSurfaceValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SampledSurfaceValueExpressionDriver.C
Making dependency list for source file SampledSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SampledSetValueExpressionDriver.C
Making dependency list for source file initSwakFunctionObject.C
Making dependency list for source file plugins/CommonPluginFunction.C
Making dependency list for source file plugins/FieldValuePluginFunction.C
could not open file FieldValueExpressionParser.tab.hh for source file plugins/FieldValuePluginFunction.C
could not open file directMappedFvPatch.H for source file plugins/FieldValuePluginFunction.C
could not open file directMappedWallFvPatch.H for source file plugins/FieldValuePluginFunction.C
could not open file FixedValuePointPatchField.H for source file plugins/FieldValuePluginFunction.C
could not open file ZeroGradientPointPatchField.H for source file plugins/FieldValuePluginFunction.C
could not open file CalculatedPointPatchField.H for source file plugins/FieldValuePluginFunction.C
Making dependency list for source file plugins/PatchValuePluginFunction.C
could not open file PatchValueExpressionParser.tab.hh for source file plugins/PatchValuePluginFunction.C
Making dependency list for source file plugins/CellSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/CellSetValuePluginFunction.C
Making dependency list for source file plugins/CellZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/CellZoneValuePluginFunction.C
Making dependency list for source file plugins/FaceSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/FaceSetValuePluginFunction.C
Making dependency list for source file plugins/FaceZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/FaceZoneValuePluginFunction.C
Making dependency list for source file plugins/SampledSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSetValuePluginFunction.C
Making dependency list for source file plugins/SampledSurfaceValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSurfaceValuePluginFunction.C

wyldckat January 30, 2013 09:19

Like Bernhard said, you can ignore this line:
Quote:

Code:

OSError: [Errno 13] Permission denied


sfigato January 30, 2013 09:29

It seems to work!

Guys, you are amazing!!
How can I check if everything is fine??

Thanks Again!
Marco

wyldckat January 30, 2013 09:41

Run Allwmake again ;)

sfigato January 30, 2013 09:45

I think that it is fine!!

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Traceback (most recent call last):
File "./maintainanceScripts/makeSwakVersionFile.py", line 8, in <module>
output = Popen(["hg", "branch"], stdout=PIPE).communicate()[0]
File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
Bison is version 2.5
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 1 Patch -1 (-1 == x)
No change to swak4FoamParsers/foamVersion4swak.H
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date .
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
make[1]: Entering directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4foam-OF21X/Utilities/funkyDoCalc'
make[1]: »/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/bin/funkyDoCalc« ist bereits aktualisiert.
make[1]: Leaving directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4foam-OF21X/Utilities/funkyDoCalc'
make[1]: Entering directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4foam-OF21X/Utilities/funkySetBoundaryField'
make[1]: »/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/bin/funkySetBoundaryField« ist bereits aktualisiert.
make[1]: Leaving directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4foam-OF21X/Utilities/funkySetBoundaryField'
make[1]: Entering directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4foam-OF21X/Utilities/funkySetFields'
make[1]: »/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/bin/funkySetFields« ist bereits aktualisiert.
make[1]: Leaving directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4foam-OF21X/Utilities/funkySetFields'
make[1]: Entering directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4foam-OF21X/Utilities/replayTransientBC'
make[1]: »/home/ifas/OpenFOAM/ifas-2.1.x/platforms/linux64GccDPOpt/bin/replayTransientBC« ist bereits aktualisiert.
make[1]: Leaving directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4foam-OF21X/Utilities/replayTransientBC'


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4foam-OF21X/Libraries (most people will be fine without setting that variable)

Grazieee
Marco

gschaider January 30, 2013 10:13

Quote:

Originally Posted by sfigato (Post 405057)
I think that it is fine!!

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Traceback (most recent call last):
File "./maintainanceScripts/makeSwakVersionFile.py", line 8, in <module>
output = Popen(["hg", "branch"], stdout=PIPE).communicate()[0]
File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
Bison is version 2.5
Flex is version 2.5.35 (Minor version: 35)

<snip>

make[1]: Leaving directory `/home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4foam-OF21X/Utilities/replayTransientBC'


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/ifas/OpenFOAM/ifas-2.1.x/applications/utilities/swak4foam-OF21X/Libraries (most people will be fine without setting that variable)

Grazieee
Marco

This looks like a successful build

sfigato January 30, 2013 10:34

Hi

I am so sorry to disturb you again but I got a new installation problem. It seems harder than before (I heva already checked some old Bruno`s post). When I type paraFoam & on my terminal , it dispalys:FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake


Pleaseee help me again...I try to setup properly OpenFOAM!

Regards
Marco

wyldckat January 30, 2013 15:53

FYI for future readers, Marco's latest question is being answered here: http://www.cfd-online.com/Forums/ope...se-12-2-a.html

atoof August 22, 2013 08:02

Dear Bruno,

I am using OF2.1.x and I installed Swak4Foam_0.2.3. It seems that installing is OK (after ./Allwmake twice):

Code:

mohammad@ubuntu:~/Swak4Foam_2.x_release_0.2.3$ ./Allwmake
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Bison is version 2.5
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 1 Patch -1 (-1 == x)
No change to swak4FoamParsers/foamVersion4swak.H
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswak4FoamParsers.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libgroovyBC.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakFunctionObjects.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libsimpleFunctionObjects.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakTopoSources.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakSourceFields.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libgroovyStandardBCs.so' is up to date.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
'/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
make[1]: Entering directory `/home/mohammad/Swak4Foam_2.x_release_0.2.3/Utilities/calcNonUniformOffsetsForMapped'
make[1]: `/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date.
make[1]: Leaving directory `/home/mohammad/Swak4Foam_2.x_release_0.2.3/Utilities/calcNonUniformOffsetsForMapped'
make[1]: Entering directory `/home/mohammad/Swak4Foam_2.x_release_0.2.3/Utilities/funkyDoCalc'
make[1]: `/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/bin/funkyDoCalc' is up to date.
make[1]: Leaving directory `/home/mohammad/Swak4Foam_2.x_release_0.2.3/Utilities/funkyDoCalc'
make[1]: Entering directory `/home/mohammad/Swak4Foam_2.x_release_0.2.3/Utilities/funkySetBoundaryField'
make[1]: `/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/bin/funkySetBoundaryField' is up to date.
make[1]: Leaving directory `/home/mohammad/Swak4Foam_2.x_release_0.2.3/Utilities/funkySetBoundaryField'
make[1]: Entering directory `/home/mohammad/Swak4Foam_2.x_release_0.2.3/Utilities/funkySetFields'
make[1]: `/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/bin/funkySetFields' is up to date.
make[1]: Leaving directory `/home/mohammad/Swak4Foam_2.x_release_0.2.3/Utilities/funkySetFields'
make[1]: Entering directory `/home/mohammad/Swak4Foam_2.x_release_0.2.3/Utilities/replayTransientBC'
make[1]: `/home/mohammad/OpenFOAM/mohammad-2.1.x/platforms/linuxGccDPOpt/bin/replayTransientBC' is up to date.
make[1]: Leaving directory `/home/mohammad/Swak4Foam_2.x_release_0.2.3/Utilities/replayTransientBC'


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/mohammad/Swak4Foam_2.x_release_0.2.3/Libraries (most people will be fine without setting that variable)

I want to add a source term to a solver, but when I compile my own solver, I encounter an error:
Code:

In file included from /home/mohammad/Swak4Foam_2.x_release_0.2.3/Libraries/swakSourceFields/expressionSource.H:48:0,
                from FGM2DWithSources.C:24:
/home/mohammad/Swak4Foam_2.x_release_0.2.3/Libraries/swak4FoamParsers/FieldValueExpressionDriver.H:49:45: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory
compilation terminated.

How to solve it?

Regards,

Hossein

wyldckat August 22, 2013 08:12

Greetings Hossein,

Solver? From the error message you're providing, it looks like you are trying to modify one of swak4Foam's libraries, not a solver!?

Can you please provide more information on how you got to that error message?

Best regards,
Bruno

gschaider August 22, 2013 09:13

Quote:

Originally Posted by atoof (Post 447434)
Dear Bruno,


I want to add a source term to a solver, but when I compile my own solver, I encounter an error:
Code:

In file included from /home/mohammad/Swak4Foam_2.x_release_0.2.3/Libraries/swakSourceFields/expressionSource.H:48:0,
                from FGM2DWithSources.C:24:
/home/mohammad/Swak4Foam_2.x_release_0.2.3/Libraries/swak4FoamParsers/FieldValueExpressionDriver.H:49:45: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory
compilation terminated.

How to solve it?

Regards,

Hossein

I think you added the path to swak4FoamParsers to your Make/options. It should be swak4FoamParsers/lnInclude (that's where this file is)

atoof August 22, 2013 12:41

Quote:

Originally Posted by gschaider (Post 447453)
I think you added the path to swak4FoamParsers to your Make/options. It should be swak4FoamParsers/lnInclude (that's where this file is)

Yes, It is true, but I do not want to change swak4foam libraries.

After modifying according your suggestion in the above post, finally, I could solve the problem. I added two addresses (sampling/lnInclude and meshTools/lnInclude) and lmeshTools to Make/option and compile the new solver.

Thanks Bruno and Bernhard, your advises have always been helpful for me.

Hossein


All times are GMT -4. The time now is 05:50.