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

[swak4Foam] Basic Error when installing swak4foam with foam extend 3.0

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By mnobrega

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2014, 09:58
Default Basic Error when installing swak4foam with foam extend 3.0
  #1
New Member
 
Miguel Nóbrega
Join Date: Jul 2012
Posts: 21
Rep Power: 14
mnobrega is on a distinguished road
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
mnobrega is offline   Reply With Quote

Old   March 30, 2014, 13:32
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   March 30, 2014, 20:13
Default
  #3
New Member
 
Miguel Nóbrega
Join Date: Jul 2012
Posts: 21
Rep Power: 14
mnobrega is on a distinguished road
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
Attached Files
File Type: gz make.log.tar.gz (1.8 KB, 4 views)
mnobrega is offline   Reply With Quote

Old   March 31, 2014, 00:49
Default
  #4
New Member
 
Miguel Nóbrega
Join Date: Jul 2012
Posts: 21
Rep Power: 14
mnobrega is on a distinguished road
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
mnobrega is offline   Reply With Quote

Old   March 31, 2014, 16:04
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   March 31, 2014, 20:26
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by mnobrega View Post
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
__________________
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   April 1, 2014, 02:47
Default
  #7
New Member
 
Miguel Nóbrega
Join Date: Jul 2012
Posts: 21
Rep Power: 14
mnobrega is on a distinguished road
Hi Bruno,

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

swak4foam is working in both computers....

All the best,

Miguel
wyldckat likes this.
mnobrega is offline   Reply With Quote

Reply

Tags
erro, foam extend 3.0, missing files, swak4foam


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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 22 January 21, 2013 12:51
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 11:56


All times are GMT -4. The time now is 08:07.