CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 (https://www.cfd-online.com/Forums/openfoam-community-contributions/157749-problem-installing-swak_2-x-openfoam-2-4-0-a.html)

towanda August 7, 2015 00:23

Problem installing swak_2.x for OpenFoam-2.4.0
 
Hello
i have a problem that I did not manage to solve yet. I want to install swak_2.x for OpenFoam-2.4.0. I have also follow carefully the instructions to install the local bison 2.7 using /maintainanceScripts/compileRequirements.sh , and added to .bashrc the following:
Code:

export PATH=/home/ludmila/OpenFOAM/ludmila-2.4.0/swak4foam/maintainanceScripts/privateRequirements/bin:$PATH
The output when I run ./Allwmake is:

Code:

Making dependency list for source file plugins/SampledSurfaceValuePluginFunction.C
could not open file wordList.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file stringList.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file typeInfo.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file Pstream.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file prefixOSstream.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file Field.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file dimensionedType.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file IOobject.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file runTimeSelectionTables.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file vector.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file volFields.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file interpolationTable.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file string.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file dictionary.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file Tuple2.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file PtrMap.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file fvMesh.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file meshToMesh.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file NamedEnum.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file surfaceMesh.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file fvsPatchField.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file pointPatchField.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file primitivePatchInterpolation.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file sampledSurface.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file coupledPolyPatch.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
could not open file processorPolyPatch.H for source file plugins/SampledSurfaceValuePluginFunction.C due to 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
 #include "Pstream.H"
                    ^
compilation terminated.
make: *** [Make/linux64GccDPDebug/printSwakVersion.o] Error 1

any help will be greatly appreciated

wyldckat August 10, 2015 17:32

Greetings towanda,

It seems that the problem is that the shell environment for OpenFOAM 2.4.0 is not loaded. I'm guessing that you followed the instructions available here: http://openfoamwiki.net/index.php/In...OpenFOAM-2.4.0 - and then you started a new terminal and then tried to build swak4Foam.
If this is correct, then you need to run:
Code:

of240
for loading the shell environment for OpenFOAM 2.4.0.

If you installed by following these instructions: http://www.openfoam.org/download/ubuntu.php - then you need to run:
Code:

source /opt/openfoam240/etc/bashrc
If it's neither one of these instructions, then I can't guess much more from here... you will have to tell us which instructions you followed ;)


If the environment is loaded, which you can test by running:
Code:

icoFoam -help
then try again to build swak4Foam. If the same error still occurs, namely:
Code:

In file included from helpers/printSwakVersion.C:43:0:
helpers/printSwakVersion.H:46:21: fatal error: Pstream.H: No such file or directory
 #include "Pstream.H"
                    ^
compilation terminated.

then that means that something very wrong happened with your installation of OpenFOAM. More details are needed in such a situation, namely what Linux Distribution you are using and what instructions you followed.

Best regards,
Bruno

towanda September 4, 2015 18:58

Hi Bruno,
thank you for the reply and sorry about the delay. I had't seen the post before.

I have install OF 2.4.0 on Ubuntu 14.04. I have download the swak4foam from : https://openfoamwiki.net/index.php/Contrib/swak4Foam
(the version Swak4Foam_2.x)

The OF functionality seems to work pretty fine. Then I have carefully followed the instructions to install swak4foam from the main web page of the library and when i run ./Allwmake I get the following:

Code:

Previously compiled for OpenFOAM 2.4.0

/home/ludmila/OpenFOAM/ludmila-2.4.0/swak4Foam_2.x/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

No file 'swakConfiguration'. Python etc won't work. See README for details
Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems
Checking swak4Foam-version and generating file
abort: no repository found in '/home/ludmila/OpenFOAM/ludmila-2.4.0/swak4Foam_2.x' (.hg not found)!
Swak version is 0.3.2
Bison is version 2.7.12-4996
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 4 Patch 0 (-1 == x / 0)
No change to swak4FoamParsers/foamVersion4swak.H
SOURCE=helpers/printSwakVersion.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPDebug      -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/sampling/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/fileFormats/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/triSurface/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/surfMesh/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/lagrangian/basic/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPDebug/printSwakVersion.o
In file included from helpers/printSwakVersion.C:43:0:
helpers/printSwakVersion.H:46:21: fatal error: Pstream.H: No such file or directory
 #include "Pstream.H"
                    ^
compilation terminated.
make: *** [Make/linux64GccDPDebug/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

Any help will be very valuable for me. Thank you in advance

best regards

wyldckat September 4, 2015 19:51

Hi towanda,

A few questions:
  1. What installation instructions did you follow for installing OpenFOAM 2.4.0?
  2. What does the following command give you?
    Code:

    ls -l $FOAM_SRC/OpenFOAM/lnInclude/Pstream.H
  3. Are you able to run blockMesh or icoFoam?
  4. What does the following command give you?
    Code:

    which blockMesh
Best regards,
Bruno

towanda September 5, 2015 07:46

Hello Bruno,
thank you for your reply.

1) I have follow these instructions http://www.openfoam.org/download/source.php

2) The command :
ls -l $FOAM_SRC/OpenFOAM/lnInclude/Pstream.HGives this:
ludmila@Ludmila:~$ ls -l $FOAM_SRC/OpenFOAM/lnInclude/Pstream.H
ls: cannot access /home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude/Pstream.H: No such file or directory

It seems I don't have the folder lnInclude.

3) The command
which blockMeshGives:
/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPDebug/bin/blockMesh

I am able to run different OF solvers without any trouble.

Thank you in advance.

wyldckat September 5, 2015 08:16

Hi towanda,

OK, that's odd... perhaps you ran wclean all after you finished the debug build?

Anyway, run the following commands to restore the "lnInclude" folders:
Code:

foam
wmakeLnIncludeAll

Then try building swak4Foam once again.

Best regards,
Bruno

towanda September 5, 2015 22:03

Swak Compiled ok and works. Thanks a lot for the help!!!

Best regards

L


All times are GMT -4. The time now is 22:53.