Page tree

The license could not be verified: License Certificate has expired!

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Anchor
chgcommandline
chgcommandline
Change options from the command line

...

OptionConfigureCMake
Build shared libraries--enable-sharedset(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DBUILD_SHARED_LIBS:BOOL=ON")
Build HDF5 C++ library--enable-cxxset(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_CPP_LIB:BOOL=ON")
Build HDF5 Fortran 2003
library
--enable-fortranset(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=ON")
Disable ZLIB filter--with-zlibset(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=OFF")
Use different ZLIB library--with-zlib

ZLIB_INCLUDE_DIR:PATH=<path to zlib includes directory>

ZLIB_LIBRARY:FILEPATH=<path to zlib/library file>

ZLIB_USE_EXTERNAL=1

Disable SZIP filter--with-szlibset(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF")
set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SZIP_ENCODING:BOOL=OFF")
Enable parallel build--enable-parallelset(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_PARALLEL:BOOL=ON")
set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DMPIEXEC_MAX_NUMPROCS:STRING=4")
Enable Threadsafe:--enable-threadsafeset(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_THREADSAFE:BOOL=ON")
Compile in Release Mode--enable-production-C Release (in build script) and set(CTEST_BUILD_CONFIGURATION "Release")
Compile in Debug Mode--enable-debug-C Debug (in build script) and set(CTEST_BUILD_CONFIGURATION "Debug")
Build HDF5 Java library--enable-java

set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_JAVA:BOOL=ON")

Also specify the location of Java in the JAVA_HOME environment variable.

 

Anchor
static
static
Windows: How to build a standalone static executable

...

You need to build HDF5 with the /MT option. This can be done with a user macro in CMake. Go to this directory in the CMake source code:

...