|
[Sponsors] |
![]() |
![]() |
#161 |
New Member
Sina
Join Date: Jul 2022
Posts: 6
Rep Power: 4 ![]() |
Hi,
I'm having some problems installing swak4Foam. I'm using openfoam 2.1.1 with ubuntu 18.4 LTS. the bison version is 3.0.4, python version is 2.7.17 and the flex version is 2.6.4 but i get this error every time: Code:
helpers/swakExprString.dep:550: recipe for target 'Make/linux64Gcc48DPOpt/swakExprString.o' failed make: *** [Make/linux64Gcc48DPOpt/swakExprString.o] Error 1 ExpressionDriverWriter.dep:551: recipe for target 'Make/linux64Gcc48DPOpt/ExpressionDriverWriter.o' failed make: *** [Make/linux64Gcc48DPOpt/ExpressionDriverWriter.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 |
|
![]() |
![]() |
![]() |
![]() |
#162 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
Wow. OF 2.1. I'm getting nostalgic (oldest version I currently test with is 2.3) I think that it is more the compiler (gcc 4.2 isn't the youngest kid on the block). Anyway. Try this. Go to the file Libraries/repositories/SetsRepository.C line 48 and replace Code:
typedef Foam::writer<scalar> writerType; Code:
typedef Foam::writer<Foam::scalar> writerType;
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
![]() |
![]() |
![]() |
![]() |
#163 | |
New Member
Sina
Join Date: Jul 2022
Posts: 6
Rep Power: 4 ![]() |
Quote:
I did what you said but it didn't work. Although the end of the error is the same as before but it seems it's a different one! It has fewer lines so something has changed but I can't understand what. I'll attach the new log file in the end. Thank you so much for your help. |
||
![]() |
![]() |
![]() |
![]() |
#164 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
Make an Allwclean and make sure that Library/swak4Foam/lnInclude is removed. This looks like something were the compilation was aborted and at the second run bison did not generate the necessary files
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
![]() |
![]() |
![]() |
![]() |
#165 |
New Member
Sina
Join Date: Jul 2022
Posts: 6
Rep Power: 4 ![]() |
I did what you said but it didn't work. same error.
|
|
![]() |
![]() |
![]() |
![]() |
#166 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
No. This is not the same error. This has to do with the symmTensor-class. There were some subtle changes there in the past. Subtle means: hard to fix
Anyway: you said that you need 2.1 because the project was done with that. Question: you're using swak because it was used then as well? In that case you don't need the new features of swak and you'll have to do some history 1. run ./Allwclean (always do that before changing the version) 2. check the version history in the README what was the version at the time of the original project (I always date the versions there) 3. run "hg tags" and look for the tag for that version 4. change to that version with "hg update vVersionTagName" 5. compile
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
![]() |
![]() |
![]() |
![]() |
#167 | |
New Member
Sina
Join Date: Jul 2022
Posts: 6
Rep Power: 4 ![]() |
Hi,
Quote:
Code:
FOAM Warning : From function dlLibraryTable::open(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 96 could not load "libsimpleSwakFunctionObjects.so" I checked but there is no README file for that project and when I run "hg tags" in the project folder and swak folder I get this error: Code:
abort: no repository found in '/home/sina/Desktop/elec-RisingBubble' (.hg not found)! Code:
abort: no repository found in '/home/sina/OpenFOAM/sina-2.1.1/openfoam-extend-swak4Foam' (.hg not found)! |
||
![]() |
![]() |
![]() |
![]() |
#168 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
Where did you get the sources from?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
![]() |
![]() |
![]() |
![]() |
#169 |
New Member
Sina
Join Date: Jul 2022
Posts: 6
Rep Power: 4 ![]() |
Hi
If you are referring to the project that I'm working on, I got it from a fellow student. I will attach the project and upload its solver in the end. If not, I installed Openfoam from here: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04 And I got the swak4foam package from here: https://sourceforge.net/p/openfoam-e...evelop/tarball https://www.mediafire.com/file/g8vy5...2.1.1.zip/file |
|
![]() |
![]() |
![]() |
![]() |
#170 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
Ah. You got a tarball. Well. Specific tags (versions) you can get from here https://sourceforge.net/p/openfoam-e.../default/tags/ Check in the "History"-section of https://sourceforge.net/p/openfoam-e...tree/README.md what was the released version at the time and then click on the appropriate tag and download that snapshot (then you should get a tarball with swak at that time)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
![]() |
![]() |
![]() |
![]() |
#171 |
Member
|
Hi Everyone, I posted an issue on another thread but not sure it was the correct thread as there are a few that seem similar.
https://www.cfd-online.com/Forums/openfoam-community-contributions/221035-problems-compilation-swak4foam-debian-openfoam-7-a.html#post838011 I am trying to follow the advice out here and am running openfoam 6 from Ubuntu 18_04 Installed bison (GNU Bison) 3.0.4, flex 2.6.4, and mercurial (/snap/bin/mercurial) then: >>hg clonehttp://hg.code.sf.net/p/openfoam-extend/swak4Foam-u develop >>cd swak4Foam >>./maintainanceScripts/compileRequirements.sh >>./Allwmake (or ./AllwmakeAll > log.AllwmakeAll) log.AllwmakeAll portions include: <<Bison already installed/compiled Bison successfully compiled Lua already installed/compiled Lua successfully compiled Add /home/ltholmes/OpenFOAM/ltholmes-6/swak4Foam/privateRequirements/bin to PATH-variable. The ./Allwmake-script will use this directory automatically Current OpenFOAM version is 6. This is a clean install /home/ltholmes/OpenFOAM/ltholmes-6/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison) Reading variables from 'swakConfiguration' Looking for Python 2 Looking for Python 3 Using our own Lua at /home/ltholmes/OpenFOAM/ltholmes-6/swak4Foam/privateRequirements Checking swak4Foam-version and generating file Swak version is 202x.yy.0 hg info: 481d96f16780 (develop) tip No 'bear' installed Bison: /home/ltholmes/OpenFOAM/ltholmes-6/swak4Foam/privateRequirements/bin/bison Flex: /usr/bin/flex Bison at /home/ltholmes/OpenFOAM/ltholmes-6/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4) Flex is version 2.6.4 (Minor version: 4) No swak4FoamParsers/foamVersion4swak.H. Generated << Make/linux64GccDPInt32Opt/repositories/SetsRepository.o /opt/openfoam6/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/repositories/SetsRepository.o' failed Parser library did not compile OK. No sense continuing as everything else depends on it >> Troubleshooting included multiple attempts and several restarting of Ubuntu and running an openfoam6 case. Also >>wmake Utilities/funkySetFields > log.Util_funkySetF >>ls $FOAM_USER_APPBIN" to check if swak4foam is correctly compiled. (no swak4foam listed) >>ls $FOAM_USER_LIBBIN" gives: ls: cannot access '/home/ltholmes/OpenFOAM/ltholmes-6/platforms/linux64GccDPInt32Opt/lib and ls': No such file or directory PS: I installed bear 2.3.11 after posting and re-installed but errors in log remain the same. Would anyone be able to see the error of my installing ways? I'd love to get funkySetFields working. Thank you, LTH |
|
![]() |
![]() |
![]() |
![]() |
#172 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
The last error message indicates that the problem occurred during compiling SetRepository.C. In recent development versions I had to adapt this so that it compiles with more recent OF-versions and this might have broken support for older versions. I'll look into this as soon as I have a working OF6-version Anyway. A quick fix for you might be to roll back the sources with "hg update v0.4.2" to a version that is known to compile with OF6 (it is quite old but the functionality of funkySetFields and groovyBC has been the same for some years). Would be good to clear old compilation artefacts before that (use ./Allwclean and remove the privateRequirements-directory). Then try ./AllwmakeAll again Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
![]() |
![]() |
![]() |
![]() |
#173 |
Member
|
Hi Bernhard,
Thank you very much!!! This was the solution and I really appreciate your support. I tested and funkySetFields appears to be running (i am learning it). :0) PS: The compile log file I can send for your insights if it helps. |
|
![]() |
![]() |
![]() |
![]() |
#174 |
Member
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 85
Rep Power: 11 ![]() |
Hi @gschaider,
Thank you very much for your work. Do you plan to support the latest version of ESI openfoam, 2212? Edit : I just checked the swak4foam repository and I see that it has just been updated. :-) Thank you to support the 2212 openfoam version !!! Last edited by cyss38; January 20, 2023 at 08:43. |
|
![]() |
![]() |
![]() |
![]() |
#175 | |
Member
Shravan
Join Date: Mar 2017
Posts: 63
Rep Power: 9 ![]() |
Hello,
I have the same problem reported few years back in this thread Now, I see that swak4Foam also supports OpenFOAM v9 (most part of it). Thanks a lot for that ![]() I get this error when trying to compile (same as that mentioned in the above link). Quote:
Can somebody please help me if you already managed to overcome this problem before? Thanks in advance |
||
![]() |
![]() |
![]() |
![]() |
#176 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
The file Libraries/swak4FoamParsers/Make/linux64GccDPInt32Opt/files is generated by the (OF-specific) wmake-utility and then processed by the (quite common) make-utility. The error message is from the make utility When I've seen such things in the past it was due to
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
![]() |
![]() |
![]() |
![]() |
#177 |
Member
Shravan
Join Date: Mar 2017
Posts: 63
Rep Power: 9 ![]() |
Dear Bernhard Gschaider,
Thanks a lot for the very quick response. I tried deleting the linux64GccDPInt32Opt folder, but it did not work. So indeed there was a possible version issue So, I used the "hg update develop" (which is very clearly mentioned in the OpenFoam wiki page to use for newer versions). Once I used it, it works. Apologies that I missed this one before. I will also update this on the other thread (for other people for future reference) Thanks once again! Have a nice day ![]() |
|
![]() |
![]() |
![]() |
![]() |
#178 | |
New Member
Join Date: Mar 2023
Posts: 1
Rep Power: 0 ![]() |
Quote:
Hi Cyrille, May I ask where to fine the swak4foram openfoam2212 version? Thanks. |
||
![]() |
![]() |
![]() |
![]() |
#179 |
Member
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 85
Rep Power: 11 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#180 |
New Member
Jinshi Chen
Join Date: Jan 2020
Location: Cambridge, MA
Posts: 10
Rep Power: 6 ![]() |
Hi all,
I am trying to install swak4foam on OpenFOAM v1812. I have downloaded swak4foam from mercurial and installed the required version of m4 and bison. However when I compiled it I got the following error: Code:
funkyPythonPostproc.C:41:10: fatal error: pythonInterpreterWrapper.H: No such file or directory #include "pythonInterpreterWrapper.H" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [/vortexfs1/home/jinshichen/OpenFOAM/OpenFOAM-v1812/wmake/rules/General/transform:35: Make/linux64GccDPInt32Opt/funkyPythonPostproc.o] Error 1 wmake funkySetLagrangianField wmake funkyWarpMesh wmake makeAxialMesh wmake writeBoundarySubfields Best, Jinshi |
|
![]() |
![]() |
![]() |
Tags |
compile error, swak4foam |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
InterDyMFoam+simpleFunctionObject | Elham | OpenFOAM Running, Solving & CFD | 5 | July 10, 2017 11:59 |
[swak4Foam] and twoPhaseEulerFoam | mnikku | OpenFOAM Community Contributions | 1 | February 19, 2016 05:21 |
source term in near wall cell | rajcfd | OpenFOAM Pre-Processing | 5 | February 1, 2016 10:31 |
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 | kobayashi | OpenFOAM Community Contributions | 2 | January 5, 2014 17:33 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 13:00 |