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

[OpenFOAM.org] OpenFOAM 2.4.0/Paraview 4.1.0 on CentOS 7.2

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2016, 17:06
Default OpenFOAM 2.4.0/Paraview 4.1.0 on CentOS 7.2
  #1
New Member
 
Join Date: Dec 2012
Posts: 4
Rep Power: 13
saturn_53 is on a distinguished road
Greetings:

I am following the guidelines on openfoamwiki, and have made two attempts at installing OpenFOAM 2.4.0/Paraview 4.1.0.

OpenFOAM installs. ParaView does not get setup correctly and paraFoam --help, returns:

Code:
  paraFoam --help
  
  FATAL ERROR: ParaView reader module libraries do not exist
  
  Please build the reader module before continuing:
  cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
  ./Allwclean
  ./Allwmake
OS is a full GNOME Desktop installation; and has been updated (Graphics card is NVIDIA and so far the nouveau driver works fine). Just a minor observation here that CentOS 7.2 does not know " libGLU-devel ", but does know " mesa-libGLU-devel ", which I installed. (" mesa-libGLU " is system installed)

Code:
  uname -a
  Linux euler 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
After the " ./Allwmake > log.make 2>&1 ", and searching for errors, I get:

Code:
  ERROR: ParaView not found in /home/UserName/OpenFOAM/ThirdParty-2.4.0/platforms/linux64Gcc/ParaView-4.1.0
Same error when running the Allwmake again.

After some search, I disabled the CUDA support in ParaView-4.1.0/Plugins/SciberQuestToolKit/SciberQuest/CMakeLists.txt,

Code:
  if (CUDA_FOUND AND SQTK_CUDA)  ==>  if (OFF AND SQTK_CUDA)
  if (SQTK_CUDA AND CUDA_FOUND)  ==>  if (SQTK_CUDA AND OFF)
And re-compiled, but no change.

The gzip'ed version of the " log.make " file is about 760 KB, which is over the limit of the file attachment size, so I am attaching the error lines.

Any suggestions is greatly appreciated.

Thanks
Attached Files
File Type: txt log.make_1_errors.txt (1.4 KB, 1 views)
File Type: txt log.make_2_errors.txt (104 Bytes, 0 views)
File Type: txt log.makePV_errors.txt (7.7 KB, 2 views)
File Type: txt log.mkcgal_errors.txt (7.4 KB, 0 views)
saturn_53 is offline   Reply With Quote

Old   June 8, 2016, 22:11
Default Fixed - OpenFOAM 2.4.0/Paraview 4.1.0 on CentOS 7.2
  #2
New Member
 
Join Date: Dec 2012
Posts: 4
Rep Power: 13
saturn_53 is on a distinguished road
Greetings:

I am happy to report that my problem has been fixed. This was caused by the initial full GNOME Desktop installation that included the “Legacy X Windows System Compatibility” and perhaps the “Compatibility Libraries”.

Thanks to this post which points to this bug report.

The file “ vtkXOpenGLRenderWindow.cxx “ is located in this folder:

Code:
  /home/UserName/OpenFOAM/ThirdParty-2.4.0/ParaView-4.1.0/VTK/Rendering/OpenGL/
Before you edit it, copy it to a safe place like " /home/UserName/Backup/ " and make a note of its location. This way you can always restore it if needed.

Code:
  cp –a vtkXOpenGLRenderWindow.cxx /home/UserName/Backup/vtkXOpenGLRenderWindow.cxx_original
In this file, line # 30 is:

Code:
  //#define GLX_GLXEXT_LEGACY
Uncomment it by deleting the preceding two forward slashes

Code:
  #define GLX_GLXEXT_LEGACY     
Save the file and resume your installation by picking up from step 13-2 as indicated by openfoamwiki, which are:

Code:
  ./makeParaView4 -qmake $(which qmake-qt4) -mpi -python > log.makePV 2>&1
  
  cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
  wmSET $FOAM_SETTINGS
  ./Allwclean
  ./Allwmake
It works beautifully and both " paraFoam " and " paraview " commands work as expected.

Thank you all.
saturn_53 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 06:40
[OpenFOAM.org] Paraview install failing (With OpenFOAM 3.0.0 and CentOS 7) davidrobinson50 OpenFOAM Installation 1 June 2, 2016 18:54
[OpenFOAM] OpenFOAM (2.3.0) guide for ParaView (4.1.0) is not ok with actual software zandi ParaView 7 March 31, 2014 01:18


All times are GMT -4. The time now is 02:08.