|
[Sponsors] |
[OpenFOAM.org] 3.0.x ParaView compiling error Fedora 24 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 6, 2016, 04:56 |
3.0.x ParaView compiling error Fedora 24
|
#1 |
New Member
Reza
Join Date: Jun 2012
Posts: 27
Rep Power: 14 |
Hi,
I am trying to install openfoam 3 in fedora 24 using the following link: https://openfoamwiki.net/index.php/I...M-3.0.x/Fedora but when I run the makeparaview4 command I get the following error: ----------------------------------------------------------------------------------------------------- CMake Error at VTK/CMake/vtkCompilerExtras.cmake:47 (if): if given arguments: "gcc: error: ARGS: No such file or directory gcc (GCC) 6.1.1 20160621 (Red Hat 6.1.1-3) ----------------------------------------------------------------------------------------------------- it seems the current gcc comiler and cmake does not go together! can anyone help me with this? |
|
August 6, 2016, 09:31 |
|
#2 |
New Member
Reza
Join Date: Jun 2012
Posts: 27
Rep Power: 14 |
I found a solution and I m gonna post it just in case:
there are two files "vtkCompilerExtras.cmake" and "GenerateExportHeader.cmake" which you can find by "find THIRDPARTY_FOLDER -name xxx". open both of them and change the following lines: string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]*" by adding simply a "6" after "345" so that the line looks like the following: string (REGEX MATCH "[3456]\\.[0-9]\\.[0-9]*" |
|
September 11, 2016, 14:15 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: Many thanks for posting the solution you've found. I've copy-paste-adapted the instructions on the wiki based on your findings and this bug report: http://bugs.openfoam.org/view.php?id=2098
Instructions are now here: https://openfoamwiki.net/index.php/I...dora#Fedora_24
__________________
|
|
July 18, 2017, 07:34 |
|
#4 |
Member
|
Thanks thanks thanks a lot
|
|
November 22, 2017, 10:40 |
|
#5 |
New Member
Sandeep Pandey
Join Date: Jul 2016
Location: Germany
Posts: 10
Rep Power: 10 |
This continues in OpenFOAM 4.1 with Ubuntu 17.10 with default gcc version 7.x, therefore, I follow your instructions and just added: "7" after "3456" in both the files and surprisingly it works! Thanks
Tip to other users, you can check gcc version by: gcc --version |
|
August 20, 2018, 12:42 |
|
#6 |
Member
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13 |
Hi,
samething for OpenFOAM v1606+ in Ubuntu 18.04. Needs to replace 3-6 by 3-7 for gcc version greater than 6.*. Thanks! |
|
November 12, 2018, 06:14 |
|
#7 |
New Member
Daniel Duque
Join Date: Jan 2011
Location: ETSIN, Madrid
Posts: 28
Rep Power: 15 |
Cool!
Just a note: no need to look for those files and line numbers, since ccmake clearly points those out. E.g. : Code:
CMake Error at VTK/CMake/GenerateExportHeader.cmake:178 (if): Just make sure you go to the source paraview dir, not the one you are building from. Also, I had to go up to number 8 now. I guess the most elegant thing is to write "3-8", intead of "3456768". ( BTW I am trying to compile version 4.4 of paraview, since most recent ones won't run in my current system --- openGL issues.) |
|
November 12, 2018, 18:02 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick note: If you are compiling from source code, ParaView 5.4 still supports the old OpenGL rendering, as long as the correct settings are used. If you are trying to compile ParaView along with OpenFOAM 5 or 6, check the options available for makeParaView by running with the option "-help". I'm not certain, but I believe that OpenFOAM+ has a similar feature... but may be providing a more recent version of ParaView.
__________________
|
|
November 13, 2018, 05:23 |
|
#9 | |
New Member
Daniel Duque
Join Date: Jan 2011
Location: ETSIN, Madrid
Posts: 28
Rep Power: 15 |
Quote:
Thanks! As a matter of fact, I did succeed in compiling ParaView v5.3. I know they took away legacy openGL about one year ago, I was conservative in choosing 5.3 since I was not sure which was the latest version. It's quite easy to choose the right setting with e.g. ccmake. Just go to the "VTK_RENDERING_BACKEND" option and change it. After some configuration steps, a Makefile is generated. The compilation is not too long if run in parallel ("make -j 4", or as much cores as you have available). My paraview is independent of openfoam. I usually run "touch cc.openfoam; paraview cc.openfoam & ". A note: the resulting paraview executable cannot be moved from its folder ! Just make an alias to it. In my case: "alias paraview='~/Downloads/paraview/bin/paraview' " (yup, that's where it ended). Also, I am on manjaro linux -- this sort of procedure should work on any linux system, I think. |
||
Tags |
cmake, fedora 24, gcc args, openfoam 3.0.x, paraview |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Creepy ugly problem in compiling ParaView 4.4.0 for OF 3.0.x | Democritus | OpenFOAM Installation | 1 | June 24, 2016 00:11 |
Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2) | sfigato | OpenFOAM Installation | 22 | January 31, 2013 11:16 |
Compiling Paraview 3.12.0 and the PV3FoamReader Module | smpark | OpenFOAM Installation | 2 | January 9, 2012 08:16 |
paraview 3.10.1 compiling error (1.6-ext) | vkrastev | OpenFOAM Installation | 7 | October 28, 2011 04:17 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 22:41 |