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

[swak4Foam] Problems installing swak4Foam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2010, 08:44
Default Problems installing swak4Foam
  #1
New Member
 
Raimonds Vilums
Join Date: Oct 2010
Posts: 17
Rep Power: 16
argonaut is on a distinguished road
I try to build swak4Foam, but get errors. Can anybody see where is the problem? First errors are the following:

Code:
[swak4Foam]$ ./Allwmake
Making dependency list for source file SurfacesRepository.C
Making dependency list for source file ExpressionResult.C
Making dependency list for source file FieldValueExpressionParser.yy
could not open file FieldValueExpressionParser_stack.hh for source file FieldValueExpressionParser.yy
could not open file FieldValueExpressionParser_location.hh 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
gcc 4.3.3
bison 2.4.3
flex 2.5.35
argonaut is offline   Reply With Quote

Old   December 20, 2010, 12:07
Default
  #2
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 argonaut View Post
I try to build swak4Foam, but get errors. Can anybody see where is the problem? First errors are the following:

Code:
[swak4Foam]$ ./Allwmake
Making dependency list for source file SurfacesRepository.C
Making dependency list for source file ExpressionResult.C
Making dependency list for source file FieldValueExpressionParser.yy
could not open file FieldValueExpressionParser_stack.hh for source file FieldValueExpressionParser.yy
could not open file FieldValueExpressionParser_location.hh 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
gcc 4.3.3
bison 2.4.3
flex 2.5.35
These errors are OK (FieldValueExpressionParser_stack.hh et al are generated by bison/yacc). The first error that gcc throws would be interesting (but good thinking to start with the errors from the top. Appreciated)

Bernhard
gschaider is offline   Reply With Quote

Old   December 21, 2010, 10:25
Default
  #3
New Member
 
Raimonds Vilums
Join Date: Oct 2010
Posts: 17
Rep Power: 16
argonaut is on a distinguished road
If you say so, maybe everything is OK? Word "error" is mentioned later and first appearances I copy here. I attached also full warning and error log. I would be glad if you could take a look and say if I have big problems or not.

I would like also to mention that my linux is quite old (and I do not have root rights), but I built lot of usual utilities by myself. Some of them still could be old and making problems, e.g. findutils. btw, "find" is complaining that it does not recognize -L switch. Unfortunately, I could not build newest findutils.

Code:
In file included from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObject.H:40:36: error: timelineFunctionObject.H: No such file or directory
In file included from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObject.H:56: error: expected class-name before '{' token
general/swakExpressionFunctionObject.H:56: warning: 'class Foam::swakExpressionFunctionObject' has virtual functions and accessible non-virtual destructor
In file included from general/swakExpressionFunctionObject.H:115,
                 from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObjectTemplates.C: In member function 'void Foam::swakExpressionFunctionObject::writeData(Foam::CommonValueExpressionDriver&)':
general/swakExpressionFunctionObjectTemplates.C:68: error: there are no arguments to 'verbose' that depend on a template parameter, so a declaration of 'verbose' must be available
general/swakExpressionFunctionObjectTemplates.C:68: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
general/swakExpressionFunctionObjectTemplates.C:76: error: 'OFstream' was not declared in this scope
general/swakExpressionFunctionObjectTemplates.C:76: error: 'o' was not declared in this scope
general/swakExpressionFunctionObjectTemplates.C:76: error: 'filePtrs_' was not declared in this scope
general/swakExpressionFunctionObjectTemplates.C:76: error: no matching function for call to 'name()'
Attached Files
File Type: txt error_log.txt (28.4 KB, 3 views)
argonaut is offline   Reply With Quote

Old   December 22, 2010, 05:51
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 argonaut View Post
If you say so, maybe everything is OK? Word "error" is mentioned later and first appearances I copy here. I attached also full warning and error log. I would be glad if you could take a look and say if I have big problems or not.

I would like also to mention that my linux is quite old (and I do not have root rights), but I built lot of usual utilities by myself. Some of them still could be old and making problems, e.g. findutils. btw, "find" is complaining that it does not recognize -L switch. Unfortunately, I could not build newest findutils.

Code:
In file included from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObject.H:40:36: error: timelineFunctionObject.H: No such file or directory
In file included from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObject.H:56: error: expected class-name before '{' token
general/swakExpressionFunctionObject.H:56: warning: 'class Foam::swakExpressionFunctionObject' has virtual functions and accessible non-virtual destructor
In file included from general/swakExpressionFunctionObject.H:115,
                 from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObjectTemplates.C: In member function 'void Foam::swakExpressionFunctionObject::writeData(Foam::CommonValueExpressionDriver&)':
general/swakExpressionFunctionObjectTemplates.C:68: error: there are no arguments to 'verbose' that depend on a template parameter, so a declaration of 'verbose' must be available
general/swakExpressionFunctionObjectTemplates.C:68: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
general/swakExpressionFunctionObjectTemplates.C:76: error: 'OFstream' was not declared in this scope
general/swakExpressionFunctionObjectTemplates.C:76: error: 'o' was not declared in this scope
general/swakExpressionFunctionObjectTemplates.C:76: error: 'filePtrs_' was not declared in this scope
general/swakExpressionFunctionObjectTemplates.C:76: error: no matching function for call to 'name()'
Please have a look at the README. Section Requirements. Point 3. If only the compilation of swakSimpleFunctionObjects fails because of this requirement the other parts of swak (groovyBC and funkySetFields) will work fine
gschaider is offline   Reply With Quote

Old   February 11, 2011, 13:11
Default
  #5
New Member
 
Raimonds Vilums
Join Date: Oct 2010
Posts: 17
Rep Power: 16
argonaut is on a distinguished road
Late thanks for your reply. I decided to leave university's claster for a while and installed new Ubuntu + OpenFOAM besides Windows on my desktop PC. Installation of swak4foam also was successful and I even run my test case with groovyBC. I guess I have to get used not to pay too much attention to all bla bla bla that is throwen during compilation
argonaut is offline   Reply With Quote

Reply

Tags
swak4foam error

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
[swak4Foam] problems with averaging a new field fgarita OpenFOAM Community Contributions 1 October 28, 2016 04:27
[swak4Foam] OF 3.0.0 cluster install problems fatirishman53 OpenFOAM Community Contributions 1 September 7, 2016 11:24
Problems installing OpenFOAM 2.3.0, 1.6-ext and foam-extend 3.0 sam.ho OpenFOAM Installation 35 April 5, 2014 16:31
[swak4Foam] problems using "accumulations (weightedAverage)" in parallel safre OpenFOAM Community Contributions 5 January 9, 2014 03:53
Problems installing CFX on Sun Unix Platform Haley CFX 2 November 9, 2001 10:52


All times are GMT -4. The time now is 19:55.