error when Compile groovyBC
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::operator==(const pve::position&, const pve::position&)’: 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 |
Quote:
Quote:
If the problem persists please report the compiler-version Bernhard |
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 |
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 |
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? |
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 |
Quote:
In the directory of the sources do wmake all and everything should be built |
Many thanks. It works.
|
All times are GMT -4. The time now is 08:34. |