CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] swak4foam building problem (https://www.cfd-online.com/Forums/openfoam-community-contributions/85118-swak4foam-building-problem.html)

GGerber February 17, 2011 13:38

swak4foam building problem
 
Hi,

I've got ubuntu 10.10 with OF 1.7.1 installed on it. I have downloaded swak4Foam. Unfortunately, I am having trouble building swak4foam. Does anybody have a suggestion on how to get swak built? Below I give the compilation results.

Thanks,
George
~~~~
george@george-VirtualBox:~/Desktop/swak4Foam$ wmake all
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.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
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionParser.yy
Making dependency list for source file CommonValueExpressionDriver.C
Making dependency list for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll
Making dependency list for source file FieldValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionDriver.C
Making dependency list for source file PatchValueExpressionLexer.ll
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll
Making dependency list for source file PatchValueExpressionDriver.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
Making dependency list for source file SubsetValueExpressionLexer.ll
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionLexer.ll
Making dependency list for source file SubsetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionDriver.C
Making dependency list for source file CellSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellSetValueExpressionDriver.C
Making dependency list for source file FaceSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceSetValueExpressionDriver.C
Making dependency list for source file CellZoneValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellZoneValueExpressionDriver.C
Making dependency list for source file FaceZoneValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceZoneValueExpressionDriver.C
Making dependency list for source file SampledSurfaceValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SampledSurfaceValueExpressionDriver.C
SOURCE=SurfacesRepository.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/sampling/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/SurfacesRepository.o
SOURCE=ExpressionResult.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/sampling/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ExpressionResult.o
ExpressionResult.C: In member function ‘void Foam::ExpressionResult::uglyDelete()’:
ExpressionResult.C:98: warning: deleting ‘void*’ is undefined
SOURCE=FieldValueExpressionParser.yy ; rm -f Make/linuxGccDPOpt/FieldValueExpressionParser.C Make/linuxGccDPOpt/FieldValueExpressionParser.tab.hh; 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 ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/sampling/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linuxGccDPOpt/FieldValueExpressionParser.C -o Make/linuxGccDPOpt/FieldValueExpressionParser.o
/bin/sh: bison: not found
mv: cannot stat `*.tab.cc': No such file or directory
sed: can't read location.hh: No such file or directory
mv: cannot stat `location.hh': No such file or directory
mv: cannot stat `stack.hh': No such file or directory
mv: cannot stat `position.hh': No such file or directory
sed: can't read FieldValueExpressionParser.tab.hh: No such file or directory
mv: cannot stat `*.hh': No such file or directory
g++: Make/linuxGccDPOpt/FieldValueExpressionParser.C: No such file or directory
g++: no input files
make: *** [Make/linuxGccDPOpt/FieldValueExpressionParser.o] Error 1
Making dependency list for source file groovyBCFvPatchFields.C
could not open file PatchValueExpressionParser.tab.hh for source file groovyBCFvPatchFields.C
Making dependency list for source file groovyBCPointPatchFields.C
could not open file MixedPointPatchField.H for source file groovyBCPointPatchFields.C
could not open file PatchValueExpressionParser.tab.hh for source file groovyBCPointPatchFields.C
could not open file PointPatchFieldMapper.H for source file groovyBCPointPatchFields.C
SOURCE=groovyBCFvPatchFields.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -I../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/groovyBCFvPatchFields.o
In file included from groovyBCFvPatchField.H:48,
from groovyBCFvPatchFields.H:37,
from groovyBCFvPatchFields.C:36:
../swak4FoamParsers/lnInclude/PatchValueExpressionDriver.H:60: fatal error: PatchValueExpressionParser.tab.hh: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/groovyBCFvPatchFields.o] Error 1
Making dependency list for source file manipulateField.C
could not open file FieldValueExpressionParser.tab.hh for source file manipulateField.C
Making dependency list for source file manipulateFieldFunctionObject.C
Making dependency list for source file expressionField.C
could not open file FieldValueExpressionParser.tab.hh for source file expressionField.C
Making dependency list for source file expressionFieldFunctionObject.C
Making dependency list for source file clearExpressionField.C
could not open file FieldValueExpressionParser.tab.hh for source file clearExpressionField.C
Making dependency list for source file clearExpressionFieldFunctionObject.C
Making dependency list for source file createSampledSurface.C
Making dependency list for source file createSampledSurfaceFunctionObject.C
SOURCE=manipulateField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I../swak4FoamParsers/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/opt/openfoam171/src/sampling/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/manipulateField.o
In file included from manipulateField.C:30:
../swak4FoamParsers/lnInclude/FieldValueExpressionDriver.H:18: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/manipulateField.o] Error 1
Making dependency list for source file general/swakExpressionFunctionObject.C
could not open file timelineFunctionObject.H for source file general/swakExpressionFunctionObject.C
Making dependency list for source file patch/patchExpressionFunctionObject.C
could not open file patchFunctionObject.H for source file patch/patchExpressionFunctionObject.C
could not open file PatchValueExpressionParser.tab.hh for source file patch/patchExpressionFunctionObject.C
SOURCE=general/swakExpressionFunctionObject.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/george/OpenFOAM/george-1.7.1/Libraries/simpleFunctionObjects/lnInclude -I../swak4FoamParsers/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/opt/openfoam171/src/sampling/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/swakExpressionFunctionObject.o
In file included from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObject.H:40: fatal error: timelineFunctionObject.H: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/swakExpressionFunctionObject.o] Error 1
Making dependency list for source file expressionToCell.C
could not open file FieldValueExpressionParser.tab.hh for source file expressionToCell.C
Making dependency list for source file expressionToFace.C
could not open file FieldValueExpressionParser.tab.hh for source file expressionToFace.C
SOURCE=expressionToCell.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I../swak4FoamParsers/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/expressionToCell.o
In file included from expressionToCell.C:39:
../swak4FoamParsers/lnInclude/FieldValueExpressionDriver.H:18: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/expressionToCell.o] Error 1
Making dependency list for source file expressionSource.C
could not open file FieldValueExpressionParser.tab.hh for source file expressionSource.C
SOURCE=expressionSource.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I../swak4FoamParsers/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/expressionSource.o
In file included from expressionSource.H:45,
from expressionSource.C:33:
../swak4FoamParsers/lnInclude/FieldValueExpressionDriver.H:18: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/expressionSource.o] Error 1
Making dependency list for source file funkySetFields.C
could not open file FieldValueExpressionParser.tab.hh for source file funkySetFields.C
SOURCE=funkySetFields.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/funkySetFields.o
In file included from funkySetFields.C:41:
../../Libraries/swak4FoamParsers/lnInclude/FieldValueExpressionDriver.H:18: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/funkySetFields.o] Error 1
Making dependency list for source file funkySetBoundaryField.C
could not open file PatchValueExpressionParser.tab.hh for source file funkySetBoundaryField.C
SOURCE=funkySetBoundaryField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/funkySetBoundaryField.o
In file included from funkySetBoundaryField.C:41:
../../Libraries/swak4FoamParsers/lnInclude/PatchValueExpressionDriver.H:60: fatal error: PatchValueExpressionParser.tab.hh: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/funkySetBoundaryField.o] Error 1
Making dependency list for source file replayTransientBC.C
SOURCE=replayTransientBC.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/cfdTools/lnInclude -I/opt/openfoam171/src/cfdTools/general/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/replayTransientBC.o
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/cfdTools/lnInclude -I/opt/openfoam171/src/cfdTools/general/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGccDPOpt/replayTransientBC.o -L/opt/openfoam171/lib/linuxGccDPOpt \
-lfiniteVolume -lmeshTools -lOpenFOAM -liberty -ldl -lm -o /home/george/OpenFOAM/george-1.7.1/applications/bin/linuxGccDPOpt/replayTransientBC
~~~~~~~~~~~~~~

Arnoldinho February 18, 2011 03:58

Please look at this line of your error message:

Code:

/bin/sh: bison: not found
So it seems bison is not (correctly) installed.

GGerber February 18, 2011 05:05

Thank you! This solved the problem :-)

Toorop August 30, 2011 08:21

1 Attachment(s)
Roughly the same problem here, but I have bison installed - bison (GNU Bison) 2.4.1. It's located under /usr/bin/bison - how can I set the swak wmake to search for this location?
OF version - OpenFOAM-2.0.x
swak location - $HOME/swak4Foam
Thank you.

gschaider August 30, 2011 08:48

Quote:

Originally Posted by Toorop (Post 322265)
Roughly the same problem here, but I have bison installed - bison (GNU Bison) 2.4.1. It's located under /usr/bin/bison - how can I set the swak wmake to search for this location?
OF version - OpenFOAM-2.0.x
swak location - $HOME/swak4Foam
Thank you.

If 'which bison' gives you back that location (and it should unless bison is installed in another location as well) it should be used during the installation process.

Bernhard

Toorop August 30, 2011 09:16

I queried the location of bison with 'which bison'. I will check back if I can figure out this.

MOHAMMAD67 October 20, 2011 14:33

Swak4foam Error!
 
Hi Bernard
I have swake4foam in home directory and OpenFOAM 2 in root/opt.I tried to wmake all but it had error about reference . what should I do?

gschaider October 20, 2011 19:12

Quote:

Originally Posted by MOHAMMAD67 (Post 328789)
I have swake4foam in home directory and OpenFOAM 2 in root/opt.I tried to wmake all but it had error about reference .

what should I do?

Be more specific. Error messages containing the word "Reference" can occur at multiple stages (compiling, linking ...) during the compilation process so I really can't help you if that is all the information I have

MOHAMMAD67 October 22, 2011 01:55

hi Bernard thanks for your reply

The following error occures:

/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::movePoints(Foam::Field<Foam::Ve ctor<double> > const&)'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::DimensionedField<int, Foam::triSurfaceGeoMesh>::typeName'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::triSurface const&)'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so: undefined reference to `Foam::sampledSet::~sampledSet()'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::markZones(Foam::List<bool> const&, Foam::List<int>&) const'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so: undefined reference to `Foam::sampledSurface::magSf() const'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::writeStats(Foam::Ostream&) const'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::clearOut()'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UPstream::waitRequests()'
collect2: ld returned 1 exit status
make: *** [/home/geeko/OpenFOAM/geeko-2.0.x/platforms/linux64GccDPOpt/bin/funkyDoCalc] Error 1
linux:/home/geeko/swak4Foam #

gschaider October 22, 2011 10:13

Quote:

Originally Posted by MOHAMMAD67 (Post 328985)
hi Bernard thanks for your reply

The following error occures:

/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::movePoints(Foam::Field<Foam::Ve ctor<double> > const&)'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::DimensionedField<int, Foam::triSurfaceGeoMesh>::typeName'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::triSurface const&)'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so: undefined reference to `Foam::sampledSet::~sampledSet()'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::markZones(Foam::List<bool> const&, Foam::List<int>&) const'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so: undefined reference to `Foam::sampledSurface::magSf() const'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::writeStats(Foam::Ostream&) const'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::clearOut()'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UPstream::waitRequests()'
collect2: ld returned 1 exit status
make: *** [/home/geeko/OpenFOAM/geeko-2.0.x/platforms/linux64GccDPOpt/bin/funkyDoCalc] Error 1
linux:/home/geeko/swak4Foam #

That's better (the information). The error itself is a bit weird. It seems that the linker can't find the libraries libtrisurface.so and libPstream.so and symbols in it. Try replacing the line

-lmeshTools \

with

-lmeshTools -ltriSurface -lPstream \

and see what happens. Also: what system have you got and what is the actual call to the linker (the last gcc/g++-call you see).

Any: it seems to be a system-specific problem. Either the linker on your system behaves strangely or your OF-installation has a problem

Linse October 24, 2011 10:07

I think I had a similar error recently and solved it by installing some devel-package (if I remember correctly). Unfortunately I do not know any more which one. :-(
I would try for the binutils-devel first and then for g++-packages...

robingilbert November 3, 2011 18:45

I get the following error when I try to compile pimpleFoam solver with some changes using swak4Foam. I installed swak4Foam and it dint throw any errors.

Code:

Make/linux64GccDPOpt/pimpleFoam.o: In function `main':
pimpleFoam.C:(.text+0x8e8): undefined reference to `Foam::expressionSource<double>::expressionSource(Foam::dictionary const&, Foam::fvMesh const&)'
pimpleFoam.C:(.text+0x2320): undefined reference to `Foam::expressionSource<double>::operator()()'
pimpleFoam.C:(.text+0x2e4b): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3a01): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3a1e): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3a38): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3b32): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
collect2: ld returned 1 exit status
make: *** [/home/bluesim/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/pimpleFoam] Error 1


