CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] swak4Foam on OpenFoam-v2006?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree10Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2021, 08:32
Default
  #21
Member
 
Eren
Join Date: Aug 2018
Posts: 85
Rep Power: 7
ErenC is on a distinguished road
Quote:
Originally Posted by gschaider View Post
OK. The problem is that the build-scripts assume that the OBJECT_DIR-variable set up by the wmake-script points to a directory inside the Make-directories in the sources. Then the relative references like "../myflex" work (because they are in the Make-directories). In your case it points to a directory in the /home/erenc/OpenFOAM/OpenFOAM-v2012/build-directory and therefore the relative path doesn't work anymore.
I forgot when wmake makes the decision to compile to outside the sources. Either because some environment variables are missing. Or because things are compiled as root.
You don't compile as root (with sudo) by any chance?
Well, I deleted my files from that PC after recreating the previous post (as I said, it wasn't my PC) so I can't recreate it but I don't remember using the sudo, that might be the solution.
ErenC is offline   Reply With Quote

Old   December 6, 2021, 09:24
Default
  #22
New Member
 
Mark Sutkowy
Join Date: Mar 2019
Posts: 1
Rep Power: 0
sutkowy1 is on a distinguished road
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
Attached Images
File Type: png Capture.PNG (24.7 KB, 8 views)
File Type: jpg Capture2.jpg (180.9 KB, 6 views)
File Type: jpg Capture3.jpg (64.6 KB, 6 views)
sutkowy1 is offline   Reply With Quote

Old   September 8, 2022, 05:01
Default Hi Bernhard !!! Sorry for posting on an old thread...
  #23
New Member
 
Gaurav
Join Date: Jul 2022
Location: India
Posts: 5
Rep Power: 2
Gaurav C is on a distinguished road
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 05:10. Reason: last message did not include last few sentences..
Gaurav C is offline   Reply With Quote

Old   September 8, 2022, 05:06
Default
  #24
New Member
 
Gaurav
Join Date: Jul 2022
Location: India
Posts: 5
Rep Power: 2
Gaurav C is on a distinguished road
Quote:
Originally Posted by sutkowy1 View Post
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



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..
Gaurav C is offline   Reply With Quote

Old   September 8, 2022, 05:18
Default
  #25
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,224
Rep Power: 49
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Gaurav C View Post
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)

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
this should output something like

Code:
bear: /usr/bin/bear
use the package name before the colon in

Code:
apt-cache show bear
Anyway. To fix the proble temporarily remove the lines
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
from Allwmake. Then the compilation should work
Gaurav C likes this.
__________________
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
gschaider is offline   Reply With Quote

Old   September 8, 2022, 06:10
Default Thanks Sir for the prompt response..
  #26
New Member
 
Gaurav
Join Date: Jul 2022
Location: India
Posts: 5
Rep Power: 2
Gaurav C is on a distinguished road
Quote:
Originally Posted by gschaider View Post
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
this should output something like

Code:
bear: /usr/bin/bear
use the package name before the colon in

Code:
apt-cache show bear
Anyway. To fix the proble temporarily remove the lines
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
from Allwmake. Then the compilation should work
I did as you suggested, it compiled for a while then stopped again.

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 06:14. Reason: typo error
Gaurav C is offline   Reply With Quote

Old   September 8, 2022, 06:19
Default Hi Bernhard, Please find the current status..
  #27
New Member
 
Gaurav
Join Date: Jul 2022
Location: India
Posts: 5
Rep Power: 2
Gaurav C is on a distinguished road
Quote:
Originally Posted by Gaurav C View Post
I did as you suggested, it compiled for a while then stopped again.

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..



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 }
Gaurav C is offline   Reply With Quote

Old   September 8, 2022, 07:07
Default
  #28
New Member
 
Gaurav
Join Date: Jul 2022
Location: India
Posts: 5
Rep Power: 2
Gaurav C is on a distinguished road
Quote:
Originally Posted by gschaider View Post
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
this should output something like

Code:
bear: /usr/bin/bear
use the package name before the colon in

Code:
apt-cache show bear
Anyway. To fix the proble temporarily remove the lines
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
from Allwmake. Then the compilation should work





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
Gaurav C is offline   Reply With Quote

Old   September 21, 2022, 05:23
Default
  #29
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,224
Rep Power: 49
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Gaurav C View Post
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

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
gschaider is offline   Reply With Quote

Old   Yesterday, 06:04
Default
  #30
New Member
 
Altaf lone
Join Date: Nov 2022
Posts: 2
Rep Power: 0
altaf is on a distinguished road
Quote:
Originally Posted by Gaurav C View Post
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

Dear Mr. Gaurav



Did you solve the problem then? i am facing exactly the same problem with foam-v2112.
altaf is offline   Reply With Quote

Reply

Tags
openfoam-v2006, swak4foam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 14:55
[swak4Foam] swak4foam openfoam 7 installation problem Andrea23 OpenFOAM Community Contributions 1 February 17, 2020 19:11
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 09:51
[swak4Foam] Error: Installing swak4Foam into OpenFOAM 2.3.0 on CentOS 7 mushtime OpenFOAM Community Contributions 9 July 23, 2017 16:27
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 04:19


All times are GMT -4. The time now is 21:54.