EricAlex / ThirdParty-dev

OpenFOAM-dev third-party library compilation scripts

Home Page:http://www.openfoam.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenFOAM-dev Third-Party packages

#

Description

Scripts for building third-party packages.

Order of execution:

  • makeGcc (recommended if the system gcc is < 4.7)
  • Allwmake (Builds OpenMPI, Scotch etc.)
  • makeCmake (if the system cmake version is < 2.8.8)
  • makeParaView

Optional

  • AllwmakeLibccmio (Only required for conversion of STAR-CCM+ meshes)
  • Allclean (Only required to save disk space)

Versions and locations to download the third party packages

Gcc C++ Compiler

The minimum version of gcc required is 4.5.0

Parallel Processing

Scotch

Scotch-6.0.3 is provided with ThirdParty-dev or the original source pack may be obtained from:

OpenMPI

ParaView

ParaView-5.0.1 patched to compile and install correctly is provided with ThirdParty-dev but older versions can be downloaded from www.paraview.org:

but may need patching to compile (See Notes).

CGAL

Miscellaneous

Notes

Building ParaView-4.3.1/4.4.0/5.0.0/5.0.1

The ParaView-4.3.1/4.4.0/5.0.0 source-pack provided by KitWare will not build and install correctly without a minor correction: lines 653-656 (650-653 in ParaView-5.0.0, 659-662 in ParaView-5.0.1) must be removed or commented from file ThirdParty-dev/ParaView-[45].?.?/Qt/Components/CMakeLists.txt after unpacking and renaming the ParaView-[45].?.? directory. This is because the file ui_pqExportStateWizard.h referred to in

if(PARAVIEW_INSTALL_DEVELOPMENT_FILES)
  install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ui_pqExportStateWizard.h"
          DESTINATION "${VTK_INSTALL_INCLUDE_DIR}")
endif()

does not exist and cannot be installed causing the build and installation to fail.

Additionally for ParaView-4.4.0 there is a bug in the STL reader which can be patched by running the following command from within the ThirdParty-??? directory:

See also http://www.openfoam.org/mantisbt/view.php?id=1887

Building ParaView-5.0.1 with gcc-6.1.0

Add support for gcc-6.?.?

The following cmake files

  • ParaView-5.0.1/VTK/CMake/vtkCompilerExtras.cmake
  • ParaView-5.0.1/VTK/CMake/GenerateExportHeader.cmake

specifically limit the gcc versions supported. To add support gcc-6.?.? replace ‘[345]’ with ‘[3456]’

SciberQuestToolKit

The SciberQuestToolKit plugin fails to compile with gcc-6.1.0 and causes the compilation of ParaView to halt. The easiest solution is to delete the ParaView-5.0.1/Plugins/SciberQuestToolKit directory.

Building ParaView-4.1.0

On Ubuntu 14.10 and higher, OpenSuSE 13.2 and probably other recent GNU/Linux distributions there is an issue in the GL libraries requiring a change to the vtkXOpenGLRenderWindow.cxx file in ParaView: Uncomment line 30

#define GLX_GLXEXT_LEGACY

About

OpenFOAM-dev third-party library compilation scripts

http://www.openfoam.org

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 49.6%Language:C 36.6%Language:Python 9.0%Language:CMake 1.3%Language:Tcl 0.9%Language:JavaScript 0.8%Language:HTML 0.2%Language:Groff 0.2%Language:Makefile 0.2%Language:Protocol Buffer 0.2%Language:GLSL 0.1%Language:Shell 0.1%Language:Objective-C++ 0.1%Language:CSS 0.1%Language:Yacc 0.1%Language:Java 0.1%Language:Perl 0.1%Language:M4 0.1%Language:Lex 0.0%Language:Objective-C 0.0%Language:Fortran 0.0%Language:Assembly 0.0%Language:Cuda 0.0%Language:XSLT 0.0%Language:GAP 0.0%Language:Prolog 0.0%Language:Pascal 0.0%Language:D 0.0%Language:Slash 0.0%Language:Smarty 0.0%Language:Batchfile 0.0%