CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Basic Error when installing swak4foam with foam extend 3.0 (http://www.cfd-online.com/Forums/openfoam-installation/132347-basic-error-when-installing-swak4foam-foam-extend-3-0-a.html)

mnobrega March 30, 2014 08:58

Basic Error when installing swak4foam with foam extend 3.0
 
Hi,

I'm using Ubuntu 13.10 and I've installed foam extend 3.0, using the deb binary packages available in http://wikki.gridcore.se/foam-extend/download.

Then I've tried to download and install swak4foam using the instructions provided in Installation/swak4Foam/Installing On/Ubuntu.

I'm getting a very strange basic error, related to some missing files:
####################
....
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.
In file included from helpers/switchableNotImplemented.C:43:0:
helpers/switchableNotImplemented.H:47:19: fatal error: error.H: No such file or directory
#include "error.H"
^
compilation terminated.
In file included from helpers/DebugOStream.C:37:0:
helpers/DebugOStream.H:55:21: fatal error: Pstream.H: No such file or directory
#include "Pstream.H"
....
########################

I've read the all the posts I found about swak4foam installation, and in the Installation/swak4Foam/Understanding Error Messages indicates that OpenFOAM seems to be improperly installed.

I followed the recommendation of reading Installation/Working with the Shell, and made all the recommend tests, and all environment variables seem to be OK. Notice that I'm getting the same error in two different computers. One has several OpenFOAM versions and another has just Foam extend 3.0.

Additionally, using the find command I found the missing file (or at least one with the same name) in folder: /opt/foam/foam-extend-3.0/src/foam/db/IOstreams/Pstreams. But the compiler cannot figure out this location.

Sorry to bother you with this issue, because I believe I'm making a basic mistake. But I cannot figure out which is....

Can you please help me?

Cheers,

Miguel

wyldckat March 30, 2014 12:32

Greetings Miguel,

Sorry for taking a while to reply to you, but I knew this would take some time to download and install the deb package and to check the solution myself.

This issue apparently was reported back in January: https://sourceforge.net/apps/mantisb...iew.php?id=200 - and it hasn't been fixed yet :(

To solve the problem, run the following commands:
  1. Switch to root mode, with the shell environment ready for using FOAM-Extend 3.0:
    Code:

    sudo su -c "source /opt/foam/foam-extend-3.0/etc/bashrc; bash"
  2. Go into the "src" folder and force all "lnInclude" folders to be generated:
    Code:

    cd $FOAM_SRC
    wmakeLnIncludeAll

  3. Exit root mode:
    Code:

    exit
Now you should be able to build swak4Foam.

...and I'm going to have to add this issue to the "known issues" list :)

Best regards,
Bruno

mnobrega March 30, 2014 19:13

1 Attachment(s)
Hi Bruno,

You don't have to be sorry. I'm very grateful for your help and support.

Thanks for your clues they solved most of the problems. However there are a few errors that subsist, that are similar to these one:

linux64GccDPOpt/replayTransientBC
/usr/bin/ld: cannot find -liberty
collect2: error: ld returned 1 exit status
make[1]: *** [/home/mnobrega/foam/mnobrega-3.0/applications/bin/linux64GccDPOpt/funkySetBoundaryField] Error 1
make: *** [funkySetBoundaryField] Error 2


I'm sending in attachment the full make.log file, in case this info is not enough.

Are you able to figure out the solution for this problem?

Cheers,

Miguel

mnobrega March 30, 2014 23:49

Hi Bruno,

Just an additional info. I tested the procedure you suggested in the computer I have a few versions of OpenFOAM installed and I managed to compile swak4foam.

The difficulty I reported previously occurred in the computer I have just foam extend 3.0. That computer is a very clean installation. Apart from a few system tools, that I've installed after Ubuntu 13.10 installation, it has only foam extend 3.0.

I hope this info helps to identify the issue.

Cheers,

Miguel

wyldckat March 31, 2014 15:04

Hi Miguel,

If my memory doesn't fail me, the issue of the missing "-liberty" is just a matter of running:
Code:

sudo apt-get install binutils-dev
Best regards,
Bruno

gschaider March 31, 2014 19:26

Quote:

Originally Posted by mnobrega (Post 482921)
Hi Bruno,

Just an additional info. I tested the procedure you suggested in the computer I have a few versions of OpenFOAM installed and I managed to compile swak4foam.

The difficulty I reported previously occurred in the computer I have just foam extend 3.0. That computer is a very clean installation. Apart from a few system tools, that I've installed after Ubuntu 13.10 installation, it has only foam extend 3.0.

I hope this info helps to identify the issue.

Cheers,

Miguel

You mentioned in your initial post that you use the precompiled packages. The "missing" headers are probably due to this bug https://sourceforge.net/apps/mantisb...iew.php?id=200

mnobrega April 1, 2014 01:47

Hi Bruno,

Thanks for your patience and time...I'm really grateful...

swak4foam is working in both computers....

All the best,

Miguel


All times are GMT -4. The time now is 18:20.