|
[Sponsors] |
April 8, 2016, 08:20 |
|
#21 | |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
Quote:
However, if you successfully downloaded swak4Foam via HG or GIT or whatever, you should compile Bison. This should take a while, but has to finish without any errors. The error point to a line in swakConfiguration which is related to Bison, so I assume that there is some error. Be sure that all necessary packages for swak4Foam are installed and all environment variables are set correctly, e.g., check this link https://openfoamwiki.net/index.php/I...ling_On/Ubuntu Best regards, Fabian |
||
April 8, 2016, 08:44 |
|
#22 | |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12 |
Quote:
make.log.tar.gz |
||
April 8, 2016, 09:02 |
|
#23 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
What is the output of ./maintainanceScripts/compileRequirements.sh
|
|
April 8, 2016, 09:06 |
|
#24 |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12 |
This script is rather crude. If it doesn't work try the steps by hand. And be sure to run it from the root of the swak-installation (as ./maintainanceScripts/compileRequirements.sh). Otherwise it probably won't work Bison alread installed/compiled Bison successfully compiled Add /home/ancolli/OpenFOAM/ancolli-v3.0+/swak4Foam/privateRequirements/bin to PATH-variable. The ./Allwmake-script will use this directory automatically |
|
April 8, 2016, 09:26 |
|
#25 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
If I am right you are using OpenFoam 3.0+ provided by ESI right? If so, it might be possible that swak4Foam does not compile due to incompatibilities between OpenFoam+ and OpenFoam. May be some of the scripts detect the wrong or no OpenFoam version. That is something beyond my knowledge.
|
|
April 8, 2016, 09:32 |
|
#26 | |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12 |
Quote:
Thank u very much |
||
April 8, 2016, 09:39 |
|
#27 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
The correct version depends on what you want to do. You could use the OpenFoam provided by ESI Group (www.openfoam.com), or the version provided by the OpenFoam Foundation of Henry Weller & Co. (www.openfoam.org), or the OpenFoam-Ext version of Hrvoje Jasak & Co (http://www.extend-project.de). All have advantages and disadvantages. You should read and check the cfd-online forum for more information.
The uninstall of OpenFoam depends on how you installed it. Did you compiled it by yourself just remove the OpenFoam directory. Did you downloaded some sort of package *.deb or used the package manager (synaptics or so) than you have to use your package manager to uninstall OpenFoam. |
|
April 8, 2016, 10:01 |
|
#28 | |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12 |
Quote:
I did the source code installation... can i just remove the OpenFoam directory? |
||
April 8, 2016, 10:20 |
|
#29 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
Yes, just remove the OpenFoam directory and the entries in your bashrc.
|
|
April 20, 2016, 18:52 |
Swak4foam in of3.0+?
|
#30 |
New Member
Join Date: Jul 2014
Posts: 26
Rep Power: 12 |
Hello,
I have just installed the v3.0+ release. I did not manage to successfully install swak4foam. I am using ubuntu 14.04. Here what I have done: 1) downloading swak4foam from this link https://openfoamwiki.net/index.php/Installation/swak4Foam/Downloading#swak4Foam_development_version_for_Open FOAM_2.x.2F3.x.2Fdev_and_foam-extend_3.x Section 4 2) I run the script to change the bison version ./maintainanceScripts/compileRequirements.sh 3) I add the path export PATH=$/home/userG/OpenFOAM/userG-v3.0+/solvers/swak4Foam/privateRequirements/bin:$PATH 4) I compiled by ./Allwmake > make.log 2>&1 below my make.log Any hints? Thank you |
|
April 22, 2016, 06:25 |
|
#31 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
To be honest, I do not have a clue and not enough time to figure it out. This is a question which should be answered by the developers for swak4foam or the developers of OpenFoam+. I guess it is something with the python scripts and the detection of the correct OpenFoam version. If you look into your make.log ist shows
Code:
OpenFOAM-version: Major Minor v0 Patch v-1+ (-1 == x / v-1+) Code:
lnInclude/swak.H:50:30: error: operator '<' has no left operand #if (FOAM_VERSION4SWAK_MAJOR < 2) |
|
April 22, 2016, 12:33 |
|
#32 |
New Member
Join Date: Jul 2014
Posts: 26
Rep Power: 12 |
Thank you for your hint,
I 'll try to check over there and see what happens. I needed swak4foam to use grooveBC. So worst case scenario I'll have to implement my own BC. Keep trying, Thx anyway |
|
August 1, 2016, 08:02 |
Different error
|
#33 | |
Senior Member
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 17 |
Hi everyone
I'm using Ubuntu 15.10 with OpenFOAM v1606+ and I'm trying to compile either foamCalcEx or swak4Foam and got a similar error message for both cases: For swak4Foam I'm getting this error: Quote:
Thanks.
__________________
SAHM |
||
August 6, 2016, 07:08 |
|
#34 | |
New Member
Esmaeel Eftekharian
Join Date: Jan 2016
Location: Sydney, Australia
Posts: 16
Rep Power: 10 |
Dear Sergei,
I am using Ubuntu 14.04 and OpenFoam 3. I desperately need swak4foam, however, when I want to compile it I receive an error as below: No file 'swakConfiguration'. Python etc won't work. See README for details Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems Checking swak4Foam-version and generating file abort: no repository found in '/home/esmaeel/swak4Foam' (.hg not found)! Swak version is 0.4.0 ./Allwmake: line 61: wmake: command not found Requirements for Library not satisfied. I see no sense in going on Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard I would be so thankful if you let me know any solution you have to solve this problem. Thank you in advance. Quote:
|
||
August 6, 2016, 14:51 |
|
#35 |
New Member
towanda
Join Date: Aug 2014
Posts: 20
Rep Power: 12 |
I think you need to configure a mercurial file.
|
|
August 10, 2016, 02:57 |
|
#36 |
Senior Member
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 17 |
Salam AghaEsmaeel
I think you didn't download it using mercurial, but I suggest you do so. In case you don't have it, You should install mercurial first (sudo apt-get install mercurial) and then use the installer guide of swak4foam to install it.
__________________
SAHM |
|
August 10, 2016, 04:07 |
|
#37 | |
New Member
Esmaeel Eftekharian
Join Date: Jan 2016
Location: Sydney, Australia
Posts: 16
Rep Power: 10 |
Quote:
Salam Many thanks for your response, actually, I was in a hurry, so I installed Ubuntu 12.04 and OpenFoam 220 on which previously I could successfully install swak4foam. So, the Swak4foam is already installed on my system. But, thank you for your suggestion; I will implement it later on when I upgrade my Linux environment. |
||
June 25, 2018, 13:01 |
|
#38 |
Senior Member
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 15 |
Hi
Can you enlighten me how you solve the following problem? /home/admin1/OpenFOAM/openfoam-extend-swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison) Reading variables from 'swakConfiguration' Checking swak4Foam-version and generating file Swak version is 0.4.1 Bison is version 2.7.12-4996 Flex is version 2.6.4 (Minor version: 4) OpenFOAM-version: Major 5 Minor 0 Patch 0 (-1 == x / 0) Fork: openfoam No change to swak4FoamParsers/foamVersion4swak.H wmake libso swak4FoamParsers g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPInt32Opt -I/opt/openfoam5/src/finiteVolume/lnInclude -I/opt/openfoam5/src/surfMesh/lnInclude -I/opt/openfoam5/src/sampling/lnInclude -I/opt/openfoam5/src/fileFormats/lnInclude -I/opt/openfoam5/src/triSurface/lnInclude -I/opt/openfoam5/src/dynamicMesh/lnInclude -I/opt/openfoam5/src/lagrangian/basic/lnInclude -I/opt/openfoam5/src/surfMesh/lnInclude -I/opt/openfoam5/src/meshTools/lnInclude -I../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/ -IlnInclude -I. -I/opt/openfoam5/src/OpenFOAM/lnInclude -I/opt/openfoam5/src/OSspecific/POSIX/lnInclude -fPIC -c helpers/exprString.C -o Make/linux64GccDPInt32Opt/helpers/exprString.o In file included from lnInclude/CommonValueExpressionDriver.H:847:0, from helpers/exprString.C:39: lnInclude/CommonValueExpressionDriverI.H: In member function ‘bool Foam::CommonValueExpressionDriver::updateSet(Foam: :autoPtr<T>&, const Foam::word&, Foam::CommonValueExpressionDriver::SetOrigin) const’: lnInclude/CommonValueExpressionDriverI.H:326:32: error: ‘class Foam::IOobject’ has no member named ‘headerOk’ header.headerOk() ^~~~~~~~ lnInclude/CommonValueExpressionDriverI.H:336:43: error: ‘class Foam::IOobject’ has no member named ‘filePath’; did you mean ‘rootPath’? << header.filePath() ^~~~~~~~ rootPath /opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/helpers/exprString.o' failed make: *** [Make/linux64GccDPInt32Opt/helpers/exprString.o] Error 1 Parser library did not compile OK. No sense continuing as everything else depends on it Requirements for Library not satisfied. I see no sense in going on Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard |
|
September 10, 2018, 18:44 |
|
#39 | |
Member
Foad
Join Date: Aug 2017
Posts: 58
Rep Power: 9 |
I am also having similar issue compiling. i get the error message:
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Problem with swak4Foam and OpenFOAM 2.3.1 | behzad-cfd | OpenFOAM Community Contributions | 4 | March 25, 2017 17:19 |
[swak4Foam] Installing swak4Foam with openFoam v3.0+ | RebelLion | OpenFOAM Community Contributions | 0 | March 11, 2016 20:10 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |
[swak4Foam] Installing swak4Foam to OpenFOAM in mac | Kaquesang | OpenFOAM Community Contributions | 22 | January 21, 2013 12:51 |