CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   swak4Foam compilation for OF-2.0.0 (http://www.cfd-online.com/Forums/openfoam-installation/97129-swak4foam-compilation-2-0-0-a.html)

camoesas February 9, 2012 10:58

swak4Foam compilation for OF-2.0.0
 
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::operator==(const parserField::position&, const parserField::position&)':
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

camoesas February 9, 2012 11:28

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?

wyldckat February 9, 2012 12:51

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

gschaider February 9, 2012 16:04

Quote:

Originally Posted by camoesas (Post 343586)
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

wyldckat February 9, 2012 16:28

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

camoesas February 13, 2012 06:20

Hi Bruno,
Hi Bernhard,

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

Thank you very much!

Camoesas

Andrea_85 November 14, 2012 09:56

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

wyldckat November 16, 2012 17:32

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

Andrea_85 November 18, 2012 05:05

HI Bruno,
I updated flex to the required version and i managed to compile. That was the problem.

thanks

andrea

kyushusamurai December 5, 2012 05:23

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.

gschaider December 5, 2012 08:22

Quote:

Originally Posted by kyushusamurai (Post 395868)
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)

aujamal20 December 7, 2012 12:36

compiling swak4Foam on openfoam-2.1.0
 
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 ...:confused:
Regards
Jamal

aujamal20 December 7, 2012 13:30

Quote:

Originally Posted by aujamal20 (Post 396298)
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 ...:confused:
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::operator==(const parserPatch::position&, const parserPatch::position&)':
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

gschaider December 7, 2012 21:05

Quote:

Originally Posted by aujamal20 (Post 396298)
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 ...:confused:
Regards
Jamal

That looks like a typo. If anything it should be -lOpenFOAM. Which file reports this

gschaider December 7, 2012 21:19

Quote:

Originally Posted by aujamal20 (Post 396311)
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

aujamal20 December 8, 2012 18:22

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

gschaider December 9, 2012 06:35

Quote:

Originally Posted by aujamal20 (Post 396452)
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.

aujamal20 December 9, 2012 11:28

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

gschaider December 9, 2012 17:03

Quote:

Originally Posted by aujamal20 (Post 396521)
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

aujamal20 December 10, 2012 14:24

Dear
Thanks. It configured correctly and have compiled.
Regards


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