|
[Sponsors] |
February 6, 2012, 08:41 |
error when Compile groovyBC
|
#1 |
New Member
llh
Join Date: Jan 2012
Posts: 22
Rep Power: 14 |
hello,
I downloaded groovyBC from (http://openfoamwiki.net/index.php/Co...groovyWaveTank) My bison version is 2.4.1 and openfoam is 2.1.0 When I did the second step about compilation and installation, it seems that I did not succeed. here is the details: wmakeLnInclude: linking include files to ./lnInclude SOURCE=PatchValueExpressionDriver.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt -I/opt/openfoam210/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PatchValueExpressionDriver.o In file included from Make/linux64GccDPOpt/location.hh:44:0, from PatchValueExpressionParser.tab.hh:65, from PatchValueExpressionDriver.H:59, from PatchValueExpressionDriver.C:34: position.hh: In function ‘bool pve:perator==(const pve:osition&, const pve:osition&)’: position.hh:136:69: warning: suggest parentheses around ‘&&’ within ‘||’ PatchValueExpressionDriver.C: In member function ‘void Foam::PatchValueExpressionDriver::error(const pve::location&, const std::string&)’: PatchValueExpressionDriver.C:192:11: error: expected unqualified-id before ‘::’ token PatchValueExpressionDriver.C:192:11: error: expected ‘;’ before ‘::’ token PatchValueExpressionDriver.C: In member function ‘void Foam::PatchValueExpressionDriver::error(const std::string&)’: PatchValueExpressionDriver.C:202:11: error: expected unqualified-id before ‘::’ token PatchValueExpressionDriver.C:202:11: error: expected ‘;’ before ‘::’ token make: *** [Make/linux64GccDPOpt/PatchValueExpressionDriver.o] Error 1 Anyone know how to fix it? Regards, Lee |
|
February 6, 2012, 14:23 |
|
#2 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
If the problem persists please report the compiler-version Bernhard |
|||
February 6, 2012, 14:53 |
|
#3 | |
New Member
llh
Join Date: Jan 2012
Posts: 22
Rep Power: 14 |
Quote:
As I am not a English speaker and totally new in this area, I would like to ask do you mean the groovyBC will not work successfully with My openfoam210 version? And what is swak-version, is that short for swak4Foam (http://openfoamwiki.net/index.php/Contrib/swak4Foam)? I downloaded this one and it seems that it is installed successfully. I wanna simulate simple wave in tank so I need setup the time-dependent boundary condition for wave-maker side, can you link me any tutorial about how to do this? Many thanks Lee |
||
February 6, 2012, 19:33 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Short answer: - the version you downloaded won't work with OpenFOAM 2.0 and higher - Yes. swak is short for swak4Foam. Get that one. It has groovyBC (amongst other stuff) Longer: Usually I refer to the version of groovyBC as "classic groovyBC". The version that comes with swak4Foam I call the "swak-version of groovyBC". The classic version was "maintained" in parallel to the swak-version until OpenFOAM 1.7 to ease the transition for those who were using groovyBC (especially as swak4Foam only works for OF 1.6 and higher) PS: some kind soul updated the Wiki-page so that 2.x-users are pointed to swak4Foam in the download-section of the groovyBC-page |
||
February 9, 2012, 06:51 |
|
#5 |
Senior Member
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14 |
Hello, I also try to use groovyBC. I have download swak4Foam.
svn checkout https://openfoam-extend.svn.sourcefo...ies/swak4Foam/ But I do not know how to install it and make it usable. Could you give me some help? |
|
February 9, 2012, 07:34 |
|
#6 |
Senior Member
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14 |
Hello, the error message is as follows,
jian@jian-VirtualBox:~/OpenFOAM/jian-2.1.0/groovyBC$ wmake libso wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file groovyBCCommons.C Making dependency list for source file groovyBCFvPatchFields.C could not open file PatchValueExpressionDriver.H for source file groovyBCFvPatchFields.C Making dependency list for source file groovyBCDirectionFvPatchFields.C could not open file PatchValueExpressionDriver.H for source file groovyBCDirectionFvPatchFields.C Making dependency list for source file groovyBCFixedValueFvPatchFields.C could not open file PatchValueExpressionDriver.H for source file groovyBCFixedValueFvPatchFields.C Making dependency list for source file groovyBCJumpFvPatchFields.C could not open file PatchValueExpressionDriver.H for source file groovyBCJumpFvPatchFields.C Making dependency list for source file groovyBCPointPatchFields.C could not open file MixedPointPatchField.H for source file groovyBCPointPatchFields.C could not open file PatchValueExpressionDriver.H for source file groovyBCPointPatchFields.C could not open file PointPatchFieldMapper.H for source file groovyBCPointPatchFields.C SOURCE=groovyBCCommons.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt -I/opt/openfoam210/src/finiteVolume/lnInclude -I../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/groovyBCCommons.o SOURCE=groovyBCFvPatchFields.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt -I/opt/openfoam210/src/finiteVolume/lnInclude -I../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/groovyBCFvPatchFields.o In file included from groovyBCFvPatchFields.H:37:0, from groovyBCFvPatchFields.C:36: groovyBCFvPatchField.H:48:40: fatal error: PatchValueExpressionDriver.H: No such file or directory compilation terminated. make: *** [Make/linuxGccDPOpt/groovyBCFvPatchFields.o] Error 1 jian@jian-VirtualBox:~/OpenFOAM/jian-2.1.0/groovyBC$ wmake SOURCE=groovyBCFvPatchFields.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt -I/opt/openfoam210/src/finiteVolume/lnInclude -I../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/groovyBCFvPatchFields.o In file included from groovyBCFvPatchFields.H:37:0, from groovyBCFvPatchFields.C:36: groovyBCFvPatchField.H:48:40: fatal error: PatchValueExpressionDriver.H: No such file or directory compilation terminated. make: *** [Make/linuxGccDPOpt/groovyBCFvPatchFields.o] Error 1 |
|
February 9, 2012, 08:44 |
|
#7 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
In the directory of the sources do wmake all and everything should be built |
||
February 9, 2012, 09:28 |
|
#8 |
Senior Member
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14 |
Many thanks. It works.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam | dani2702 | OpenFOAM Community Contributions | 0 | November 17, 2016 04:30 |
[swak4Foam] groovyBC - compile error? | rieuk | OpenFOAM Community Contributions | 7 | June 15, 2011 12:06 |
[swak4Foam] groovyBC does not compile | Marc_r | OpenFOAM Community Contributions | 5 | November 4, 2010 14:29 |
[swak4Foam] how to compile groovyBC to OpenFoam v1.6? | tamsilian | OpenFOAM Community Contributions | 1 | May 27, 2010 04:15 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 22:51 |