Skip to content
H. Joe Lee edited this page Jul 19, 2023 · 9 revisions

Install HDF5 from GitHub Repository

Do not turn off HDF5_GENERATE_HEADERS and HDF5_ENABLE_DEPRECATED_SYMBOLS.

Windows

  1. Install Perl.
  2. Install CMake.
  3. Install Visual Studio C++.

Get source code

  1. git clone https://github.com/hyoklee/hdf5.git
  2. cd hdf5

Configure

  1. mkdir build
  2. cd build
  3. cmake ..

Intel OneAPI

2023-07-18: Enabling Fortran will fail.

  1. cmake -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=OFF -DCMAKE_C_COMPILER="C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\bin\icx.exe" -DCMAKE_CXX_COMPILER="C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\bin\icx.exe" -DCMAKE_Fortran_COMPILER="C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\bin\ifx.exe" -DHDF5_ENABLE_PARALLEL:BOOL=ON -DHDF5_BUILD_FORTRAN:BOOL=ON ..

Build, Test, and Install

  1. cmake --build . --config Release
  2. ctest -C Release -VV
  3. cmake -DCMAKE_INSTALL_PREFIX=/usr -P cmake_install.cmake

ROS3 w/ clang-cl + static

https://github.com/openscenegraph/osgQt/pull/29/files