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

[OpenFOAM.com] v3.0+ Problem compiling/installing in Ubuntu 16.04 LTS

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2016, 05:45
Default v3.0+ Problem compiling/installing in Ubuntu 16.04 LTS
  #1
New Member
 
Inaki Azkonobieta
Join Date: Jun 2016
Posts: 4
Rep Power: 9
Azkono is on a distinguished road
Hello everyone,

I am trying to install OpenFoam v3.0+ in my computer from source, I have already corrected some issues I have found but I have been stuck with this for a week now...

It appears to be a problem with the VTK installation which creates all the errors afterwards.

Code:
ERROR: Build of /home/iazkono/OpenFOAM/OpenFOAM-v3.0+/src/postProcessing/functionObjects/graphics/runTimePostProcessing requires a valid VTK installation which
       can be supplied either by ParaView by VTK. In case of
       - ParaView : export the ParaView_DIR environment variable
       - VTK      : export the VTK_DIR variable
The thing is that I don't know how to interpret it as I don't know where to write those lines.

Thank you ,
Inaki
Attached Files
File Type: gz log.make.tar.gz (7.7 KB, 2 views)
Azkono is offline   Reply With Quote

Old   June 20, 2016, 12:42
Default
  #2
New Member
 
Join Date: Jun 2016
Location: Birmingham, UK
Posts: 11
Rep Power: 9
scoop_them_mids is on a distinguished road
Hi there,

Third party software such as Paraview must be built before any attempt to compile OpenFOAM. If you downloaded a ThirdParty package, refer to the documentation as to how to do that (usually you just run ./Allwmake inside ThirdParty-x.x.x). Your problem could also be that the compiler can't find the path to where Paraview was built. You can run $ParaView_DIR in a terminal and copy the returned path in the file OpenFOAM/etc/config/paraview.sh where "export ParaView_DIR" appears, but if your installation is standard and you stick to the instructions you shouldn't have to bother with that.

Hope this helps a bit
Ivan
scoop_them_mids is offline   Reply With Quote

Old   June 21, 2016, 04:33
Default
  #3
New Member
 
Inaki Azkonobieta
Join Date: Jun 2016
Posts: 4
Rep Power: 9
Azkono is on a distinguished road
Hi!

I already had the Third party package as you said, and I found one of my mistakes... Even after compiling Paraview 4.4.0 I didn't check for errors and there where XD So I corrected them and compiled Paraview again.

Now, another problem has come up. Again with VTK.


Code:
+ ./graphics/Allwmake
Building with Paraview from /home/iazkono/OpenFOAM/ThirdParty-v3.0+/platforms/linux64Gcc/ParaView-4.4.0
CMake Error at CMakeLists.txt:21 (export):
  export called with too few arguments


Found VTK LIBRARIES: /home/iazkono/OpenFOAM/ThirdParty-v3.0+/platforms/linux64Gcc/ParaView-4.4.0/lib/cmake/paraview-4.4/UseVTK.cmake
VTK version: 6.3.0
-- Configuring incomplete, errors occurred!
See also "/home/iazkono/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Opt/src/postProcessing/functionObjects/graphics/runTimePostProcessing/CMakeFiles/CMakeOutput.log".
I have looked both UseVTK.cmake and CMakeOutput.log but haven't found what was wrong.

You reply was pretty helpful as now I know where to find the $ParaView_DIR"

Inaki
Azkono is offline   Reply With Quote

Old   June 21, 2016, 05:52
Default
  #4
New Member
 
Join Date: Jun 2016
Location: Birmingham, UK
Posts: 11
Rep Power: 9
scoop_them_mids is on a distinguished road
I don't know what these files look like, can you post that CMakeLists.txt:21 part? Also, since you are on Ubuntu, perhaps you don't absolutely have to build OF from source, there's Debian packages available or similar : http://openfoam.com/download/install-binary.php I once installed OF on Ubuntu 12.04 this way, it's dead easy, Windows-like.
scoop_them_mids is offline   Reply With Quote

Old   June 21, 2016, 09:22
Default
  #5
New Member
 
Inaki Azkonobieta
Join Date: Jun 2016
Posts: 4
Rep Power: 9
Azkono is on a distinguished road
Here you have the files.

I have already tried with the binary files but after finishing the installation guide, I couldn't find any file of OF in my computer... That's why I tried with the source code.
Attached Files
File Type: txt CMakeLists.txt (832 Bytes, 1 views)
File Type: gz UseVTK.cmake.tar.gz (569 Bytes, 0 views)
Azkono is offline   Reply With Quote

Old   June 22, 2016, 06:49
Default
  #6
New Member
 
Inaki Azkonobieta
Join Date: Jun 2016
Posts: 4
Rep Power: 9
Azkono is on a distinguished road
I have continued looking for errors and correcting some of them, and I have noticed that all the main problems come for the compilation of ParaView4.

I couldn't insert the whole log file (even compressed), but here's a part of it. This kind of problem repeats itself many times till the end.

There is a problem in the 90% where the process tries to go to "ThirdParty-v3.0", however it should be "ThirdParty-v3.0+". Could this be a wrong configuration of the $WM_THIRD_PARTY_DIR variable whilst the installation is running? I have tried figuring out where this could be coming from, without success.
If you tell me where I should look I could try and solve it myself ^^
Thx

Inaki
Attached Files
File Type: gz logPart.makePV.tar.gz (956 Bytes, 3 views)
Azkono is offline   Reply With Quote

Old   June 23, 2016, 00:35
Default
  #7
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10
pgh is on a distinguished road
check your .bashrc or .cshrc file to make sure whether you have not sourced from wrong folder. The is could more likely to be reason for pointing to wrong location
. Also if you want to use postprocessing function object , you need not to compile Paraview , You can compile VTK 6.3.0 and then set VTK_DIR to point to location of VTK installation.

Also if you are not interested in postprocessing related stuff. you can ignore to compile it by using ./Allwmake -i ( just check what option are available , and it will compile whole stuff and compilation will not stop at particular point )
pgh is offline   Reply With Quote

Reply


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
[OpenFOAM.org] problem with instaling openfoam-2.0.0 on ubuntu 18.04 alireza.sh OpenFOAM Installation 11 November 22, 2018 11:09
[OpenFOAM.com] OpenFOAM v1.7.1 on Ubuntu 14.04 LTS reza_65 OpenFOAM Installation 3 August 28, 2017 14:29
[OpenFOAM.com] v3.0+ Compiling/installing problems on Ubuntu 15.10 cute OpenFOAM Installation 9 June 23, 2016 02:32
[OpenFOAM.org] Building problem with Paraview 4.1.0 on Ubuntu 16.04 nigala OpenFOAM Installation 2 June 20, 2016 10:18
I cant find openfoam for ubuntu 14.04 LTS seju OpenFOAM Installation 15 August 30, 2014 12:07


All times are GMT -4. The time now is 04:47.