CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [foam-extend.org] Installing swak4Foam on Foam-Extend-4.1 (https://www.cfd-online.com/Forums/openfoam-installation/242946-installing-swak4foam-foam-extend-4-1-a.html)

Bana May 20, 2022 11:15

Installing swak4Foam on Foam-Extend-4.1
 
Hello everyone,


I am facing problems installing swak4foam on foam-extend 4.1 which I can not identify the source of it.

The main error I think is this one:

PHP Code:

RawFoamDictionaryParserDriver.C:38:10fatal errorRawFoamDictionaryParser.tab.hhNo such file or directory
 
#include "RawFoamDictionaryParser.tab.hh"
          
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated

Why is this file not found and how can I resolve this issue?
There are also other errors like these:

PHP Code:

/RawFoamDictionaryParser.yy:455:21error‘FATALERROR’ is not a member of ‘Foam::token’
ExpressionResult
/ExpressionResult.CIn member function ‘void Foam::ExpressionResult::uglyDelete():
ExpressionResult/ExpressionResult.C:315:20warningdeleting ‘void*’ is undefined [-Wdelete-incomplete]
             
delete valPtr_

PHP Code:

make: *** [RawFoamDictionaryParser.dep:145Make/linux64GccDPInt32Opt/RawFoamDictionaryParser.oError 1
repositories
/MeshesRepository.CIn member function ‘Foam::scalar Foam::MeshesRepository::setTime(const Foam::word&, Foam::scalarFoam::label):
repositories/MeshesRepository.C:302:59errorno matching function for call to ‘Foam::HashTable<const Foam::regIOobject*>::HashTable(Foam::HashTable<Foam::regIOobject*>)
         regIOTable content
(mesh.lookupClass<regIOobject>()); 

PHP Code:

plugins/CommonPluginFunction.CIn member function ‘Foam::label Foam::IStringStreamWithPos::pos():
plugins/CommonPluginFunction.C:198:26error‘stream’ was not declared in this scope
             
return label(stream().tellg()); 


and etc.

I have tried downloading the package both using:

PHP Code:

git clone https://github.com/Unofficial-Extend-Project-Mirror/openfoam-extend-swak4Foam-dev.git 

AND

PHP Code:

hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam
cd swak4Foam
./AllwmakeAll 

I also have tried:

PHP Code:

./maintainanceScripts/compileRequirements.sh 

and then Allwmake.

the result is:

PHP Code:

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 
/Address/bin to PATH-variableThe ./Allwmake-script will use this directory automatically 

If any one can have a suggestion or guidance on how to resolve the issue I will be very grateful.


Regards,
Mohammadreza

Bana May 23, 2022 04:40

Any suggestion?

Bana September 22, 2022 10:52

This problem is solved.
For anyone who may encounter the same error:

This error is related to the python versions. try installing anaconda3.


All times are GMT -4. The time now is 16:24.