CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

swak4Foam compilation for OF-2.0.0

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 9, 2012, 10:58
Default swak4Foam compilation for OF-2.0.0
  #1
Senior Member
 
Join Date: Mar 2009
Posts: 138
Rep Power: 8
camoesas is on a distinguished road
HI Everybody,

I have downloaded and installed swak4Foam as it is described in the wiki.
First the compilation process seemed normal to me but then I discovered that it doesnt work. So I got a closer look at the compilation output:
It starts normal with:
Quote:
ison is version 2.4.1
Reading variables from 'swakConfiguration'
OpenFOAM-version: Major 2 Minor 0 Patch 0
No Libraries/swak4FoamParsers/foamVersion4swak.H. Generated
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file SurfacesRepository.C
Making dependency list for source file SetsRepository.C
Making dependency list for source file GlobalVariablesRepository.C
Making dependency list for source file ExpressionDriverWriter.C
Making dependency list for source file ExpressionResult.C
Making dependency list for source file StoredExpressionResult.C
Making dependency list for source file swakRegistryProxySurface.C
Making dependency list for source file swakRegistryProxySet.C
Making dependency list for source file FieldValueExpressionParser.yy
could not open file FieldValueExpressionParser.tab.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
Making dependency list for source file SubsetValueExpressionParser.yy
as it is written here the missing yy files are no problem.

further down I find more odd lines:

Quote:
ExpressionResult.C: In member function 'void Foam::ExpressionResult::uglyDelete()':
ExpressionResult.C:159:20: warning: deleting 'void*' is undefined
Quote:
position.hh: In function 'bool parserField:perator==(const parserField:osition&, const parserField:osition&)':
position.hh:136:69: warning: suggest parentheses around '&&' within '||'
FieldValueExpressionParser.tab.cc: In member function 'parserField::FieldValueExpressionParser::token_nu mber_type parserField::FieldValueExpressionParser::yytransla te_(int)':
FieldValueExpressionParser.tab.cc:6651:24: warning: use of old-style cast
a lot of:
Quote:
warning: use of old-style cast
Quote:
make: *** [Make/linux64GccDPOpt/pythonInterpreterWrapper.o] Error 1
Quote:
groovyBCJumpFvPatchField.H:46:35: fatal error: fixedJumpFvPatchField.H: No such file or directory
compilation terminated.
Can anybody help me or give me a hint?
thanks camoesas
__________________
OF - 2.0.0
camoesas is offline   Reply With Quote

Old   February 9, 2012, 11:28
Default
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 138
Rep Power: 8
camoesas is on a distinguished road
I just detected, that the compilation process made me a new Directory:
/OpenFOAM/OpenFOAM-2.0.x/

But I am using: /OpenFOAM/OpenFOAM-2.0.0/
Could it be, that I have to define a path somewhere?
__________________
OF - 2.0.0
camoesas is offline   Reply With Quote

Old   February 9, 2012, 12:51
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Camoesas,

The current version of swak4Foam is designed for 2.0.x, not 2.0.0 and might not work in 2.0.1. If you really want it to work for those older versions, you'll need to get an older version of swak4Foam from SVN. Search for a tutorial on how to use SVN (subversion) and go back to one of the older versions

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 9, 2012, 16:04
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by camoesas View Post
I just detected, that the compilation process made me a new Directory:
/OpenFOAM/OpenFOAM-2.0.x/

But I am using: /OpenFOAM/OpenFOAM-2.0.0/
Could it be, that I have to define a path somewhere?
Hi!

Bruno is right in the other posting: it seems that swak4Foam does not correctly compile with 2.0.0 as the header fixedJumpFvPatchField.H was introduced afterwards. As a workaround remove the line

groovyBCJumpFvPatchFields.C

from Libraries/groovyBC/Make/files and it should work. Probably you won't need that BC anyway.

The new directory thing is strange. I don't see how an innocent compilation can create that

Bernhard
gschaider is offline   Reply With Quote

