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

[swak4Foam] Error installing swak4Foam

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

Like Tree26Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2013, 10:25
Default Error installing swak4Foam
  #1
Senior Member
 
Hisham's Avatar
 
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 16
Hisham is on a distinguished road
Dear Foamers,

I want to install swak4Foam under OF-1.6-ext. I downloaded swak4Foam using:
This is the one refereed to by the Wiki-page as the development version as the link to the current version is kaputt.

Going to the directory and ./Allwmake, I get:
Code:
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorFieldField.C:46:1: error: no matching function for call to ‘symm(Foam::pointPatchField<Foam::SymmTensor<double> >&, const Foam::pointPatchField<Foam::SymmTensor<double> >&)’
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorFieldField.C:46:1: note: candidates are:
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/SymmTensorI.H:277:32: note: template<class Cmpt> const Foam::SymmTensor<Cmpt>& Foam::symm(const Foam::SymmTensor<Cmpt>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/dimensionedSymmTensor.H:57:23: note: Foam::dimensionedSymmTensor Foam::symm(const dimensionedSymmTensor&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/dimensionedSymmTensor.H:57:23: note:   candidate expects 1 argument, 2 provided
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/TensorI.H:390:25: note: template<class Cmpt> Foam::SymmTensor<Cmpt> Foam::symm(const Foam::Tensor<Cmpt>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/dimensionedTensor.H:62:23: note: Foam::dimensionedSymmTensor Foam::symm(const dimensionedTensor&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/dimensionedTensor.H:62:23: note:   candidate expects 1 argument, 2 provided
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorField.H:60:1: note: void Foam::symm(Foam::Field<Foam::SymmTensor<double> >&, const Foam::UList<Foam::SymmTensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorField.H:60:1: note:   no known conversion for argument 1 from ‘Foam::pointPatchField<Foam::SymmTensor<double> >’ to ‘Foam::Field<Foam::SymmTensor<double> >&’
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorField.H:60:1: note: Foam::tmp<Foam::Field<Foam::SymmTensor<double> > > Foam::symm(const Foam::UList<Foam::SymmTensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorField.H:60:1: note:   candidate expects 1 argument, 2 provided
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorField.H:60:1: note: Foam::tmp<Foam::Field<Foam::SymmTensor<double> > > Foam::symm(const Foam::tmp<Foam::Field<Foam::SymmTensor<double> > >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorField.H:60:1: note:   candidate expects 1 argument, 2 provided
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorField.H:59:1: note: void Foam::symm(Foam::Field<Foam::SymmTensor<double> >&, const Foam::UList<Foam::Tensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorField.H:59:1: note:   no known conversion for argument 1 from ‘Foam::pointPatchField<Foam::SymmTensor<double> >’ to ‘Foam::Field<Foam::SymmTensor<double> >&’
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorField.H:59:1: note: Foam::tmp<Foam::Field<Foam::SymmTensor<double> > > Foam::symm(const Foam::UList<Foam::Tensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorField.H:59:1: note:   candidate expects 1 argument, 2 provided
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorField.H:59:1: note: Foam::tmp<Foam::Field<Foam::SymmTensor<double> > > Foam::symm(const Foam::tmp<Foam::Field<Foam::Tensor<double> > >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorField.H:59:1: note:   candidate expects 1 argument, 2 provided
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedSymmTensorField.C:44:1: note: template<class GeoMesh> Foam::tmp<Foam::DimensionedField<Foam::SymmTensor<double>, GeoMesh> > Foam::symm(const Foam::DimensionedField<Foam::SymmTensor<double>, GeoMesh>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedSymmTensorField.C:44:1: note: template<class GeoMesh> Foam::tmp<Foam::DimensionedField<Foam::SymmTensor<double>, GeoMesh> > Foam::symm(const Foam::tmp<Foam::DimensionedField<Foam::SymmTensor<double>, GeoMesh> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/GeometricSymmTensorField.C:44:1: note: template<template<class> class PatchField, class GeoMesh> Foam::tmp<Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh> > Foam::symm(const Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/GeometricSymmTensorField.C:44:1: note: template<template<class> class PatchField, class GeoMesh> Foam::tmp<Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh> > Foam::symm(const Foam::tmp<Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorFieldField.C:46:1: note: template<template<class> class Field> void Foam::symm(Foam::FieldField<Field, Foam::SymmTensor<double> >&, const Foam::FieldField<Field, Foam::SymmTensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorFieldField.C:46:1: note: template<template<class> class Field> Foam::tmp<Foam::FieldField<Field, Foam::SymmTensor<double> > > Foam::symm(const Foam::FieldField<Field, Foam::SymmTensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorFieldField.C:46:1: note: template<template<class> class Field> Foam::tmp<Foam::FieldField<Field, Foam::SymmTensor<double> > > Foam::symm(const Foam::tmp<Foam::FieldField<Field, Foam::SymmTensor<double> > >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/PointPatchFieldFunctions.H:534:6: note: template<template<class> class PatchField, class Mesh, class PointPatch, template<class> class MatrixType> void Foam::symm(Foam::PointPatchField<PatchField, Mesh, PointPatch, MatrixType, Foam::SymmTensor<double> >&, const Foam::PointPatchField<PatchField, Mesh, PointPatch, MatrixType, Foam::Tensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/GeometricTensorField.C:42:1: note: template<template<class> class PatchField, class GeoMesh> void Foam::symm(Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh>&, const Foam::GeometricField<Foam::Tensor<double>, PatchField, GeoMesh>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorFieldField.C:44:1: note: template<template<class> class Field> Foam::tmp<Foam::FieldField<Field, Foam::SymmTensor<double> > > Foam::symm(const Foam::tmp<Foam::FieldField<Field, Foam::Tensor<double> > >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorFieldField.C:44:1: note: template<template<class> class Field> Foam::tmp<Foam::FieldField<Field, Foam::SymmTensor<double> > > Foam::symm(const Foam::FieldField<Field, Foam::Tensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorFieldField.C:44:1: note: template<template<class> class Field> void Foam::symm(Foam::FieldField<Field, Foam::SymmTensor<double> >&, const Foam::FieldField<Field, Foam::Tensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/GeometricTensorField.C:42:1: note: template<template<class> class PatchField, class GeoMesh> Foam::tmp<Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh> > Foam::symm(const Foam::tmp<Foam::GeometricField<Foam::Tensor<double>, PatchField, GeoMesh> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/GeometricTensorField.C:42:1: note: template<template<class> class PatchField, class GeoMesh> Foam::tmp<Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh> > Foam::symm(const Foam::GeometricField<Foam::Tensor<double>, PatchField, GeoMesh>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedTensorField.C:42:1: note: template<class GeoMesh> Foam::tmp<Foam::DimensionedField<Foam::SymmTensor<double>, GeoMesh> > Foam::symm(const Foam::tmp<Foam::DimensionedField<Foam::Tensor<double>, GeoMesh> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedTensorField.C:42:1: note: template<class GeoMesh> Foam::tmp<Foam::DimensionedField<Foam::SymmTensor<double>, GeoMesh> > Foam::symm(const Foam::DimensionedField<Foam::Tensor<double>, GeoMesh>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/GeometricSymmTensorField.C:44:1: note: template<template<class> class PatchField, class GeoMesh> void Foam::symm(Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh>&, const Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh>&)
make: *** [Make/linux64GccDPOpt/FieldValueExpressionParser.o] Error 1
make: *** Waiting for unfinished jobs....
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
I have the following configurations:
Code:
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 1 Minor 6 Patch 1.6-ext
No change to swak4FoamParsers/foamVersion4swak.H

Ubuntu 12.04.1
Thanks for your help!

Best regards,
Hisham
Hisham is offline   Reply With Quote

Old   February 15, 2013, 11:50
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Hisham,

I don't have Hg+Linux nearby, so I suggest that you try the tarball version instead:
Quote:
Originally Posted by http://openfoamwiki.net/index.php/Contrib/swak4Foam#Downloading
Temporary download to replace closed SVN: As the SVN is currently offline (see the front-page for information) the tarballs of the latest release (0.2.1) can be downloaded here for OpenFOAM 2.x and OpenFOAM 1.x.
It's the last link.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 15, 2013, 12:27
Default
  #3
Senior Member
 
Hisham's Avatar
 
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 16
Hisham is on a distinguished road
Hi Bruno

Thanks a lot. How did I miss reading that? The tarball compiles smoothly as butter .

Thanks again!
Hisham
Hisham is offline   Reply With Quote

Old   February 15, 2013, 14:19
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Hisham View Post
Dear Foamers,

I want to install swak4Foam under OF-1.6-ext. I downloaded swak4Foam using:
This is the one refereed to by the Wiki-page as the development version as the link to the current version is kaputt.

Going to the directory and ./Allwmake, I get:
Code:
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorFieldField.C:46:1: error: no matching function for call to ‘symm(Foam::pointPatchField<Foam::SymmTensor<double> >&, const Foam::pointPatchField<Foam::SymmTensor<double> >&)’

<snip>

make: *** [Make/linux64GccDPOpt/FieldValueExpressionParser.o] Error 1
make: *** Waiting for unfinished jobs....
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
I have the following configurations:
Code:
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 1 Minor 6 Patch 1.6-ext
No change to swak4FoamParsers/foamVersion4swak.H

Ubuntu 12.04.1
Thanks for your help!

Best regards,
Hisham
The problem is a workaround for older versions of 1.6-ext that does not seem to be necessary anymore. In the file

Libraries/swak4FoamParsers/include/swak.H

comment out the line

Code:
#define FOAM_SYMMTENSOR_WORKAROUND
to

Code:
// #define FOAM_SYMMTENSOR_WORKAROUND
charmc likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   February 15, 2013, 14:26
Default
  #5
Senior Member
 
Hisham's Avatar
 
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 16
Hisham is on a distinguished road
Thanks Bernhard!
Hisham is offline   Reply With Quote

Old   March 14, 2013, 05:43
Default
  #6
New Member
 
Rasesh
Join Date: Oct 2012
Location: Mumbai, India
Posts: 5
Rep Power: 13
Rasesh is on a distinguished road
Hi all
I have OpenFOAM version 2.0.1, Bison 2.4.1, flex 2.5.35 and ubuntu 11.10.
When i try to wmake all the swak4foam downloaded from tarball, I get an error message that
" make: *** [Make/linuxGccDPOpt/FieldValueExpressionParser.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it"

Can anyone help??

Thank you
Rasesh is offline   Reply With Quote

Old   March 14, 2013, 05:54
Default
  #7
New Member
 
Rasesh
Join Date: Oct 2012
Location: Mumbai, India
Posts: 5
Rep Power: 13
Rasesh is on a distinguished road
I have also tried the version on github by wyldckat.
That gives another error.
"make[1]: Leaving directory `/home/achyut/swak4foam-master/Utilities/replayTransientBC'
make: Target `application' not remade because of errors."

Thank you
Rasesh is offline   Reply With Quote

Old   March 14, 2013, 06:26
Default
  #8
New Member
 
Rasesh
Join Date: Oct 2012
Location: Mumbai, India
Posts: 5
Rep Power: 13
Rasesh is on a distinguished road
Sorry for less info
I am getting these errors in tarball installation:
Code:
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 0 Patch 1 (-1 == x)
No swak4FoamParsers/foamVersion4swak.H. Generated
SOURCE=helpers/printSwakVersion.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/printSwakVersion.o
SOURCE=repositories/SurfacesRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/SurfacesRepository.o
SOURCE=repositories/MeshesRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/MeshesRepository.o
SOURCE=repositories/SetsRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/SetsRepository.o
SOURCE=repositories/GlobalVariablesRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/GlobalVariablesRepository.o
SOURCE=namedEnums/MeshInterpolationOrder.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/MeshInterpolationOrder.o
SOURCE=namedEnums/LogicalAccumulationNamedEnum.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/LogicalAccumulationNamedEnum.o
SOURCE=namedEnums/NumericAccumulationNamedEnum.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/NumericAccumulationNamedEnum.o
SOURCE=ExpressionDriverWriter.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ExpressionDriverWriter.o
SOURCE=ExpressionResult/ExpressionResult.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ExpressionResult.o
SOURCE=ExpressionResult/StoredExpressionResult.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/StoredExpressionResult.o
SOURCE=ExpressionResult/DelayedExpressionResult.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/DelayedExpressionResult.o
SOURCE=setsAndSurfaces/swakRegistryProxySurface.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/swakRegistryProxySurface.o
SOURCE=setsAndSurfaces/swakRegistryProxySet.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/swakRegistryProxySet.o
SOURCE=FieldValueExpressionParser.yy ; rm -f Make/linuxGccDPOpt/FieldValueExpressionParser.C Make/linuxGccDPOpt/FieldValueExpressionParser.tab.hh; mkdir $$; cd $$; bison -ra -v  -d ../$SOURCE ; mv *.tab.cc ../Make/linuxGccDPOpt/FieldValueExpressionParser.C ; sed -i.bak "s/position.hh/FieldValueExpressionParser_position.hh/" location.hh ; mv location.hh ../lnInclude/FieldValueExpressionParser_location.hh ; mv stack.hh ../lnInclude/FieldValueExpressionParser_stack.hh ; mv position.hh ../lnInclude/FieldValueExpressionParser_position.hh ; sed -i.bak "s/stack.hh/FieldValueExpressionParser_stack.hh/;s/location.hh/FieldValueExpressionParser_location.hh/" FieldValueExpressionParser.tab.hh ;mv *.hh ../lnInclude ; touch -r ../$SOURCE ../lnInclude/FieldValueExpressionParser*.hh ; cd ..; rm -r $$;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c  Make/linuxGccDPOpt/FieldValueExpressionParser.C -o Make/linuxGccDPOpt/FieldValueExpressionParser.o 
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
Thank you
Rasesh is offline   Reply With Quote

Old   March 14, 2013, 06:56
Default
  #9
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Rasesh View Post
Sorry for less info
I am getting these errors in tarball installation:
Code:
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 0 Patch 1 (-1 == x)
No swak4FoamParsers/foamVersion4swak.H. Generated
SOURCE=helpers/printSwakVersion.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/printSwakVersion.o
SOURCE=repositories/SurfacesRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/SurfacesRepository.o
SOURCE=repositories/MeshesRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/MeshesRepository.o
SOURCE=repositories/SetsRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/SetsRepository.o
SOURCE=repositories/GlobalVariablesRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/GlobalVariablesRepository.o
SOURCE=namedEnums/MeshInterpolationOrder.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/MeshInterpolationOrder.o
SOURCE=namedEnums/LogicalAccumulationNamedEnum.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/LogicalAccumulationNamedEnum.o
SOURCE=namedEnums/NumericAccumulationNamedEnum.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/NumericAccumulationNamedEnum.o
SOURCE=ExpressionDriverWriter.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ExpressionDriverWriter.o
SOURCE=ExpressionResult/ExpressionResult.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ExpressionResult.o
SOURCE=ExpressionResult/StoredExpressionResult.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/StoredExpressionResult.o
SOURCE=ExpressionResult/DelayedExpressionResult.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/DelayedExpressionResult.o
SOURCE=setsAndSurfaces/swakRegistryProxySurface.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/swakRegistryProxySurface.o
SOURCE=setsAndSurfaces/swakRegistryProxySet.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/swakRegistryProxySet.o
SOURCE=FieldValueExpressionParser.yy ; rm -f Make/linuxGccDPOpt/FieldValueExpressionParser.C Make/linuxGccDPOpt/FieldValueExpressionParser.tab.hh; mkdir $$; cd $$; bison -ra -v  -d ../$SOURCE ; mv *.tab.cc ../Make/linuxGccDPOpt/FieldValueExpressionParser.C ; sed -i.bak "s/position.hh/FieldValueExpressionParser_position.hh/" location.hh ; mv location.hh ../lnInclude/FieldValueExpressionParser_location.hh ; mv stack.hh ../lnInclude/FieldValueExpressionParser_stack.hh ; mv position.hh ../lnInclude/FieldValueExpressionParser_position.hh ; sed -i.bak "s/stack.hh/FieldValueExpressionParser_stack.hh/;s/location.hh/FieldValueExpressionParser_location.hh/" FieldValueExpressionParser.tab.hh ;mv *.hh ../lnInclude ; touch -r ../$SOURCE ../lnInclude/FieldValueExpressionParser*.hh ; cd ..; rm -r $$;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt  	 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude   -fPIC -c  Make/linuxGccDPOpt/FieldValueExpressionParser.C -o Make/linuxGccDPOpt/FieldValueExpressionParser.o 
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
Thank you
You say that you have OF 2.0.x. I guess the problem is that I only tested the compilation with 2.1.x as I currently have no working 2.0.x. The output you give is missing the error message from the compiler (and that makes it quite hard to see what the problem might be). Probably because you only redirected the standard output and not the standard error. So instead of

./Allwmake >make.log

do something like (depends on your shell)

./Allwmake 2>&1 >make.log
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 14, 2013, 08:34
Default
  #10
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Rasesh View Post
Hi all
I have OpenFOAM version 2.0.1, Bison 2.4.1, flex 2.5.35 and ubuntu 11.10.
When i try to wmake all the swak4foam downloaded from tarball, I get an error message that
" make: *** [Make/linuxGccDPOpt/FieldValueExpressionParser.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it"

Can anyone help??

Thank you
OK. The problem is that a number of things are named diferently between 2.0.x and 2.1.x

I attach a patch that implements a temporary fix and will fix it permanently in the development version: this fix doesn't compile everything, but groovyBC and funkySetFields should work (which covers in my experience 80% of the use-cases).

swakFixFor20x.patch
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 16, 2013, 05:08
Default
  #11
New Member
 
Rasesh
Join Date: Oct 2012
Location: Mumbai, India
Posts: 5
Rep Power: 13
Rasesh is on a distinguished road
Thank you very much bernhard, After applying the patch you have given it works..
Rasesh is offline   Reply With Quote

Old   March 16, 2013, 07:05
Default
  #12
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Rasesh View Post
Thank you very much bernhard, After applying the patch you have given it works..
Thanks for the feedback. The fixes will be in the next release.
Rasesh likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 19, 2013, 09:27
Default other install/compile problem of swak4foam 0.2.3
  #13
New Member
 
Máté Márton LOHÁSZ
Join Date: Jul 2010
Posts: 5
Rep Power: 15
lohasz is on a distinguished road
Dear All,

I have compiling problem of swak4Foam with following message after second Allwmake:

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 2 Patch 0 (-1 == x)
No change to swak4FoamParsers/foamVersion4swak.H
SOURCE=repositories/MeshesRepository.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/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/sampling/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/fileFormats/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/triSurface/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/surfMesh/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/lagrangian/basic/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/MeshesRepository.o
repositories/MeshesRepository.C: In member function 'Foam::scalar Foam::MeshesRepository::setTime(const Foam::word&, Foam::scalar, Foam::label)':
repositories/MeshesRepository.C:299:59: error: no matching function for call to 'Foam::HashTable<Foam::regIOobject*>::HashTable(Fo am::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>)'
repositories/MeshesRepository.C:299:59: note: candidates are:
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTable.C:79:1: note: Foam::HashTable<T, Key, Hash>::HashTable(const Foam::Xfer<Foam::HashTable<T, Key, Hash> >&) [with T = Foam::regIOobject*, Key = Foam::word, Hash = Foam::string::hash]
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTable.C:79:1: note: no known conversion for argument 1 from 'Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>' to 'const Foam::Xfer<Foam::HashTable<Foam::regIOobject*> >&'
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTable.C:55:1: note: Foam::HashTable<T, Key, Hash>::HashTable(const Foam::HashTable<T, Key, Hash>&) [with T = Foam::regIOobject*, Key = Foam::word, Hash = Foam::string::hash]
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTable.C:55:1: note: no known conversion for argument 1 from 'Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>' to 'const Foam::HashTable<Foam::regIOobject*>&'
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTableIO.C:33:1: note: Foam::HashTable<T, Key, Hash>::HashTable(Foam::Istream&, Foam::label) [with T = Foam::regIOobject*, Key = Foam::word, Hash = Foam::string::hash, Foam::label = int]
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTableIO.C:33:1: note: no known conversion for argument 1 from 'Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>' to 'Foam::Istream&'
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTable.C:35:1: note: Foam::HashTable<T, Key, Hash>::HashTable(Foam::label) [with T = Foam::regIOobject*, Key = Foam::word, Hash = Foam::string::hash, Foam::label = int]
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTable.C:35:1: note: no known conversion for argument 1 from 'Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>' to 'int'
make: *** [Make/linux64GccDPOpt/MeshesRepository.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





It is on a Rocks 6.1, OF2.2, compiled on my own using gcc4.6.2. GCC is also compiled separatly in the ThirdParty directory. I do not know if this can matter...

Thanks for your help!
Máté
lohasz is offline   Reply With Quote

Old   March 19, 2013, 10:54
Default
  #14
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by lohasz View Post
Dear All,

I have compiling problem of swak4Foam with following message after second Allwmake:

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 2 Patch 0 (-1 == x)
No change to swak4FoamParsers/foamVersion4swak.H
SOURCE=repositories/MeshesRepository.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/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/sampling/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/fileFormats/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/triSurface/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/surfMesh/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/lagrangian/basic/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/MeshesRepository.o
repositories/MeshesRepository.C: In member function 'Foam::scalar Foam::MeshesRepository::setTime(const Foam::word&, Foam::scalar, Foam::label)':
repositories/MeshesRepository.C:299:59: error: no matching function for call to 'Foam::HashTable<Foam::regIOobject*>::HashTable(Fo am::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>)'
<snip>
make: *** [Make/linux64GccDPOpt/MeshesRepository.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





It is on a Rocks 6.1, OF2.2, compiled on my own using gcc4.6.2. GCC is also compiled separatly in the ThirdParty directory. I do not know if this can matter...
The only information missing is the version of swak you're using. From the error message I guess 0.2.2 (the one that came out a week before OF2.2 and therefor has problems compiling it). Just yesterday I released 0.2.3 which compile on 2.2 (announced it on the message board and Twitter). The development-version already compiles on 2.2 for a couple of weeks
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 19, 2013, 11:06
Default
  #15
New Member
 
Máté Márton LOHÁSZ
Join Date: Jul 2010
Posts: 5
Rep Power: 15
lohasz is on a distinguished road
Sorry, the verison of swak4foam was given in the title

It was 0.2.3, I just downloaded from: http://openfoamwiki.net/images/c/c9/...e_0.2.3.tar.gz

Thanks,
Máté
lohasz is offline   Reply With Quote

Old   March 19, 2013, 11:27
Default
  #16
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by lohasz View Post
Sorry, the verison of swak4foam was given in the title
Sorry. Overlooked it. The title is not included in the mails the system sends out (usually I read those, click on the link and start typing)

Quote:
Originally Posted by lohasz View Post
It was 0.2.3, I just downloaded from: http://openfoamwiki.net/images/c/c9/...e_0.2.3.tar.gz

Thanks,
Máté
You have 2.2? (not 2.2.x - which I have). Seems there is a difference between the two. Could you try the following: edit Libraries/swak4FoamParsers/include/swak.H and comment out the line

#define FOAM_LOOKUPCLASS_NO_CONST

and retry. Thanks
caduqued, gregjunqua and sharonyue like this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 19, 2013, 17:38
Default
  #17
New Member
 
caduqued
Join Date: Apr 2009
Location: UK
Posts: 16
Rep Power: 16
caduqued is on a distinguished road
Hi Bernhard,

First of all, thanks for that wonderful tool swak4Foam, it's saved me tons of time for simple things. I am trying to get swak4Foam working with OF-2.2.0, and was facing same problems as Lohaz. I did apply your little patch (commenting out #define FOAM_LOOKUPCLASS_NO_CONST in Libraries/swak4FoamParsers/include/swak.H ), and now it seems to compiles OK. However, I am getting, at the beginning of the compilation output log, a bunch of messages about files not found, like:

Making dependency list for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionParser.yy
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionParser.yy
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy
could not open file directMappedPatchBase.H for source file PatchValueExpressionParser.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 directMappedPointPatch.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 FieldValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionDriver.C
Making dependency list for source file PatchValueExpressionLexer.ll
Making dependency list for source file PatchValueExpressionDriver.C
Making dependency list for source file SubsetValueExpressionLexer.ll
Making dependency list for source file SubsetValueExpressionDriver.C
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 directMappedPointPatch.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
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll
could not open file directMappedPatchBase.H for source file PatchValueExpressionLexer.ll

Can I ignore those or should I pull any changes from the git repository?
Just wondering if these affect in any way the usage of swak4Foam.

Thanks,
caduqued is offline   Reply With Quote

Old   March 19, 2013, 17:51
Default
  #18
New Member
 
Máté Márton LOHÁSZ
Join Date: Jul 2010
Posts: 5
Rep Power: 15
lohasz is on a distinguished road
Yes I compiled OF2.2.0, this can make a difference.

With your suggested change it compiles. With the second Allwmake, there is no missing file, but I woulkd also be curios what gschaider propose for the future. Use this (with the suggested commented line) version, or wait for some other resolution?

Thanks for your help!

Máté
lohasz is offline   Reply With Quote

Old   March 19, 2013, 18:15
Default
  #19
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by caduqued View Post
Hi Bernhard,

First of all, thanks for that wonderful tool swak4Foam, it's saved me tons of time for simple things. I am trying to get swak4Foam working with OF-2.2.0, and was facing same problems as Lohaz. I did apply your little patch (commenting out #define FOAM_LOOKUPCLASS_NO_CONST in Libraries/swak4FoamParsers/include/swak.H ), and now it seems to compiles OK. However, I am getting, at the beginning of the compilation output log, a bunch of messages about files not found, like:

Making dependency list for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionParser.yy
<snip>

Can I ignore those or should I pull any changes from the git repository?
Just wondering if these affect in any way the usage of swak4Foam.
Yes. You can ignore those. swak relies on #ifdef/#define to compile on different OF-versions (otherwise supporting more than two OF-versions would be a nightmare. One example IS the FOAM_LOOKUPCLASS_NO_CONST). The utility that generates the dependencies ignores these #ifdefs and looks for files that are not there ... in this specific OF-version
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 19, 2013, 18:27
Default
  #20
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by lohasz View Post
Yes I compiled OF2.2.0, this can make a difference.

With your suggested change it compiles. With the second Allwmake, there is no missing file, but I woulkd also be curios what gschaider propose for the future. Use this (with the suggested commented line) version, or wait for some other resolution?
Usually it takes several months before between a released version (here 2.2.0) and the associated git-version (here 2.2.x) incompatibilities creep in. Seems that they managed this here with the initial release of the git. All I can say is http://nooooooooooooooo.com

Don't see how I can resolve this if they change the API for releases with the same version numbers. So you'll have to stick with this hand-patch
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply

Tags
compile error, swak4foam

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
InterDyMFoam+simpleFunctionObject Elham OpenFOAM Running, Solving & CFD 5 July 10, 2017 12:59
[swak4Foam] and twoPhaseEulerFoam mnikku OpenFOAM Community Contributions 1 February 19, 2016 06:21
source term in near wall cell rajcfd OpenFOAM Pre-Processing 5 February 1, 2016 11:31
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 kobayashi OpenFOAM Community Contributions 2 January 5, 2014 18:33
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 14:00


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