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

[swak4Foam] swak4foam building problem

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

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2011, 13:38
Default swak4foam building problem
  #1
New Member
 
George
Join Date: Oct 2010
Posts: 18
Rep Power: 15
GGerber is on a distinguished road
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
~~~~~~~~~~~~~~
GGerber is offline   Reply With Quote

Old   February 18, 2011, 03:58
Default
  #2
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 17
Arnoldinho is on a distinguished road
Please look at this line of your error message:

Code:
/bin/sh: bison: not found
So it seems bison is not (correctly) installed.
Arnoldinho is offline   Reply With Quote

Old   February 18, 2011, 05:05
Default
  #3
New Member
 
George
Join Date: Oct 2010
Posts: 18
Rep Power: 15
GGerber is on a distinguished road
Thank you! This solved the problem :-)
GGerber is offline   Reply With Quote

Old   August 30, 2011, 08:21
Default
  #4
Member
 
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 17
Toorop is on a distinguished road
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.
Attached Files
File Type: gz makeSWAK.tar.gz (2.7 KB, 37 views)
Toorop is offline   Reply With Quote

Old   August 30, 2011, 08:48
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Toorop View Post
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
gschaider is offline   Reply With Quote

Old   August 30, 2011, 09:16
Default
  #6
Member
 
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 17
Toorop is on a distinguished road
I queried the location of bison with 'which bison'. I will check back if I can figure out this.
Toorop is offline   Reply With Quote

Old   October 20, 2011, 14:33
Default Swak4foam Error!
  #7
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 15
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
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?
MOHAMMAD67 is offline   Reply With Quote

Old   October 20, 2011, 19:12
Default
  #8
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by MOHAMMAD67 View Post
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
gschaider is offline   Reply With Quote

Old   October 22, 2011, 01:55
Default
  #9
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 15
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
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:imensionedField<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 #
MOHAMMAD67 is offline   Reply With Quote

Old   October 22, 2011, 10:13
Default
  #10
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by MOHAMMAD67 View Post
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:imensionedField<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
gschaider is offline   Reply With Quote

Old   October 24, 2011, 10:07
Default
  #11
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Heilbronn
Posts: 183
Blog Entries: 1
Rep Power: 16
Linse is on a distinguished road
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...
Linse is offline   Reply With Quote

Old   November 3, 2011, 18:45
Default
  #12
Member
 
Robin Gilbert
Join Date: Jan 2010
Posts: 66
Rep Power: 16
robingilbert is on a distinguished road
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
robingilbert is offline   Reply With Quote

Old   November 4, 2011, 03:23
Default
  #13
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by robingilbert View Post
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)
gschaider is offline   Reply With Quote

Old   November 4, 2011, 15:47
Default
  #14
Member
 
Robin Gilbert
Join Date: Jan 2010
Posts: 66
Rep Power: 16
robingilbert is on a distinguished road
Quote:
Originally Posted by gschaider View Post
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
robingilbert is offline   Reply With Quote

Old   November 5, 2011, 08:07
Post
  #15
Member
 
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 14
zakir hussain is on a distinguished road
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
zakir hussain is offline   Reply With Quote

Old   November 5, 2011, 11:35
Default
  #16
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 15
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
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.
MOHAMMAD67 is offline   Reply With Quote

Old   November 6, 2011, 05:04
Default
  #17
Member
 
jack
Join Date: Jul 2011
Posts: 52
Rep Power: 15
lg88 is on a distinguished road
thank you.As your said ,I have got it.
lg88 is offline   Reply With Quote

Old   November 11, 2011, 02:57
Default
  #18
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 15
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
Quote:
Originally Posted by Linse View Post
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
MOHAMMAD67 is offline   Reply With Quote

Old   November 11, 2011, 04:59
Default
  #19
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by MOHAMMAD67 View Post
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
gschaider is offline   Reply With Quote

Old   November 11, 2011, 05:11
Default
  #20
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 15
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
Dear Bernhard
my OS is opensuse 11.4.
MOHAMMAD67 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with building 3ddp UDF in Ansys FLUENT 16.2 SPH_CFD Fluent UDF and Scheme Programming 1 July 20, 2016 04:08
[swak4Foam] Foam-extend-3.2 and swak4foam...problem with link to triSurface ndev OpenFOAM Community Contributions 7 February 14, 2016 16:00
[swak4Foam] problem with a parabolic velocity profile Claudio87 OpenFOAM Community Contributions 5 May 29, 2014 09:30
[swak4Foam] installation problem with version 0.2.3 Claudio87 OpenFOAM Community Contributions 9 May 8, 2013 10:20
problem simulating flow around a building xavier FLUENT 5 January 3, 2007 05:16


All times are GMT -4. The time now is 12:17.