CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

From where do I get wmake?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 13, 2014, 07:29
Default From where do I get wmake?
  #1
New Member
 
Tafazal Chaudhry
Join Date: Jul 2014
Posts: 4
Rep Power: 2
crystalcut is on a distinguished road
I am getting following error when I try to compile fireFoam:
wmake: not found
Below is start of the output from the Terminal.
tc@tc-pc:~/fireFoam$ ./Allwmake
+ ./libs/Allwmake
+ ./thermophysicalModels/Allwmake
+ wmake libso additionalReactionsNew
./thermophysicalModels/Allwmake: 5: ./thermophysicalModels/Allwmake: wmake: not found
+ wmake libso reactionThermoNew
./thermophysicalModels/Allwmake: 6: ./thermophysicalModels/Allwmake: wmake: not found

...
I have the following system installed in an effort to get fireFoam running:
  • Ubuntu 12.04.4 LTS (Precise Pangolin) with Latest updates.
  • Openfoam:Ubuntu Deb Pack Installation,Version 2.3.0, released 17/02/14
as per the instructions at: http://www.openfoam.org/download/ubuntu.php
  • VERS=$(lsb_release -cs)
  • sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main > /etc/apt/sources.list.d/openfoam.list"
  • sudo apt-get update
  • sudo apt-get install openfoam230
  • sudo apt-get install paraviewopenfoam410
  • fireFoam 1.7.x_0.4
Being downloaded and installed as per instructions at
https://code.google.com/p/firefoam-dev/
  • cd fireFoam
  • ./Allwmake
I searched for wmake in my Home directory but did not find it there.
I checked the version of GCC which is 4.6.3
tc@tc-pc:~/fireFoam$ gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
I would like to find out where/how to get wmake?
Or solve this issue some other way?
And may be guide me to a document or repository of errors and their solutions, like a troubleshooting guide.

Thanks in advance.
crystalcut is offline   Reply With Quote

Old   July 13, 2014, 21:24
Unhappy wmake found with root permissions
  #2
New Member
 
Tafazal Chaudhry
Join Date: Jul 2014
Posts: 4
Rep Power: 2
crystalcut is on a distinguished road
I searched again and have found wmake file in /opt/openfoam230/wmake directory, which is outside the Home directory. This means that when I installed Openfoam, it got installed with Access permissions of the Root only.

I am compiling fireFoam in my Home directory as myself (administrator), but not as Root owner, which I think is the problem.

I would welcome any ideas how I should be accessing and executing wmake

I feel I am close to success, please help.
crystalcut is offline   Reply With Quote

Old   July 14, 2014, 06:29
Default
  #3
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,083
Rep Power: 18
alexeym will become famous soon enough
Hi,

to get wmake in your PATH, you need

Code:
$ source /opt/openfoam230/etc/bashrc
to setup environment variables.
alexeym is offline   Reply With Quote

Old   July 14, 2014, 08:32
Thumbs up Able to make OpenFoam - Now FireFoam's turn
  #4
New Member
 
Tafazal Chaudhry
Join Date: Jul 2014
Posts: 4
Rep Power: 2
crystalcut is on a distinguished road
Thanks alexeym.
You are correct my environment variables were not set as per instructions on:
http://www.openfoam.org/download/ubuntu.php

And now, after correctly setting them, at least, I am able to compile OpenFOAM. However, I am still not able to compile fireFoam which has many compiler errors. Unfortunately the text scrolls out of the Terminal window when I compile fireFoam so I can't capture all errors. But they look similar and I have pasted below the last errors as examples:
+ ./decomposeParPyr/Allwmake
+ wmake libso decompositionMethodsPyr
SOURCE=structuredDecomp/structuredDecomp.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam230/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/structuredDecomp.o
structuredDecomp/structuredDecomp.C:29:26: fatal error: FaceCellWave.H: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/structuredDecomp.o] Error 1
+ wmake
SOURCE=decomposePar.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I./decompositionMethodsPyr/lnInclude -I/opt/openfoam230/src/finiteVolume/lnInclude -I/opt/openfoam230/src/lagrangian/basic/lnInclude -I/opt/openfoam230/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/decomposePar.o
In file included from pointFieldDecomposer.H:168:0,
from decomposePar.C:80:
pointFieldDecomposerDecomposeFields.C:28:36: fatal error: globalPointPatchFields.H: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/decomposePar.o] Error 1
tc@tc-pc:~/fireFoam$

Note that the location of FaceCellWave.H which the compiler can't find is:
/opt/openfoam230/src/meshTools/algorithms/MeshWave

My question is, where should I place the fireFoam code and how? The instructions at https://code.google.com/p/firefoam-dev/ are very simple but obviously not good enough for me:
  1. Download the fireFoam code and do the following:
    • cd fireFoam
    • ./Allwmake
I have created a fireFoam directory in my Home directory and put the all downloaded code in there. Allwmake is located in this directory also. The fireFoam directory is:
tc@tc-pc:/$ cd home/tc/fireFoam
tc@tc-pc:~/fireFoam$
Is this the correct location?
Do I need to change the environment variables to compile fireFoam?
crystalcut is offline   Reply With Quote

Old   July 14, 2014, 08:50
Default
  #5
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,083
Rep Power: 18
alexeym will become famous soon enough
Well,

1. This version - https://code.google.com/p/firefoam-dev/ - is for OpenFOAM 1.7.x (It's the first line of installation guide: "First download and install OpenFOAM-1.7.x"). You've installed 2.3.0, obviously source layout in 2.3.0 is quite different that in 1.7.x, so you've got all the compilation errors.

2. What's wrong with fireFoam that comes with OpenFOAM 2.3.0?
alexeym is offline   Reply With Quote

Old   July 14, 2014, 09:16
Talking This is embarrassing...
  #6
New Member
 
Tafazal Chaudhry
Join Date: Jul 2014
Posts: 4
Rep Power: 2
crystalcut is on a distinguished road
Thanks again alexeym.
I did not know fireFoam comes with openfoam. I lost so many days because of my ignorance.

I will try it next, but I have a few more silly questions:

How will I be able to change the source code of openfoam if it resides in the root area?
Why is openfoam code located with root user privileges?
Would it not be easier if it were located in the user area?
crystalcut is offline   Reply With Quote

Old   July 14, 2014, 10:12
Default
  #7
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,083
Rep Power: 18
alexeym will become famous soon enough
Quote:
Originally Posted by crystalcut View Post
How will I be able to change the source code of openfoam if it resides in the root area?
It depends on the nature of the change. But in general you don't need to change original source code. If you'd like to develop new solver or model, you can do it outside of original source tree.

Quote:
Why is openfoam code located with root user privileges?
Would it not be easier if it were located in the user area?
You've installed OpenFOAM system-wide using prebuilt binary package that's why it's owned by root. As the installation is system-wide which user should own OpenFOAM files? If you'd like to have OpenFOAM in your home folder - build it from sources.
alexeym is offline   Reply With Quote

Reply

Tags
firefoam;installation

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 05:41
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 21:45
ParaFoam error message joey OpenFOAM Paraview & paraFoam 1 October 2, 2006 13:28


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