|
[Sponsors] |
March 18, 2014, 06:18 |
|
#101 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Dear Bernhard,
Sorry to bother you again. I had problems with compiling simpleFunctionObjects under OpenFOAM-1.6-ext, apparently due to an incomplete OF installation. Therefore, I decided to upgrade to foam-extend-3.0 with swak4foam_2.x. Installation of foam-extend-3.0 seems all right, but when I try to compile swak4foam, it terminates with errors like ------------------------------------------------------------------------------------ In file included from helpers/switchableNotImplemented.C:43:0: helpers/switchableNotImplemented.H:47:19: fatal error: error.H: No such file or directory In file included from helpers/printSwakVersion.C:43:0: helpers/printSwakVersion.H:46:21: fatal error: Pstream.H: No such file or directory In file included from helpers/DebugOStream.C:37:0: helpers/DebugOStream.H:55:21: fatal error: Pstream.H: No such file or directorycompilation terminated. compilation terminated. compilation terminated. make: *** [Make/linux64GccDPOpt/DebugOStream.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Make/linux64GccDPOpt/switchableNotImplemented.o] Error 1 make: *** [Make/linux64GccDPOpt/printSwakVersion.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 ---------------------------------------------------------------------------------------------- And yes, I read the README and searched the MessageBoard, but I couldn't find the same error (of course there are similar errors, but I'm afraid I'm not a sufficiently advanced OF user to figure out a solution from that...). Thanks in advance for your help! Best Sita |
|
March 19, 2014, 19:35 |
|
#102 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
March 22, 2014, 14:06 |
|
#103 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Quote:
Best regards, Bruno
__________________
|
||
March 24, 2014, 05:08 |
|
#104 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Hi Bernhard, Bruno,
Thanks for your help! In the meantime I'm back at OpenFOAM-1.6-ext and simpleFunctionObjects, and I now see what's causing my problems there: files that are normally located in /usr/include (like <sys/cdefs.h>, etc.) are located in /usr/include/x86_64-linux-gnu on my system (Ubuntu 12.04 LTS, 64 bits). So it seems to be not really OpenFOAM related, but maybe you can still help me: how do I tell my computer where to look for these files? Kind regards, Sita Update: adding the correct path to Make/options seems to work, but gives the error below: cc1plus: error: unrecognised debug output level "nu" cc1plus: error: unrecognised debug output level "nu"cc1plus: error: unrecognised debug output level "nu" make: *** [Make/linux64GccDPOpt/SolverInfo.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Make/linux64GccDPOpt/simpleFunctionObject.o] Error 1 make: *** [Make/linux64GccDPOpt/simpleDataFunctionObject.o] Error 1 cc1plus: error: unrecognised debug output level "nu" make: *** [Make/linux64GccDPOpt/timelineFunctionObject.o] Error 1 Last edited by sita; March 24, 2014 at 09:05. Reason: update |
|
March 25, 2014, 10:55 |
|
#105 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
March 28, 2014, 09:45 |
Error when installing swak4foam for foam extend 3.0
|
#106 |
New Member
Miguel Nóbrega
Join Date: Jul 2012
Posts: 21
Rep Power: 14 |
Last edited by mnobrega; March 30, 2014 at 10:03. Reason: moving to a new thread |
|
March 31, 2014, 05:28 |
|
#107 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Great, everything seems to work now: foam-extend-3.0 and swak4foam-2.x both compiled without errors. I didn't try swak4foam yet, but foam-extend-3.0 runs without problems. Everyone, thanks for your help!
Sita |
|
May 16, 2014, 10:30 |
Swak4Foam 0.3.0 on foam-extend-3.0 and Opensuse 12.2
|
#108 |
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17 |
Hi,
I am struggeling with the installation of swak4Foam with foam-extend-3.0. I used this source: Code:
https://github.com/Unofficial-Extend-Project-Mirror/openfoam-extend-Breeder2.0-libraries-swak4Foam Code:
/Allwmake Previously compiled for OpenFOAM 3.0 No file 'swakConfiguration'. Python etc won't work. See README for details Checking swak4Foam-version and generating file Swak version is 0.3.0 Bison is version 2.5 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 3 Minor 0 Patch -1 (-1 == x) No change to swak4FoamParsers/foamVersion4swak.H WM_NCOMPPROCS 8 will cause race conditions with the grammars. Resetting to 3 for this library SOURCE=repositories/SurfacesRepository.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64Gcc47DPOpt -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/finiteVolume/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/sampling/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/fileFormats/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/triSurface/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/surfMesh/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/lagrangian/basic/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc47DPOpt/SurfacesRepository.o SOURCE=repositories/MeshesRepository.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64Gcc47DPOpt -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/finiteVolume/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/sampling/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/fileFormats/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/triSurface/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/surfMesh/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/lagrangian/basic/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc47DPOpt/MeshesRepository.o SOURCE=repositories/GlobalVariablesRepository.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64Gcc47DPOpt -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/finiteVolume/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/sampling/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/fileFormats/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/triSurface/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/surfMesh/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/lagrangian/basic/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude -I/home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc47DPOpt/GlobalVariablesRepository.o repositories/SurfacesRepository.C:45:9: error: invalid use of template-name ‘Foam::surfaceWriter’ without an argument list repositories/SurfacesRepository.C: In member function ‘Foam::sampledSurface& Foam::SurfacesRepository::getSurface(const Foam::dictionary&, const Foam::fvMesh&)’: repositories/SurfacesRepository.C:169:21: error: ‘scalarSurfaceWriter’ was not declared in this scope repositories/SurfacesRepository.C:169:40: error: template argument 1 is invalid repositories/SurfacesRepository.C:169:51: error: invalid type in declaration before ‘(’ token repositories/SurfacesRepository.C:170:17: error: ‘scalarSurfaceWriter’ is not a class or namespace repositories/SurfacesRepository.C:182:26: error: base operand of ‘->’ is not a pointer repositories/SurfacesRepository.C: In member function ‘virtual bool Foam::SurfacesRepository::writeData(Foam::Ostream&) const’: repositories/SurfacesRepository.C:211:17: error: ‘scalarSurfaceWriter’ was not declared in this scope repositories/SurfacesRepository.C:211:36: error: template argument 1 is invalid repositories/SurfacesRepository.C:211:47: error: invalid type in declaration before ‘(’ token repositories/SurfacesRepository.C:212:13: error: ‘scalarSurfaceWriter’ is not a class or namespace repositories/SurfacesRepository.C:215:18: error: base operand of ‘->’ is not a pointer repositories/MeshesRepository.C: In member function ‘Foam::fvMesh& Foam::MeshesRepository::addCoupledMesh(const Foam::word&, const Foam::word&, const Foam::word&)’: repositories/MeshesRepository.C:189:55: error: ‘class Foam::HashPtrTable<Foam::fvMesh, Foam::word>’ has no member named ‘sortedToc’ repositories/MeshesRepository.C: In member function ‘Foam::scalar Foam::MeshesRepository::setTime(const Foam::word&, Foam::scalar, Foam::label)’: repositories/MeshesRepository.C:299:59: error: no matching function for call to ‘Foam::HashTable<Foam::regIOobject*>::HashTable(Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>)’ repositories/MeshesRepository.C:299:59: note: candidates are: In file included from /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashTable.H:456:0, from /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashPtrTable.H:39, from /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/PtrMap.H:38, from repositories/MeshesRepository.H:50, from repositories/MeshesRepository.C:37: /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashTable.C:110:1: note: Foam::HashTable<T, Key, Hash>::HashTable(const Foam::Xfer<Foam::HashTable<T, Key, Hash> >&) [with T = Foam::regIOobject*; Key = Foam::word; Hash = Foam::string::hash] /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashTable.C:110:1: note: no known conversion for argument 1 from ‘Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>’ to ‘const Foam::Xfer<Foam::HashTable<Foam::regIOobject*> >&’ /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashTable.C:84:1: note: Foam::HashTable<T, Key, Hash>::HashTable(const Foam::HashTable<T, Key, Hash>&) [with T = Foam::regIOobject*; Key = Foam::word; Hash = Foam::string::hash] /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashTable.C:84:1: note: no known conversion for argument 1 from ‘Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>’ to ‘const Foam::HashTable<Foam::regIOobject*>&’ In file included from /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashTable.C:646:0, from /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashTable.H:456, from /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashPtrTable.H:39, from /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/PtrMap.H:38, from repositories/MeshesRepository.H:50, from repositories/MeshesRepository.C:37: /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashTableIO.C:33:1: note: Foam::HashTable<T, Key, Hash>::HashTable(Foam::Istream&, Foam::label) [with T = Foam::regIOobject*; Key = Foam::word; Hash = Foam::string::hash; Foam::label = int] /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashTableIO.C:33:1: note: no known conversion for argument 1 from ‘Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>’ to ‘Foam::Istream&’ In file included from /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashTable.H:456:0, from /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashPtrTable.H:39, from /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/PtrMap.H:38, from repositories/MeshesRepository.H:50, from repositories/MeshesRepository.C:37: /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashTable.C:62:1: note: Foam::HashTable<T, Key, Hash>::HashTable(Foam::label) [with T = Foam::regIOobject*; Key = Foam::word; Hash = Foam::string::hash; Foam::label = int] /home/mrehm/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude/HashTable.C:62:1: note: no known conversion for argument 1 from ‘Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>’ to ‘Foam::label {aka int}’ make: *** [Make/linux64Gcc47DPOpt/SurfacesRepository.o] Fehler 1 make: *** Warte auf noch nicht beendete Prozesse... make: *** [Make/linux64Gcc47DPOpt/MeshesRepository.o] Fehler 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 Regards, Markus. |
|
May 16, 2014, 16:24 |
|
#109 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Markus,
A few questions:
Bruno
__________________
|
|
May 19, 2014, 04:46 |
|
#110 |
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17 |
Hi Bruno,
thank you very much for your hints. Unfortunately the error persists. But you are right, I had some trouble installing the extend-3.0-Version and changed some folders. However, it does run fine up to now, except SWAK. Maybe I should do a clean reinstall. Thank you, anyway. Regards, Markus. |
|
May 20, 2014, 13:28 |
|
#111 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
I notice that your compiler calls don't have -DFOAM_DEV. That is used by swak to distinguish between OpenFOAM and Foam-Extend (foam-extend should set this automatically)
__________________
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 |
||
June 4, 2014, 04:19 |
Swak4Foam 0.2.3 installation error
|
#112 |
New Member
Anonymous
Join Date: May 2013
Posts: 6
Rep Power: 13 |
Hi,
I am encountering problems in installing swak4Foam 0.2.3 for OF2.3.0. Bison 2.7.12 Flex2.5.37 gcc 4.6.2 I have attached the texts that displayed while ./Allwmake it as a docx file. Pls help me for the same. Thanks in advance |
|
June 4, 2014, 04:33 |
|
#113 |
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17 |
Hi Bernhard,
thank's for the hint. That did help! Both variables -DFOAM_DEV and -FOAM_DEV were not set. But after setting it manually it worked. Regards, Markus. |
|
June 4, 2014, 06:07 |
|
#114 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
0.2.3 is over a year old. It knows nothing about OF 2.3. Use the latest release version and if you still have problems we can talk
__________________
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 |
|
June 11, 2014, 05:08 |
Bison 2.3 and installation
|
#115 | |
New Member
Join Date: Jul 2013
Posts: 6
Rep Power: 13 |
Hello everyone,
as you might expect, I am also having problem installing swak4foam, on a cluster. First of all, the versions installed are: OpenFoam 2.1.0 Bison 2.3 Flex 2.5.35 swak4Foam 0.3.0 It compiles until it yields: Quote:
Any ideas on how to fix this? Thanks in advance, Regards, Bruno |
||
June 11, 2014, 05:41 |
|
#116 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
June 11, 2014, 05:49 |
|
#117 |
New Member
Join Date: Jul 2013
Posts: 6
Rep Power: 13 |
Hello Bernhard,
Thank you very much for the quick answer. Unfortuantely, I do not think I will be able to make the IT guys update the Bison version on the whole cluster as I am only a master thesis student but I might be able to put it on one of the work stations. Hence, my next question: Is Bison only used to compile swak4Foam and not used anymore once it is installed? i.e. could I compile swak4Foam on the only machine which has Bison 2.7 and then run a parallel case on other machines which have Bison 2.3? Thanks again for your patience, Regards, Bruno |
|
June 11, 2014, 05:58 |
|
#118 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
If your admins also do not feel like installing mercurial: the last link in section "Tarballs" on the swak-page should get the current dev-version
__________________
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 |
||
June 11, 2014, 06:42 |
|
#119 |
New Member
Join Date: Jul 2013
Posts: 6
Rep Power: 13 |
Thank you, Bernhard.
|
|
November 5, 2014, 05:13 |
|
#120 |
New Member
Mahdi
Join Date: Sep 2013
Posts: 11
Rep Power: 13 |
Dear All,
I am trying to install swak4FOAM on my OpenFOAM1.6ext, but it gives the error: ---------------------------------------------------------------------------------------------------------------------------- lnInclude/swak.H:89:5: note: in expansion of macro ‘FOAM_VERSION4SWAK’ #if FOAM_VERSION4SWAK < VERSION_NR(1,7,0) ^ make: *** [Make/linux64GccDPOpt/printSwakVersion.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Make/linux64GccDPOpt/exprString.o] Error 1 Parser library did not compile OK. No sense continuing as everything else depends on it ---------------------------------------------------------------------------------------------------------------------------- Could you please let me know how I could make it work? Thanks in advance and Best, |
|
Tags |
compile error, swak4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
InterDyMFoam+simpleFunctionObject | Elham | OpenFOAM Running, Solving & CFD | 5 | July 10, 2017 12:59 |
[swak4Foam] and twoPhaseEulerFoam | mnikku | OpenFOAM Community Contributions | 1 | February 19, 2016 06:21 |
source term in near wall cell | rajcfd | OpenFOAM Pre-Processing | 5 | February 1, 2016 11:31 |
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 | kobayashi | OpenFOAM Community Contributions | 2 | January 5, 2014 18:33 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |