|
[Sponsors] |
[OpenFOAM.com] v3.0+ Problem compiling/installing in Ubuntu 16.04 LTS |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 20, 2016, 06:45 |
v3.0+ Problem compiling/installing in Ubuntu 16.04 LTS
|
#1 |
New Member
Inaki Azkonobieta
Join Date: Jun 2016
Posts: 4
Rep Power: 10 |
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 Thank you , Inaki |
|
June 20, 2016, 13:42 |
|
#2 |
New Member
Join Date: Jun 2016
Location: Birmingham, UK
Posts: 11
Rep Power: 10 |
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 |
|
June 21, 2016, 05:33 |
|
#3 |
New Member
Inaki Azkonobieta
Join Date: Jun 2016
Posts: 4
Rep Power: 10 |
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". You reply was pretty helpful as now I know where to find the $ParaView_DIR" Inaki |
|
June 21, 2016, 06:52 |
|
#4 |
New Member
Join Date: Jun 2016
Location: Birmingham, UK
Posts: 11
Rep Power: 10 |
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.
|
|
June 21, 2016, 10:22 |
|
#5 |
New Member
Inaki Azkonobieta
Join Date: Jun 2016
Posts: 4
Rep Power: 10 |
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. |
|
June 22, 2016, 07:49 |
|
#6 |
New Member
Inaki Azkonobieta
Join Date: Jun 2016
Posts: 4
Rep Power: 10 |
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 |
|
June 23, 2016, 01:35 |
|
#7 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
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 ) |
|
|
|
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 12:09 |
[OpenFOAM.com] OpenFOAM v1.7.1 on Ubuntu 14.04 LTS | reza_65 | OpenFOAM Installation | 3 | August 28, 2017 15:29 |
[OpenFOAM.com] v3.0+ Compiling/installing problems on Ubuntu 15.10 | cute | OpenFOAM Installation | 9 | June 23, 2016 03:32 |
[OpenFOAM.org] Building problem with Paraview 4.1.0 on Ubuntu 16.04 | nigala | OpenFOAM Installation | 2 | June 20, 2016 11:18 |
I cant find openfoam for ubuntu 14.04 LTS | seju | OpenFOAM Installation | 15 | August 30, 2014 13:07 |