|
[Sponsors] |
October 18, 2021, 07:32 |
|
#21 | |
Member
Eren
Join Date: Aug 2018
Posts: 86
Rep Power: 9 |
Quote:
|
||
December 6, 2021, 08:24 |
|
#22 |
New Member
Mark Sutkowy
Join Date: Mar 2019
Posts: 1
Rep Power: 0 |
I'm also having an issue compiling on OF-v2012 with Ubuntu 18.04 for Windows.
I looks like it quits during "wmake libso simpleCloudFunctionObjects" (see attached). Eventually, it tells me the requirements for library are not satisfied, so not entirely sure whether this is tied to some software dependency or something else. Has anyone seen this before? Thanks, Mark |
|
September 8, 2022, 04:01 |
Hi Bernhard !!! Sorry for posting on an old thread...
|
#23 |
New Member
Gaurav
Join Date: Jul 2022
Location: India
Posts: 5
Rep Power: 4 |
I am facing this problem....
openfoam2112:~/OpenFOAM/gaurav-v2112/applications/swak4Foam/ gaurav$ ./AllwmakeAll 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 already installed/compiled Bison successfully compiled Lua already installed/compiled Lua successfully compiled Add /home/gaurav/OpenFOAM/gaurav-v2112/applications/swak4Foam/privateRequirements/bin to PATH-variable. The ./Allwmake-script will use this directory automatically Current OpenFOAM version is v2112. Previously compiled for OpenFOAM (v2112) /home/gaurav/OpenFOAM/gaurav-v2112/applications/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/gaurav/OpenFOAM/gaurav-v2112/applications/swak4Foam/privateRequirements Checking swak4Foam-version and generating file Swak version is 202x.yy.0 hg info: 481d96f16780 (develop) tip Using /usr/bin/bear to build compilation database Bison: /home/gaurav/OpenFOAM/gaurav-v2112/applications/swak4Foam/privateRequirements/bin/bison Flex: /usr/bin/flex Bison at /home/gaurav/OpenFOAM/gaurav-v2112/applications/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4) Flex is version 2.6.4 (Minor version: 4) OpenFOAM-version: Major 2112 Minor 0 Patch 0 (-1 == x / 0) Fork: com No change to swak4FoamParsers/foamVersion4swak.H Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem Unrecognized parameter: "--cdb=/home/gaurav/OpenFOAM/gaurav-v2112/applications/swak4Foam/compile_commands.json" Usage: bear [--output <arg>] [--verbose] -- ... 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 occurred to 5 other people before and has been solved on the MessageBoard openfoam2112:~/OpenFOAM/gaurav-v2112/applications/swak4Foam/ gaurav$ I have followed following steps to install sak4Foam in openFOAM v2112 sudo apt install pip pip install pyFOAM sudo apt install mercurial sudo apt install bison 3 or higher sudo apt install python-is-python3 cd OpenFOAM/gaurav-v2206 mkdir applications cd OpenFOAM/gaurav-v2206/applications hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam cd OpenFOAM/gaurav-v2206/applications/swak4Foam openfoam2206 hg update develop ./AllwmakeAll pre { background: transparent }pre.western { font-family: "Liberation Mono", monospace; font-size: 10pt }pre.cjk { font-family: "Noto Sans Mono CJK SC", monospace; font-size: 10pt }pre.ctl { font-family: "Liberation Mono", monospace; font-size: 10pt }p { line-height: 115%; margin-bottom: 0.25cm; background: transparent }a:visited { color: #800000; so-language: zxx; text-decoration: underline }a:link { color: #000080; so-language: zxx; text-decoration: underline } (Few days back, I successfully installed in v2206, but now need to install on v2112 also due to some reason in the same laptop) Last edited by Gaurav C; September 8, 2022 at 04:10. Reason: last message did not include last few sentences.. |
|
September 8, 2022, 04:06 |
|
#24 | |
New Member
Gaurav
Join Date: Jul 2022
Location: India
Posts: 5
Rep Power: 4 |
Quote:
Hi Although, I am also Learning OpenFOAM, BUT here I think you need to install "bear" sudo apt install bear after that you will face what I am facing write now, if you have solved the problem please share here. I hope it would help me, as I am also facing the same issue.. |
||
September 8, 2022, 04:18 |
|
#25 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Thanks for providing all the necessary information to diagnose the problem Seems that the utility /usr/bin/bear is not what the script expects (a utility that aids development by building a database of the source). Would be good to know which one to avoid that problem in the future. Could you Code:
dpkg -S /usr/bin/bear Code:
bear: /usr/bin/bear Code:
apt-cache show bear Code:
BEARPATH=$(which bear) if [[ $? == 0 ]]; then echo "Using ${BEARPATH} to build compilation database" export BEAR_COMPILE_PREFIX="bear --append --cdb=$(pwd)/compile_commands.json" else echo "No 'bear' installed" fi
__________________
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 |
||
September 8, 2022, 05:10 |
Thanks Sir for the prompt response..
|
#26 | |
New Member
Gaurav
Join Date: Jul 2022
Location: India
Posts: 5
Rep Power: 4 |
Quote:
I am overwhelmed with your fast response, but all of sudden internet is not working in the University... Please give me some time to arrange current errors here.. Last edited by Gaurav C; September 8, 2022 at 05:14. Reason: typo error |
||
September 8, 2022, 05:19 |
Hi Bernhard, Please find the current status..
|
#27 | |
New Member
Gaurav
Join Date: Jul 2022
Location: India
Posts: 5
Rep Power: 4 |
Quote:
gaurav$ ./AllwmakeAll 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 already installed/compiled Bison successfully compiled Lua already installed/compiled Lua successfully compiled Add /home/gaurav/OpenFOAM/gaurav-v2112/applications/swak4Foam/privateRequirements/bin to PATH-variable. The ./Allwmake-script will use this directory automatically Current OpenFOAM version is v2112. Previously compiled for OpenFOAM (v2112) /home/gaurav/OpenFOAM/gaurav-v2112/applications/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/gaurav/OpenFOAM/gaurav-v2112/applications/swak4Foam/privateRequirements Checking swak4Foam-version and generating file Swak version is 202x.yy.0 hg info: 481d96f16780+ (develop) tip Bison: /home/gaurav/OpenFOAM/gaurav-v2112/applications/swak4Foam/privateRequirements/bin/bison Flex: /usr/bin/flex Bison at /home/gaurav/OpenFOAM/gaurav-v2112/applications/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4) Flex is version 2.6.4 (Minor version: 4) OpenFOAM-version: Major 2112 Minor 0 Patch 0 (-1 == x / 0) Fork: com No change to swak4FoamParsers/foamVersion4swak.H Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem wmake libso swak4FoamParsers g++ -std=c++14 -m64 -pthread -DOPENFOAM=2112 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPInt32Opt -I/usr/lib/openfoam/openfoam2112/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2112/src/surfMesh/lnInclude -I/usr/lib/openfoam/openfoam2112/src/sampling/lnInclude -I/usr/lib/openfoam/openfoam2112/src/fileFormats/lnInclude -I/usr/lib/openfoam/openfoam2112/src/dynamicMesh/lnInclude -I/usr/lib/openfoam/openfoam2112/src/lagrangian/basic/lnInclude -I/usr/lib/openfoam/openfoam2112/src/surfMesh/lnInclude -I/usr/lib/openfoam/openfoam2112/src/meshTools/lnInclude -I../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/ -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2112/src/OSspecific/POSIX/lnInclude -fPIC -c repositories/SetsRepository.C -o Make/linux64GccDPInt32Opt/repositories/SetsRepository.o repositories/SetsRepository.C:48:22: error: ‘scalar’ was not declared in this scope; did you mean ‘Foam::scalar’? 48 | typedef Foam::writer<scalar> writerType; | ^~~~~~ | Foam::scalar In file included from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/floatScalar.H:41, from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/scalar.H:42, from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/IOstream.H:52, from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/Ostream.H:42, from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/OSstream.H:42, from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/messageStream.H:285, from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/error.H:59, from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/autoPtrI.H:29, from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/autoPtr.H:312, from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/List.H:46, from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/labelList.H:45, from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/UPstream.H:46, from /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/Pstream.H:45, from lnInclude/DebugOStream.H:50, from lnInclude/swak.H:880, from repositories/SetsRepository.C:33: /usr/lib/openfoam/openfoam2112/src/OpenFOAM/lnInclude/scalarFwd.H:63:22: note: ‘Foam::scalar’ declared here 63 | typedef doubleScalar scalar; | ^~~~~~ repositories/SetsRepository.C:48:28: error: template argument 1 is invalid 48 | typedef Foam::writer<scalar> writerType; | ^ repositories/SetsRepository.C: In member function ‘Foam::sampledSet& Foam::SetsRepository::getSet(const Foam::dictionary&, const Foam:olyMesh&)’: repositories/SetsRepository.C:182:32: error: expected unqualified-id before ‘(’ token 182 | writerType::New(format) | ^ repositories/SetsRepository.C:182:32: error: expected ‘)’ before ‘(’ token 182 | writerType::New(format) | ^ | ) repositories/SetsRepository.C:181:42: note: to match this ‘(’ 181 | autoPtr<writerType> theWriter( | ^ repositories/SetsRepository.C:182:39: warning: declaration of ‘Foam::autoPtr<int> Foam::theWriter(...)’ has ‘extern’ and is initialized 182 | writerType::New(format) | ^ repositories/SetsRepository.C:182:32: error: initializer provided for function 182 | writerType::New(format) | ^ repositories/SetsRepository.C:201:43: error: request for member ‘getFileName’ in ‘* Foam::theWriter’, which is of non-class type ‘Foam::autoPtr<int>(...)’ 201 | fileName fName(theWriter->getFileName(set, wordList(0))); | ^~~~~~~~~~~ repositories/SetsRepository.C:207:28: error: request for member ‘write’ in ‘* Foam::theWriter’, which is of non-class type ‘Foam::autoPtr<int>(...)’ 207 | theWriter->write( | ^~~~~ repositories/SetsRepository.C: In member function ‘virtual bool Foam::SetsRepository::writeData(Foam::Ostream&) const’: repositories/SetsRepository.C:278:28: error: expected unqualified-id before ‘(’ token 278 | writerType::New(format) | ^ repositories/SetsRepository.C:278:28: error: expected ‘)’ before ‘(’ token 278 | writerType::New(format) | ^ | ) repositories/SetsRepository.C:277:38: note: to match this ‘(’ 277 | autoPtr<writerType> theWriter( | ^ repositories/SetsRepository.C:278:35: warning: declaration of ‘Foam::autoPtr<int> Foam::theWriter(...)’ has ‘extern’ and is initialized 278 | writerType::New(format) | ^ repositories/SetsRepository.C:278:28: error: initializer provided for function 278 | writerType::New(format) | ^ repositories/SetsRepository.C:288:35: error: request for member ‘getFileName’ in ‘* Foam::theWriter’, which is of non-class type ‘Foam::autoPtr<int>(...)’ 288 | fileName fName(theWriter->getFileName(set, wordList(0))); | ^~~~~~~~~~~ repositories/SetsRepository.C:291:20: error: request for member ‘write’ in ‘* Foam::theWriter’, which is of non-class type ‘Foam::autoPtr<int>(...)’ 291 | theWriter->write( | ^~~~~ repositories/SetsRepository.C:273:21: warning: unused variable ‘format’ [-Wunused-variable] 273 | const word &format=it(); | ^~~~~~ make: *** [/usr/lib/openfoam/openfoam2112/wmake/rules/General/transform:35: Make/linux64GccDPInt32Opt/repositories/SetsRepository.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 occurred to 5 other people before and has been solved on the MessageBoard openfoam2112:~/OpenFOAM/gaurav-v2112/applications/swak4Foam/ gaurav$ Thanks in advance Sir p { line-height: 115%; margin-bottom: 0.25cm; background: transparent } |
||
September 8, 2022, 06:07 |
|
#28 | |
New Member
Gaurav
Join Date: Jul 2022
Location: India
Posts: 5
Rep Power: 4 |
Quote:
Please find the results of above commands dpkg -S /usr/bin/bear bear: /usr/bin/bear gaurav@hp14:~$ apt-cache show bear Package: bear Architecture: amd64 Version: 3.0.18-1 Priority: optional Section: universe/devel Origin: Ubuntu Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Original-Maintainer: Sebastian Ramacher <sramacher@debian.org> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1160 Depends: libear (= 3.0.18-1), libc6 (>= 2.34), libfmt8 (>= 8.0.1+ds1), libgcc-s1 (>= 3.3.1), libgrpc++1 (>= 1.30.2), libprotobuf23 (>= 3.12.4), libspdlog1-fmt8, libstdc++6 (>= 11) Filename: pool/universe/b/bear/bear_3.0.18-1_amd64.deb Size: 347638 MD5sum: 92fa84e3c3d6f62649fe70a401875caa SHA1: aa2bf89276f742ac079bc4c5fcd6509d23111a62 SHA256: 27765033c333cda6eb65b11c8cd8f601ab35cca79247a33b65 5632a9d7292f2f SHA512: b7a1fca31bd925712baa68e65d4afbf4ece64d794cbb8adb35 ab00d7dce42977d3b4f54735117baa152f0f53c68dcd6fa945 b9567ed3702028b6dc796105f8b4 Homepage: https://github.com/rizsotto/Bear Description-en: generate compilation database for Clang tooling Bear records the flags passed to the compiler for each translation unit and stores them in a JSON file. This file can be used by Clang's tooling interface and programs like clang-check to process a translation unit. . cmake supports the generation of JSON compilation databases out of the box. For any other build system that does not support this, Bear can be used instead to intercept the invocation of the compiler. Description-md5: 7181645ef316f8148f4d7cc522b76bf9 |
||
September 21, 2022, 04:23 |
|
#29 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
OK. This is the right program but a newer version than mine (2.3) Seems that they changed the parameters
__________________
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 |
||
December 8, 2022, 05:04 |
|
#30 | |
New Member
Altaf lone
Join Date: Nov 2022
Posts: 3
Rep Power: 3 |
Quote:
Dear Mr. Gaurav Did you solve the problem then? i am facing exactly the same problem with foam-v2112. |
||
December 10, 2022, 08:03 |
"openfoam-v2112" "swak4foam" "installation error"
|
#31 |
New Member
Altaf lone
Join Date: Nov 2022
Posts: 3
Rep Power: 3 |
Dear foamers
i am trying to install swak4foam for my openfoam-v2112 but have not been able to do for a while. i am trying get this work for a week now and i am not able to do it. my method of installation for the error message attached below is as follows Steps for swak4Foam installation: create run directory: mkdir -p $FOAM_RUN cd "$HOME/OpenFOAM/$USER-$WM_PROJECT_VERSION" download swak4Foam hg clone http://hg.code.sf.net/p/openfoam-exte... swak4Foam (cd swak4Foam && hg update develop) install ./maintainanceScripts/compileRequirements.sh ./AllwmakeAll the error message i get is pasted below 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 already installed/compiled Bison successfully compiled Lua already installed/compiled Lua successfully compiled Add /home/altaf/OpenFOAM/altaf-v2112/swak4Foam/privateRequirements/bin to PATH-variable. The ./Allwmake-script will use this directory automatically Current OpenFOAM version is v2112. Previously compiled for OpenFOAM (v2112) /home/altaf/OpenFOAM/altaf-v2112/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison) Reading variables from 'swakConfiguration' Looking for Python 2 Found Python 2.7 Configuring Python 2.7 Using python2.7 at /usr/bin/python2.7-config for python2 Looking for Python 3 Found Python 3.8 Configuring Python 3.8 Using python3.8 at /usr/bin/python3.8-config for python3 Using our own Lua at /home/altaf/OpenFOAM/altaf-v2112/swak4Foam/privateRequirements Checking swak4Foam-version and generating file Swak version is 202x.yy.0 hg info: 481d96f16780 (develop) tip Using /usr/bin/bear to build compilation database Bison: /home/altaf/OpenFOAM/altaf-v2112/swak4Foam/privateRequirements/bin/bison Flex: /usr/bin/flex Bison at /home/altaf/OpenFOAM/altaf-v2112/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4) Flex is version 2.6.4 (Minor version: 4) OpenFOAM-version: Major 2112 Minor 0 Patch 0 (-1 == x / 0) Fork: com No change to swak4FoamParsers/foamVersion4swak.H Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem wmake libso swak4FoamParsers g++ -std=c++11 -m64 -pthread -DOPENFOAM=2112 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPInt32Opt -I/home/altaf/foam-2112/OpenFOAM-v2112/src/finiteVolume/lnInclude -I/home/altaf/foam-2112/OpenFOAM-v2112/src/surfMesh/lnInclude -I/home/altaf/foam-2112/OpenFOAM-v2112/src/sampling/lnInclude -I/home/altaf/foam-2112/OpenFOAM-v2112/src/fileFormats/lnInclude -I/home/altaf/foam-2112/OpenFOAM-v2112/src/dynamicMesh/lnInclude -I/home/altaf/foam-2112/OpenFOAM-v2112/src/lagrangian/basic/lnInclude -I/home/altaf/foam-2112/OpenFOAM-v2112/src/surfMesh/lnInclude -I/home/altaf/foam-2112/OpenFOAM-v2112/src/meshTools/lnInclude -I../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/ -iquote. -IlnInclude -I/home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude -I/home/altaf/foam-2112/OpenFOAM-v2112/src/OSspecific/POSIX/lnInclude -fPIC -c repositories/SetsRepository.C -o Make/linux64GccDPInt32Opt/repositories/SetsRepository.o repositories/SetsRepository.C:48:22: error: ‘scalar’ was not declared in this scope; did you mean ‘Foam::scalar’? 48 | typedef Foam::writer<scalar> writerType; | ^~~~~~ | Foam::scalar In file included from /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/floatScalar.H:41, from /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/scalar.H:42, from /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/IOstream.H:52, from /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/Ostream.H:42, from /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/OSstream.H:42, from /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/messageStream.H:285, from /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/error.H:59, from /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/autoPtrI.H:29, from /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/autoPtr.H:312, from /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/List.H:46, from /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/labelList.H:45, from /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/UPstream.H:46, from /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/Pstream.H:45, from lnInclude/DebugOStream.H:50, from lnInclude/swak.H:880, from repositories/SetsRepository.C:33: /home/altaf/foam-2112/OpenFOAM-v2112/src/OpenFOAM/lnInclude/scalarFwd.H:63:22: note: ‘Foam::scalar’ declared here 63 | typedef doubleScalar scalar; | ^~~~~~ repositories/SetsRepository.C:48:28: error: template argument 1 is invalid 48 | typedef Foam::writer<scalar> writerType; | ^ repositories/SetsRepository.C: In member function ‘Foam::sampledSet& Foam::SetsRepository::getSet(const Foam::dictionary&, const Foam:olyMesh&)’: repositories/SetsRepository.C:182:32: error: expected unqualified-id before ‘(’ token 182 | writerType::New(format) | ^ repositories/SetsRepository.C:182:32: error: expected ‘)’ before ‘(’ token 182 | writerType::New(format) | ^ | ) repositories/SetsRepository.C:181:42: note: to match this ‘(’ 181 | autoPtr<writerType> theWriter( | ^ repositories/SetsRepository.C:182:39: warning: declaration of ‘Foam::autoPtr<int> Foam::theWriter(...)’ has ‘extern’ and is initialized 182 | writerType::New(format) | ^ repositories/SetsRepository.C:182:32: error: initializer provided for function 182 | writerType::New(format) | ^ repositories/SetsRepository.C:201:43: error: request for member ‘getFileName’ in ‘* Foam::theWriter’, which is of non-class type ‘Foam::autoPtr<int>(...)’ 201 | fileName fName(theWriter->getFileName(set, wordList(0))); | ^~~~~~~~~~~ repositories/SetsRepository.C:207:28: error: request for member ‘write’ in ‘* Foam::theWriter’, which is of non-class type ‘Foam::autoPtr<int>(...)’ 207 | theWriter->write( | ^~~~~ repositories/SetsRepository.C: In member function ‘virtual bool Foam::SetsRepository::writeData(Foam::Ostream&) const’: repositories/SetsRepository.C:278:28: error: expected unqualified-id before ‘(’ token 278 | writerType::New(format) | ^ repositories/SetsRepository.C:278:28: error: expected ‘)’ before ‘(’ token 278 | writerType::New(format) | ^ | ) repositories/SetsRepository.C:277:38: note: to match this ‘(’ 277 | autoPtr<writerType> theWriter( | ^ repositories/SetsRepository.C:278:35: warning: declaration of ‘Foam::autoPtr<int> Foam::theWriter(...)’ has ‘extern’ and is initialized 278 | writerType::New(format) | ^ repositories/SetsRepository.C:278:28: error: initializer provided for function 278 | writerType::New(format) | ^ repositories/SetsRepository.C:288:35: error: request for member ‘getFileName’ in ‘* Foam::theWriter’, which is of non-class type ‘Foam::autoPtr<int>(...)’ 288 | fileName fName(theWriter->getFileName(set, wordList(0))); | ^~~~~~~~~~~ repositories/SetsRepository.C:291:20: error: request for member ‘write’ in ‘* Foam::theWriter’, which is of non-class type ‘Foam::autoPtr<int>(...)’ 291 | theWriter->write( | ^~~~~ repositories/SetsRepository.C:273:21: warning: unused variable ‘format’ [-Wunused-variable] 273 | const word &format=it(); | ^~~~~~ make: *** [/home/altaf/foam-2112/OpenFOAM-v2112/wmake/rules/General/transform:35: Make/linux64GccDPInt32Opt/repositories/SetsRepository.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 occurred to 5 other people before and has been solved on the MessageBoard request help. altaf |
|
January 2, 2023, 10:14 |
|
#32 | |
Member
Eren
Join Date: Aug 2018
Posts: 86
Rep Power: 9 |
Quote:
Swak4Foam on OF2006 on my local pc works fine, but now I need to use swak4foam for my work, and again, it doesn't compile with OF2112. Error message is below, and no it does not compile with using "sudo ./AllwmakeAll" somehow using sudo overrides the OF environment... I followed your comment, and yes there is really no files but I don't know how to fix it... [CODE]Bison already installed/compiled Bison successfully compiled Lua already installed/compiled Lua successfully compiled Add /home/eren/OpenFOAM-v2112/swak4Foam/privateRequirements/bin to PATH-variable. The ./Allwmake-script will use this directory automatically Current OpenFOAM version is v2112. This is a clean install Code:
/home/eren/OpenFOAM-v2112/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison) Reading variables from 'swakConfiguration' Looking for Python 2 Found Python 2.7 Configuring Python 2.7 Using python2.7 at /usr/bin/python2.7-config for python2 Looking for Python 3 Found Python 3.6 Configuring Python 3.6 Using python3.6 at /usr/bin/python3.6-config for python3 Using our own Lua at /home/eren/OpenFOAM-v2112/swak4Foam/privateRequirements Checking swak4Foam-version and generating file Swak version is 202x.yy.0 hg info: 481d96f16780 (develop) tip Using /usr/bin/bear to build compilation database Bison: /home/eren/OpenFOAM-v2112/swak4Foam/privateRequirements/bin/bison Flex: /usr/bin/flex Bison at /home/eren/OpenFOAM-v2112/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4) Flex is version 2.6.4 (Minor version: 4) OpenFOAM-version: Major 2112 Minor 0 Patch 0 (-1 == x / 0) Fork: com No swak4FoamParsers/foamVersion4swak.H. Generated Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem ln: simpleFunctionObjects/lnInclude wmake libso swak4FoamParsers /home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:61: /home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../../../rules/versionOptions: No such file or directory /home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:71: /home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../mybison: No such file or directory /home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:72: /home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory make: *** No rule to make target '/home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop. /home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:61: /home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../../../rules/versionOptions: No such file or directory /home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:71: /home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../mybison: No such file or directory /home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:72: /home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory make: *** No rule to make target '/home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop. wmake error: file '/home/eren/OpenFOAM-v2112/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/sourceFiles' could not be created in /home/eren/OpenFOAM-v2112/swak4Foam/Libraries/swak4FoamParsers 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 |
||
September 9, 2024, 07:42 |
|
#33 | |
New Member
Join Date: Sep 2024
Posts: 1
Rep Power: 0 |
Quote:
Code:
hg update develop Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam -u develop In file included from ../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.C:26: lnInclude/swak.H:48:2: error: #error "This swak4Foam-version is only used for the 2.x-versions of OpenFOAM. For lower versions there is a special branch" #error "This swak4Foam-version is only used for the 2.x-versions of OpenFOAM. For lower versions there is a special branch" ^~~~~ make: *** [/home/users/OpenFoam/OpenFOAM-v2006/wmake/rules/General/transform:35: Make/linux64GccDPInt32Opt/../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.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 occurred to 5 other people before and has been solved on the MessageBoard. It appears that the version of swak4Foam I am using is incompatible with OpenFOAM v2006. I would greatly appreciate any guidance or solutions you might have to resolve this issue. Best regards. |
||
Tags |
openfoam-v2006, swak4foam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 06:54 |
[swak4Foam] swak4foam openfoam 7 installation problem | Andrea23 | OpenFOAM Community Contributions | 1 | February 17, 2020 18:11 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 08:51 |
[swak4Foam] Error: Installing swak4Foam into OpenFOAM 2.3.0 on CentOS 7 | mushtime | OpenFOAM Community Contributions | 9 | July 23, 2017 15:27 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 03:19 |