Old   February 9, 2012, 16:28
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Bernhard and Camoesas!

I forgot about that issue... probably it's a conflict of multiple installations of OpenFOAM. For these issues I have a blog post about it: Advanced tips for working with the OpenFOAM shell environment

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 13, 2012, 06:20
Default
  #6
Senior Member
 
Join Date: Mar 2009
Posts: 138
Rep Power: 8
camoesas is on a distinguished road
Hi Bruno,
Hi Bernhard,

I removed the line: groovyBCJumpFvPatchFields.C
And AFAIK its working now.

Thank you very much!

Camoesas
__________________
OF - 2.0.0
camoesas is offline   Reply With Quote

Old   November 14, 2012, 09:56
Default
  #7
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 275
Rep Power: 7
Andrea_85 is on a distinguished road
Hi all,
i am trying to compile swak4foam on OpenFoam 2.1.0. I got some warnings of the same type of camoesas and some errors:

Code:
"../FieldValueExpressionLexer.ll", line 25: unrecognized %option: reentrant
"../FieldValueExpressionLexer.ll", line 26: unrecognized %option: bison-bridge
mv: cannot stat `*.c': No such file or directory
g++: Make/linux64GccDPOpt/FieldValueExpressionLexer.C: No such file or directory
g++: no input files
make: *** [Make/linux64GccDPOpt/FieldValueExpressionLexer.o] Error 1
wmakeLnInclude: linking include files to ./lnInclude
Code:
Make/linux64GccDPOpt/funkySetBoundaryField.o: In function `main':
funkySetBoundaryField.C:(.text+0x3e9): undefined reference to `Foam::printSwakVersion()'
funkySetBoundaryField.C:(.text+0x1165): undefined reference to `Foam::CommonValueExpressionDriver::parse(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Foam::word const&)'
collect2: ld returned 1 exit status
make[1]: *** [/home/aferrari/OpenFOAM/aferrari-2.1.0/platforms/linux64GccDPOpt/bin/funkySetBoundaryField] Error 1
make[1]: Leaving directory `/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/swak4Foam/Utilities/funkySetBoundaryField'
make: *** [funkySetBoundaryField] Error 2
files:1: error: invalid preprocessing directive #funkySetFields
make[1]: Entering directory `/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/swak4Foam/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/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/finiteVolume/lnInclude -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed  -L/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib \
         -lfiniteVolume     -lmeshTools     -L/home/aferrari/OpenFOAM/aferrari-2.1.0/platforms/linux64GccDPOpt/lib     -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/aferrari/OpenFOAM/aferrari-2.1.0/platforms/linux64GccDPOpt/bin/funkySetFields
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [/home/aferrari/OpenFOAM/aferrari-2.1.0/platforms/linux64GccDPOpt/bin/funkySetFields] Error 1
make[1]: Leaving directory `/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/swak4Foam/Utilities/funkySetFields'
make: *** [funkySetFields] Error 2
Making dependency list for source file replayTransientBC.C
make[1]: Entering directory `/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/swak4Foam/Utilities/replayTransientBC'
SOURCE=replayTransientBC.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/cfdTools/lnInclude -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/cfdTools/general/lnInclude      -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/finiteVolume/lnInclude      -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/replayTransientBC.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/cfdTools/lnInclude -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/cfdTools/general/lnInclude      -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/finiteVolume/lnInclude      -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/replayTransientBC.o -L/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib \
         -lfiniteVolume -lmeshTools -lOpenFOAM -ldl   -lm -o /home/aferrari/OpenFOAM/aferrari-2.1.0/platforms/linux64GccDPOpt/bin/replayTransientBC
make[1]: Leaving directory `/home/aferrari/OpenFOAM/OpenFOAM-2.1.0/swak4Foam/Utilities/replayTransientBC'
make: Target `application' not remade because of errors.
Can you give me an help?

thanks

andrea

Last edited by Andrea_85; November 14, 2012 at 10:38.
Andrea_85 is offline   Reply With Quote

Old   November 16, 2012, 17:32
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Andrea,

It would be good to know the following details:
  • Which Linux Distribution you're using?
  • Which instructions did you follow to download and build swak4Foam?
  • Which bison version do you have installed?
    Code:
    bison --version
  • Which flex version do you have installed?
    Code:
    flex --version
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 18, 2012, 05:05
Default
  #9
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 275
Rep Power: 7
Andrea_85 is on a distinguished road
HI Bruno,
I updated flex to the required version and i managed to compile. That was the problem.

thanks

andrea
Andrea_85 is offline   Reply With Quote

Old   December 5, 2012, 05:23
Default
  #10
New Member
 
okamoto
Join Date: Nov 2012
Posts: 7
Rep Power: 4
kyushusamurai is on a distinguished road
I get below errors after "wmake all" for swak4Foam. Could anybody help me how to solve the problem?
Your cooperation is highly appreciated.


/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:170: error: ‘tmp’ declared as a ‘virtual’ field
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: expected ‘;’ before ‘<’ token
funkySetFields.C:864: error: expected ‘}’ at end of input
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:170: error: ‘tmp’ declared as a ‘virtual’ field
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:170: error: expected ‘;’ before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: ISO C++ forbids declaration of ‘tmp’ with no type
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:170: error: expected ‘;’ before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: ISO C++ forbids declaration of ‘tmp’ with no type
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: expected ‘;’ before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: ISO C++ forbids declaration of ‘tmp’ with no type
make[1]: *** [Make/linux64GccDPOpt/funkySetFields.o] Error 1
make[1]: Target `/home/faizal/OpenFOAM/faizal-2.1.1/platforms/linux64GccDPOpt/bin/funkySetFields' not remade because of errors.
make: *** [funkySetFields] Error 2
In file included from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volFields.H:38,
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: ‘tmp’ declared as a ‘virtual’ field
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: ‘tmp’ declared as a ‘virtual’ field
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.C:30,
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: expected ‘;’ before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: expected ‘;’ before ‘<’ token
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:234,
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: expected ‘;’ before ‘virtual’
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: expected ‘;’ before ‘virtual’
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolate.H:41,
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: ISO C++ forbids declaration of ‘tmp’ with no type
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: ISO C++ forbids declaration of ‘tmp’ with no type
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvc.H:39,
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: ‘tmp’ declared as a ‘virtual’ field
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: ‘tmp’ declared as a ‘virtual’ field
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvCFD.H:8,
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: expected ‘;’ before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: expected ‘;’ before ‘<’ token
from funkyDoCalc.C:39:
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: ISO C++ forbids declaration of ‘tmp’ with no type
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: ISO C++ forbids declaration of ‘tmp’ with no type
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected template-name before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: expected ‘;’ before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: expected ‘;’ before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected ‘{’ before ‘<’ token
In file included from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volFields.H:38,
In file included from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volFields.H:38,
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected unqualified-id before ‘<’ token
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.C:30,
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.C:30,
funkyDoCalc.C:160: error: expected ‘}’ at end of input
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:234,
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:234,
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolate.H:41,
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolate.H:41,
make[1]: *** [Make/linux64GccDPOpt/funkyDoCalc.o] Error 1
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvc.H:39,
make[1]: Target `/home/faizal/OpenFOAM/faizal-2.1.1/platforms/linux64GccDPOpt/bin/funkyDoCalc' not remade because of errors.
make: *** [funkyDoCalc] Error 2
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvc.H:39,
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvCFD.H:8,
from /opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvCFD.H:8,
from replayTransientBC.C:39:
from funkySetBoundaryField.C:39:
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected template-name before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected template-name before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected ‘{’ before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected ‘{’ before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected unqualified-id before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/volMesh.H:50: error: expected unqualified-id before ‘<’ token
replayTransientBC.C:182: error: expected ‘}’ at end of input
funkySetBoundaryField.C:186: error: expected ‘}’ at end of input
make[1]: *** [Make/linux64GccDPOpt/replayTransientBC.o] Error 1
make[1]: Target `/home/faizal/OpenFOAM/faizal-2.1.1/platforms/linux64GccDPOpt/bin/replayTransientBC' not remade because of errors.
make: *** [replayTransientBC] Error 2
make[1]: *** [Make/linux64GccDPOpt/funkySetBoundaryField.o] Error 1
make[1]: Target `/home/faizal/OpenFOAM/faizal-2.1.1/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' not remade because of errors.
make: *** [funkySetBoundaryField] Error 2
make: Target `application' not remade because of errors.
kyushusamurai is offline   Reply With Quote

Old   December 5, 2012, 08:22
Default
  #11
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by kyushusamurai View Post
I get below errors after "wmake all" for swak4Foam. Could anybody help me how to solve the problem?
Your cooperation is highly appreciated.


/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:170: error: ‘tmp’ declared as a ‘virtual’ field
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:191: error: expected ‘;’ before ‘<’ token
funkySetFields.C:864: error: expected ‘}’ at end of input
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:170: error: ‘tmp’ declared as a ‘virtual’ field
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:170: error: expected ‘;’ before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: ISO C++ forbids declaration of ‘tmp’ with no type
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:170: error: expected ‘;’ before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: ISO C++ forbids declaration of ‘tmp’ with no type
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:196: error: expected ‘;’ before ‘<’ token
/opt/usrx/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/surfaceInterpolationScheme.H:183: error: ISO C++ forbids declaration of ‘tmp’ with no type
make[1]: *** [Make/linux64GccDPOpt/funkySetFields.o] Error 1
That's a new one. Strange. Which compiler version do you use?

Just for fun: above the line

#include "fvCFD.H"

insert the line

#include "tmp.H"

into funkySetFields.C and see what happens (BTW: the libraries compile without problem? THAT is strange)
__________________
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   December 7, 2012, 12:36
Default compiling swak4Foam on openfoam-2.1.0
  #12
Member
 
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 4
aujamal20 is an unknown quantity at this point
Dear
I am using openfaom-2.1.0 and attempted to compile swak4Foam. I just followed the instruction give on openfoamwiki, but it showed problems. (I think i did not setup swakconfiguration file correctly)
and showing error of

"cannot find -lOpenfaom"

and after running the ./Allwmake from swak4Foam other utilities also stop working.
And if i try to compile the standard solvers or utilites the same error pop up ...
Regards
Jamal
aujamal20 is offline   Reply With Quote

Old   December 7, 2012, 13:30
Default
  #13
Member
 
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 4
aujamal20 is an unknown quantity at this point
Quote:
Originally Posted by aujamal20 View Post
Dear
I am using openfaom-2.1.0 and attempted to compile swak4Foam. I just followed the instruction give on openfoamwiki, but it showed problems. (I think i did not setup swakconfiguration file correctly)
and showing error of

"cannot find -lOpenfaom"

and after running the ./Allwmake from swak4Foam other utilities also stop working.
And if i try to compile the standard solvers or utilites the same error pop up ...
Regards
Jamal

Quote:
adin@sx600:/opt/OpenFOAM/adin-2.1.0/applications/utilities/swak4Foam$ ./Allwmake
Reading variables from 'swakConfiguration'
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/lib/python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 1 Patch 0
No swak4FoamParsers/foamVersion4swak.H. Generated
wmakeLnInclude: linking include files to ./lnInclude
...
.
.
.
.
-IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/EvolveThermoCloudFunctionObject.o
SOURCE=EvolveReactingCloudFunctionObject.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/sampling/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/pdfs/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/specie/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/liquids/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/liquidMixture/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/solids/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/solidMixture/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/radiation/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/regionModels/regionModel/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/regionModels/surfaceFilmModels/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/lagrangian/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/lagrangian/intermediate/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/lagrangian/solidParticle/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/EvolveReactingCloudFunctionObject.o

.
.
.

(alot of similar stuff ???)
.
..
pt/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/patchExpressionFunctionObject.o
In file included from ../swak4FoamParsers/lnInclude/PatchValueExpressionParser_location.hh:44:0,
from PatchValueExpressionParser.tab.hh:65,
from ../swak4FoamParsers/lnInclude/PatchValueExpressionDriver.H:60,
from patch/patchExpressionFunctionObject.H:42,
from patch/patchExpressionFunctionObject.C:28:
position.hh: In function 'bool parserPatch:perator==(const parserPatch:osition&, const parserPatch:osition&)':
position.hh:136:69: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
SOURCE=functionObjectProxy/executeIfSwakExpression/executeIfSwakExpressionFunctionObject.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../simpleFunctionObjects/lnInclude -I/opt/OpenFOAM/adin-2.1.0/Libraries/simpleFunctionObjects/lnInclude -I../swak4FoamParsers/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/sampling/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/executeIfSwakExpressionFunctionObject.o
'/opt/OpenFOAM/adin-2.1.0/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file expressionToCell.C
could not open file FixedValuePointPatchField.H for source file expressionToCell.C
could not open file ZeroGradientPointPatchField.H for source file expressionToCell.C
could not open file CalculatedPointPatchField.H for source file expressionToCell.C
Making dependency list for source file expressionToFace.C
could not open file FixedValuePointPatchField.H for source file expressionToFace.C
could not open file ZeroGradientPointPatchField.H for source file expressionToFace.C
could not open file CalculatedPointPatchField.H for source file expressionToFace.C
Making dependency list for source file expressionToPoint.C
could not open file FixedValuePointPatchField.H for source file expressionToPoint.C
could not open file ZeroGradientPointPatchField.H for source file expressionToPoint.C
could not open file CalculatedPointPatchField.H for source file expressionToPoint.C
SOURCE=expressionToCell.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../swak4FoamParsers/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/expressionToCell.o
.
.
.
..
.






its just an example of the output and actually there is alot more similar which i cant understand.
Please let me know which thing are required to set firt before compilining swak4foam, while i am using OpenFoam-2.1.0
aujamal20 is offline   Reply With Quote

Old   December 7, 2012, 21:05
Default
  #14
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by aujamal20 View Post
Dear
I am using openfaom-2.1.0 and attempted to compile swak4Foam. I just followed the instruction give on openfoamwiki, but it showed problems. (I think i did not setup swakconfiguration file correctly)
and showing error of

"cannot find -lOpenfaom"

and after running the ./Allwmake from swak4Foam other utilities also stop working.
And if i try to compile the standard solvers or utilites the same error pop up ...
Regards
Jamal
That looks like a typo. If anything it should be -lOpenFOAM. Which file reports 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   December 7, 2012, 21:19
Default
  #15
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by aujamal20 View Post
its just an example of the output and actually there is alot more similar which i cant understand.
Please let me know which thing are required to set firt before compilining swak4foam, while i am using OpenFoam-2.1.0
The problem with the makeSwakVersionFile.py-problem is embarrassing but shouldn't concern you (there is already a version-file so the compilation works).

The other output you post only has warnings so I can't tell what the problem is
__________________
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   December 8, 2012, 18:22
Default
  #16
Member
 
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 4
aujamal20 is an unknown quantity at this point
Dear

a) download and extract the swak4foam package

b) without making any change in any file i ran ./Allwmake

Following are the starting lines after ./Allwmake from the swak4foam folder located in user directory in application/utilities.

Quote:
asad@ubuntu:~/OpenFOAM/asad-2.1.0/applications/Utilities/swak4Foam$ ./Allwmake
Reading variables from 'swakConfiguration'
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/lib/python2.6/subprocess.py", line 633, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory ??
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 1 Patch 0
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/GlobalVariablesReposito
and then it ran for about half an hour giving warnings alot more stuff.

Do i need to make any change in any file to work it properly.

thanks

Last edited by aujamal20; December 8, 2012 at 18:52.
aujamal20 is offline   Reply With Quote

Old   December 9, 2012, 06:35
Default
  #17
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by aujamal20 View Post
Dear

a) download and extract the swak4foam package

b) without making any change in any file i ran ./Allwmake

Following are the starting lines after ./Allwmake from the swak4foam folder located in user directory in application/utilities.



and then it ran for about half an hour giving warnings alot more stuff.

Do i need to make any change in any file to work it properly.

thanks
As I answered yesterday in another thread: the first error when generating the version-file is not a problem (unless you're a developer) and is already fixed in my sources (will be in the next release).

Warnings are warnings: indications that there MIGHT be a problem but do not necessarily that there IS a problem. Most of these warnings can't be avoided as they come from the code generated by the bison compiler-generator and are not problems.

Rerun ./Allwmake. Output should now be much shorter. If there are errors in that, then you have a problem. Also check whether binaries were written to the directories $FOAM_USER_APPBIN and $FOAM_USER_LIBBIN, whether the funkySetFields-utility runs.
__________________
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   December 9, 2012, 11:28
Default
  #18
Member
 
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 4
aujamal20 is an unknown quantity at this point
Dear
I appreciate your help and looking for more. Following message is written after rerun ./Allwmake
Quote:
asad@ubuntu:~/OpenFOAM/asad-2.1.0/application/utilities/swak4Foam$ ./Allwmake
Reading variables from 'swakConfiguration'
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/lib/python2.6/subprocess.py", line 633, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 1 Patch 0
No change to swak4FoamParsers/foamVersion4swak.H
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date.
SOURCE=pythonInterpreterWrapper.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 /home/asad/Downloads/Python-2.7.2/Include/Python.h -I../swak4FoamParsers/lnInclude -I../simpleFunctionObjects/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/pythonInterpreterWrapper.o
g++: cannot specify -o with -c or -S with multiple files
make: *** [Make/linux64GccDPOpt/pythonInterpreterWrapper.o] Error 1
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/asad/OpenFOAM/asad-2.1.0/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
Compiling user function-plugin :/home/asad/OpenFOAM/asad-2.1.0/applications/Utilities/swak4Foam/Examples/UserPlugins/swakTestFunctionPlugins
wmake error: could not change to directory ':/home/asad/OpenFOAM/asad-2.1.0/applications/Utilities/swak4Foam/Examples/UserPlugins/swakTestFunctionPlugins'
Requirements for Library not satisfied. I see no sense in going on
and funkySetFields is not running
aujamal20 is offline   Reply With Quote

Old   December 9, 2012, 17:03
Default
  #19
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by aujamal20 View Post
Dear
I appreciate your help and looking for more. Following message is written after rerun ./Allwmake


and funkySetFields is not running
It seems that you misconfigured SWAK_PYTHON_INCLUDE: You give the absolute path of Python.h (not the directory it is in) and -I before it is missing (this is what upsets the compiler).

My suggestion: don't set the SWAK_PYTHON-variables at all. That way swak will be compiled without Python-support. If you later need it you can retry configuring it correctly
__________________
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   December 10, 2012, 14:24
Default
  #20
Member
 
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 4
aujamal20 is an unknown quantity at this point
Dear
Thanks. It configured correctly and have compiled.
Regards
aujamal20 is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4foam building problem GGerber OpenFOAM Installation 54 April 24, 2015 16:02
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) floydfan OpenFOAM Installation 7 December 20, 2011 06:56
swak4Foam compilation problem ganeshv OpenFOAM Running, Solving & CFD 5 November 11, 2011 17:39
OpenCFD release OpenFOAMฎ version 2.0.0 opencfd OpenFOAM Announcements from ESI-OpenCFD 1 July 1, 2011 08:43
Compilation Error.... Arnab CD-adapco 4 September 12, 2004 15:54


All times are GMT -4. The time now is 22:08.