gschaider November 4, 2011 03:23

Quote:

Originally Posted by robingilbert (Post 330677)
I get the following error when I try to compile pimpleFoam solver with some changes using swak4Foam. I installed swak4Foam and it dint throw any errors.

Code:

Make/linux64GccDPOpt/pimpleFoam.o: In function `main':
pimpleFoam.C:(.text+0x8e8): undefined reference to `Foam::expressionSource<double>::expressionSource(Foam::dictionary const&, Foam::fvMesh const&)'
pimpleFoam.C:(.text+0x2320): undefined reference to `Foam::expressionSource<double>::operator()()'
pimpleFoam.C:(.text+0x2e4b): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3a01): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3a1e): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3a38): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3b32): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
collect2: ld returned 1 exit status
make: *** [/home/bluesim/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/pimpleFoam] Error 1


You must link the library with the sources to the solver. Have a look at the Make/options-file of the interFoamWithSources-solver (you're probably familiar with it as I guess that you lifted the info "how to include expressionSource" from that)

robingilbert November 4, 2011 15:47

Quote:

Originally Posted by gschaider (Post 330704)
You must link the library with the sources to the solver. Have a look at the Make/options-file of the interFoamWithSources-solver (you're probably familiar with it as I guess that you lifted the info "how to include expressionSource" from that)

Thanks a lot Gschaider, it worked :)

zakir hussain November 5, 2011 08:07

hi everybody
Now i need the swak4Foam but i can't download it with svn. Could you upload it here or sent it to my email box (768413407@qq.com). Thank you very much.

Regards


hussain

MOHAMMAD67 November 5, 2011 11:35

hi Hussain
Write cnf svn in the command line and then copy the line( install ...) in the new line and press enter.
After installing svn you can easily install swake4foam.

lg88 November 6, 2011 05:04

thank you.As your said ,I have got it.

MOHAMMAD67 November 11, 2011 02:57

Quote:

Originally Posted by Linse (Post 329191)
I think I had a similar error recently and solved it by installing some devel-package (if I remember correctly). Unfortunately I do not know any more which one. :-(
I would try for the binutils-devel first and then for g++-packages...

hi
I checked those packages and they were installed.? what should I do? now

gschaider November 11, 2011 04:59

Quote:

Originally Posted by MOHAMMAD67 (Post 331682)
hi
I checked those packages and they were installed.? what should I do? now

This is about the undefined references you're getting, right? What OS-version do you have? Because the libraries that have that stuff should be implicitly linked, but I heard that new Fedora and Ubuntu-verisons changed the way the linker works and these libraries (-ltrisurface and -lsampling) have to be added to Make/options

MOHAMMAD67 November 11, 2011 05:11

Dear Bernhard
my OS is opensuse 11.4.


All times are GMT -4. The time now is 14:25.