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

[OpenFOAM.org] 3.0.x ParaView compiling error Fedora 24

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes
  • 6 Post By rsa
  • 1 Post By sandeep.pandey
  • 2 Post By Lisandro Maders
  • 1 Post By wyldckat
  • 1 Post By dduque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 6, 2016, 04:56
Default 3.0.x ParaView compiling error Fedora 24
  #1
rsa
New Member
 
Reza
Join Date: Jun 2012
Posts: 27
Rep Power: 14
rsa is on a distinguished road
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?
rsa is offline   Reply With Quote

Old   August 6, 2016, 09:31
Default
  #2
rsa
New Member
 
Reza
Join Date: Jun 2012
Posts: 27
Rep Power: 14
rsa is on a distinguished road
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]*"
rsa is offline   Reply With Quote

Old   September 11, 2016, 14:15
Default
  #3
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
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
__________________
wyldckat is offline   Reply With Quote

Old   July 18, 2017, 07:34
Default
  #4
Member
 
rahulksoni's Avatar
 
Rahul Kumar Soni
Join Date: Oct 2013
Location: Bhubaneswar, India
Posts: 68
Rep Power: 13
rahulksoni is on a distinguished road
Send a message via Skype™ to rahulksoni
Thanks thanks thanks a lot
rahulksoni is offline   Reply With Quote

Old   November 22, 2017, 10:40
Default
  #5
New Member
 
Sandeep Pandey
Join Date: Jul 2016
Location: Germany
Posts: 10
Rep Power: 10
sandeep.pandey is on a distinguished road
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
wyldckat likes this.
sandeep.pandey is offline   Reply With Quote

Old   August 20, 2018, 12:42
Default
  #6
Member
 
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13
Lisandro Maders is on a distinguished road
Hi,

samething for OpenFOAM v1606+ in Ubuntu 18.04.

Needs to replace 3-6 by 3-7 for gcc version greater than 6.*.

Thanks!
wyldckat and dduque like this.
Lisandro Maders is offline   Reply With Quote

Old   November 12, 2018, 06:14
Default
  #7
New Member
 
Daniel Duque
Join Date: Jan 2011
Location: ETSIN, Madrid
Posts: 28
Rep Power: 15
dduque is on a distinguished road
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.)
dduque is offline   Reply With Quote

Old   November 12, 2018, 18:02
Default
  #8
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
Quote:
Originally Posted by dduque View Post
( BTW I am trying to compile version 4.4 of paraview, since most recent ones won't run in my current system --- openGL issues.)
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.
dduque likes this.
__________________
wyldckat is offline   Reply With Quote

Old   November 13, 2018, 05:23
Default
  #9
New Member
 
Daniel Duque
Join Date: Jan 2011
Location: ETSIN, Madrid
Posts: 28
Rep Power: 15
dduque is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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.

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.
wyldckat likes this.
dduque is offline   Reply With Quote

Reply

Tags
cmake, fedora 24, gcc args, openfoam 3.0.x, paraview


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] 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


All times are GMT -4. The time now is 15:51.