OpenFOAM-dev Third-Party packages
Table of Contents
1 Description
Scripts for building third-party packages.
2 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
2.1 Optional
- AllwmakeLibccmio (Only required for conversion of STAR-CCM+ meshes)
- Allclean (Only required to save disk space)
3 Versions and locations to download the third party packages
3.1 Gcc C++ Compiler
The minimum version of gcc required is 4.5.0
3.2 Parallel Processing
3.2.1 Scotch
Scotch-6.0.3 is provided with ThirdParty-dev or the original source pack may be obtained from:
3.2.2 OpenMPI
3.3 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:
- cmake http://www.cmake.org/files/v3.2/cmake-3.2.1.tar.gz
- ParaView-4.4.0 http://www.paraview.org/files/v4.4/ParaView-v4.4.0-source.tar.gz
- ParaView-5.0.1 http://www.paraview.org/files/v5.0/ParaView-v5.0.1-source.tar.gz
but may need patching to compile (See 4).
3.4 CGAL
3.5 Miscellaneous
4 Notes
4.1 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-1.?.?/Qt/Components/CMakeLists.txt after unpacking and renaming the ParaView-1.?.? 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:
- wget https://raw.githubusercontent.com/Kitware/VTK/40937e934308e5009e80769dc0c451ee4f157749/IO/Geometry/vtkSTLReader.cxx -O ParaView-4.4.0/VTK/IO/Geometry/vtkSTLReader.cxx
4.2 Building ParaView-5.0.1 with gcc-6.1.0
4.2.1 Add support for gcc-6.?.?
4.2.2 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.
4.3 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