2013-04-29 22:18:34 +08:00
|
|
|
|
|
|
|
***********************************************************************
|
|
|
|
* HDF5 Build and Install Suggestions for Windows and Visual Studio *
|
|
|
|
* (Full Version) *
|
|
|
|
***********************************************************************
|
|
|
|
|
|
|
|
These suggestions are for Visual Studio users.
|
|
|
|
|
2015-11-19 04:26:11 +08:00
|
|
|
Instructions for building and testing HDF5 applications using CMake can
|
2013-07-09 00:28:48 +08:00
|
|
|
be found in the USING_HDF5_CMake.txt file found in this folder.
|
2013-04-29 22:18:34 +08:00
|
|
|
|
2015-11-19 04:26:11 +08:00
|
|
|
NOTE: Building applications with the dynamic/shared hdf5 libraries requires
|
|
|
|
that the "H5_BUILT_AS_DYNAMIC_LIB" compile definition be used.
|
2023-12-15 02:50:30 +08:00
|
|
|
Go to "Project" and select "Properties", find "Configuration Properties",
|
|
|
|
and then "C/C+±"and then "Preprocessor".
|
|
|
|
Add H5_BUILT_AS_DYNAMIC_LIB to Preprocessor definitions.
|
2015-11-19 04:26:11 +08:00
|
|
|
|
|
|
|
The following two sections are helpful if you do not use CMake to build
|
2013-04-29 22:18:34 +08:00
|
|
|
your applications.
|
2015-11-19 04:26:11 +08:00
|
|
|
|
2018-05-24 03:28:58 +08:00
|
|
|
==============================================================================================
|
|
|
|
Using Visual Studio 2010 and above with HDF5 Libraries built with Visual Studio 2010 and above
|
|
|
|
==============================================================================================
|
2013-04-29 22:18:34 +08:00
|
|
|
|
|
|
|
1. Set up path for external libraries and headers
|
|
|
|
|
2015-11-19 04:26:11 +08:00
|
|
|
The path settings will need to be in the project property sheets per project.
|
|
|
|
Go to "Project" and select "Properties", find "Configuration Properties",
|
2013-04-29 22:18:34 +08:00
|
|
|
and then "VC++ Directories".
|
2015-11-19 04:26:11 +08:00
|
|
|
|
2013-04-29 22:18:34 +08:00
|
|
|
1.1 If you are building on 64-bit Windows, find the "Platform" dropdown
|
2014-09-26 05:11:54 +08:00
|
|
|
and select "x64".
|
2015-11-19 04:26:11 +08:00
|
|
|
|
2013-04-29 22:18:34 +08:00
|
|
|
1.2 Add the header path to the "Include Directories" setting.
|
2015-11-19 04:26:11 +08:00
|
|
|
|
2013-04-29 22:18:34 +08:00
|
|
|
1.3 Add the library path to the "Library Directories" setting.
|
2015-11-19 04:26:11 +08:00
|
|
|
|
2013-04-29 22:18:34 +08:00
|
|
|
1.4 Select Linker->Input and beginning with the
|
|
|
|
"Additional Dependencies" line, enter the library names. The
|
|
|
|
external libraries should be listed first, followed by the HDF5
|
|
|
|
library, and then optionally the HDF5 High Level, Fortran or C++
|
|
|
|
libraries. For example, to compile a C++ application, enter:
|
|
|
|
|
2023-08-05 05:38:20 +08:00
|
|
|
hdf5.lib hdf5_cpp.lib
|
|
|
|
|
|
|
|
For static linking:
|
|
|
|
libszaec.lib libaec.lib libzlib.lib libhdf5.lib libhdf5_cpp.lib
|
2013-04-29 22:18:34 +08:00
|
|
|
|
2015-11-19 04:26:11 +08:00
|
|
|
|
2013-04-29 22:18:34 +08:00
|
|
|
==========================================================================
|
|
|
|
Using Visual Studio 2008 with HDF5 Libraries built with Visual Studio 2008
|
|
|
|
==========================================================================
|
|
|
|
|
2014-09-26 05:11:54 +08:00
|
|
|
2. Set up the path for external libraries and headers
|
2013-04-29 22:18:34 +08:00
|
|
|
|
2015-11-19 04:26:11 +08:00
|
|
|
Invoke Microsoft Visual Studio and go to "Tools" and select "Options",
|
2013-04-29 22:18:34 +08:00
|
|
|
find "Projects", and then "VC++ Directories".
|
2015-11-19 04:26:11 +08:00
|
|
|
|
2013-04-29 22:18:34 +08:00
|
|
|
2.1 If you are building on 64-bit Windows, find the "Platform" dropdown
|
|
|
|
and select "x64".
|
|
|
|
|
2015-11-19 04:26:11 +08:00
|
|
|
2.2 Find the box "Show directories for", choose "Include files", add the
|
2023-04-04 05:38:10 +08:00
|
|
|
header path (i.e. c:\Program Files\HDF_Group\HDF5\1.15.x\include)
|
2013-04-29 22:18:34 +08:00
|
|
|
to the included directories.
|
|
|
|
|
|
|
|
2.3 Find the box "Show directories for", choose "Library files", add the
|
2023-04-04 05:38:10 +08:00
|
|
|
library path (i.e. c:\Program Files\HDF_Group\HDF5\1.15.x\lib)
|
2013-04-29 22:18:34 +08:00
|
|
|
to the library directories.
|
2015-11-19 04:26:11 +08:00
|
|
|
|
2013-04-29 22:18:34 +08:00
|
|
|
2.4 If using Fortran libraries, you will also need to setup the path
|
|
|
|
for the Intel Fortran compiler.
|
2015-11-19 04:26:11 +08:00
|
|
|
|
2013-04-29 22:18:34 +08:00
|
|
|
2.5 Select Project->Properties->Linker->Input and beginning with the
|
|
|
|
"Additional Dependencies" line, enter the library names. The
|
|
|
|
external libraries should be listed first, followed by the HDF5
|
|
|
|
library, and then optionally the HDF5 High Level, Fortran or C++
|
|
|
|
libraries. For example, to compile a C++ application, enter:
|
|
|
|
|
2013-08-27 22:19:11 +08:00
|
|
|
szip.lib zlib.lib hdf5.lib hdf5_cpp.lib
|
2013-04-29 22:18:34 +08:00
|
|
|
|
|
|
|
========================================================================
|
|
|
|
3. Helpful Pointers
|
|
|
|
========================================================================
|
|
|
|
|
|
|
|
3.1 FAQ
|
2015-11-19 04:26:11 +08:00
|
|
|
|
2013-04-29 22:18:34 +08:00
|
|
|
Many other common questions and hints are located online and being updated
|
2018-05-24 03:28:58 +08:00
|
|
|
in the HDF Knowledge Base, please see:
|
2015-11-19 04:26:11 +08:00
|
|
|
|
2018-05-24 03:28:58 +08:00
|
|
|
https://portal.hdfgroup.org/display/knowledge/HDF+Knowledge+Base
|
2015-11-19 04:26:11 +08:00
|
|
|
|
2013-04-29 22:18:34 +08:00
|
|
|
************************************************************************
|
|
|
|
Please send email to help@hdfgroup.org for further assistance.
|