2006-04-26 03:35:34 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
***********************************************************************
|
2008-01-29 23:59:41 +08:00
|
|
|
* HDF5 Build and Install Instructions for Windows XP/VISTA *
|
2005-07-30 00:41:37 +08:00
|
|
|
* (Full Version) *
|
2005-07-29 06:45:03 +08:00
|
|
|
***********************************************************************
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
The following instructions assume that the HDF5 source code package from
|
2007-02-27 04:43:21 +08:00
|
|
|
HDF website (http://hdfgroup.org) is used.
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
Warnings:
|
2004-11-04 03:57:49 +08:00
|
|
|
Please read CAREFULLY about the following preconditions and notes first.
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
Contents:
|
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
Section : Preconditions and Notes
|
2005-07-29 06:45:03 +08:00
|
|
|
Section I : What do we build and install
|
|
|
|
Section II : How to build and test HDF5 libraries and tools
|
2006-04-07 01:05:16 +08:00
|
|
|
Section III : How to build examples (optional)
|
2008-02-04 23:53:37 +08:00
|
|
|
Section IV : How to build an application using the HDF5 library or DLL
|
2005-07-29 06:45:03 +08:00
|
|
|
Section V : How to disable Gzip(Zlib)/Szip compression
|
2007-07-02 22:33:47 +08:00
|
|
|
Section VI : How to build HDF5 with Fortran Support
|
|
|
|
Section VII : How to build Multi-threaded version of HDF5 library
|
2007-08-17 02:28:20 +08:00
|
|
|
Section VIII : How to build HDF5 with Thread-Safe Feature
|
|
|
|
Section IX : How to build HDF5 for 64-bit Windows
|
2008-02-04 23:53:37 +08:00
|
|
|
Section X : How to build HDF5 on Windows Vista
|
2008-07-03 03:40:00 +08:00
|
|
|
Section XI : How to build HDF5 using Visual Studio 2008
|
|
|
|
Section XII : Backwards Compatibility with HDF5 1.6
|
|
|
|
Section XIII : Misc.
|
2005-07-29 06:45:03 +08:00
|
|
|
|
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
========================================================================
|
2006-03-17 00:20:29 +08:00
|
|
|
Preconditions and Notes
|
2005-07-29 06:45:03 +08:00
|
|
|
========================================================================
|
1999-11-20 01:06:55 +08:00
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
Preconditions:
|
|
|
|
|
2008-05-17 02:48:26 +08:00
|
|
|
1. Installed Microsoft Visual Studio. This document is written for Visual
|
2010-05-14 00:01:50 +08:00
|
|
|
Studio 2008. We no longer support building HDF5 using Microsoft Visual
|
2010-09-02 00:44:45 +08:00
|
|
|
Studio .NET 2003 or 2005. Express Editions may work with the project files
|
|
|
|
but not from the command line. We do not support the Express Editions.
|
2007-07-02 22:33:47 +08:00
|
|
|
|
2010-03-04 04:20:16 +08:00
|
|
|
2. (Optional) Installed Intel Compiler 10.1 or 11.1 if you want to build HDF5
|
2010-05-14 00:01:50 +08:00
|
|
|
Fortran libraries. We no longer support Intel Fortran Compiler 9.1.
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
3. Install Winzip or 7-zip for extracting source tarball.
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-04-15 23:33:36 +08:00
|
|
|
Note: 1. 7zip is an open-source alternative to WinZip. Some of the
|
|
|
|
advanced functionality is disabled in WinZip unless you buy the
|
|
|
|
software. With 7zip, most of this functionality is included for
|
|
|
|
free.
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2. By default, WinZip will convert the Unix end of line format when
|
|
|
|
extracting .tar file. This conversion will cause "false" failure
|
|
|
|
in some HDF5 tools testings.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Please uncheck the "TAR file smart CR/LF conversion" option in your
|
|
|
|
WinZip to prevent the conversion when extracting .tar file. To
|
|
|
|
uncheck the "TAR file smart CR/LF conversion" option:
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Invoke WinZip, go to "Options", select "Configuration..."
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Click the "Miscellaneous" tab and uncheck "TAR file smart CR/LF
|
|
|
|
conversion" option, then click OK.
|
2003-08-09 01:14:28 +08:00
|
|
|
|
2010-09-02 00:44:45 +08:00
|
|
|
4. CMake is available for this release. CMake 2.8.2 can be downloaded from
|
|
|
|
the KitWare website at http://www.kitware.com.
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
Note: We have attempted to mirror our Autoconf configuration files for
|
2010-09-02 00:44:45 +08:00
|
|
|
maintainence reasons. We are still working to synchronize the
|
|
|
|
configuration files.
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
5. Set up a directory structure to unpack the library. For example:
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
c:\ (any drive)
|
2007-04-14 23:46:08 +08:00
|
|
|
MyHDFstuff\ (any folder name)
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
6. Download the hdf5-1.9.x source code package and use 7zip or WinZip to
|
2007-07-02 22:33:47 +08:00
|
|
|
extract the HDF5 package into c:\MyHDFstuff. This creates a directory
|
2010-03-04 04:20:16 +08:00
|
|
|
called 'hdf5-1.9.x' under MyHDFstuff which contains several files and
|
|
|
|
directories. Rename "hdf5-1.9.x" to "hdf5".
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
7. HDF5 provide options to do in-memory compression within HDF5 library.
|
2007-07-02 22:33:47 +08:00
|
|
|
Currently, two external compression libraries Zlib and Szip can be used
|
|
|
|
with HDF5.
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
7.1 HDF5 uses Zlib version 1.2.5 for compression and Zlib is NOT
|
2010-03-04 04:20:16 +08:00
|
|
|
distributed with HDF5 library in 1.9.x release. To use Zlib library,
|
2007-07-02 22:33:47 +08:00
|
|
|
you have to install your own Zlib DLL library or go to
|
2010-05-14 00:01:50 +08:00
|
|
|
http://www.zlib.net/ to download the Zlib library.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
7.2 HDF5 uses Szip version 2.1 for compression and Szip compression
|
2010-03-04 04:20:16 +08:00
|
|
|
software is provided with HDF5 products in 1.9.x release. To use
|
2008-05-15 22:21:11 +08:00
|
|
|
Szip 2.1 library, you can download Szip source codes and binaries from
|
2007-11-13 22:26:18 +08:00
|
|
|
ftp://ftp.hdfgroup.org/lib-external/szip/2.1/bin/windows
|
2005-02-10 07:33:38 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Please note that Szip is not a totally open-source free software.
|
|
|
|
For licensing issue of Szip, please check "Licensing terms" at
|
2007-02-27 04:43:21 +08:00
|
|
|
http://hdfgroup.org/doc_resource/SZIP/index.html.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Szip compression feature inside HDF5 is optional.
|
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
8. Define the following environment variables:
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
HDF5_EXT_ZLIB
|
|
|
|
HDF5_EXT_SZIP
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
In this section, Zlib and Szip compression packages are assumed to be
|
|
|
|
used. Please read Section V as well as this section if you do not want
|
|
|
|
to use compression feature inside HDF5.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
To define these environment variables:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Click "Start", click "Control Panel", and then double-click "System".
|
|
|
|
On the "Advanced" tab, click "Environment Variables".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
If you are logged on as administrator to the local computer AND want to
|
|
|
|
let all other users use these two environment variables, click "New"
|
|
|
|
under "System Variables" box; otherwise, click "New" under "User
|
|
|
|
Variables" box.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
In the New Variable window, set "Variable name" as HDF5_EXT_ZLIB and
|
2008-01-29 23:59:41 +08:00
|
|
|
"Variable value" as zlib1.lib, then click OK.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Similarly, you can set:
|
|
|
|
|
2010-06-04 02:51:04 +08:00
|
|
|
HDF5_EXT_SZIP environment variable as szip.lib
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
Notes:
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
a. You will have to close and reopen running programs for the new
|
|
|
|
environment variable settings to take effect.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
b. c:\zlib\zlib1.dll and c:\szip\szip.dll should be copied
|
|
|
|
into a location that the application can find.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
9. Set up path for external libraries and headers
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Skip this part if you don't want to use ANY compression features provided
|
|
|
|
by HDF5. Please do read Section V.
|
2000-12-21 06:49:32 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
You have to read this part even if you want to only use Zlib or Szip.
|
|
|
|
You also need to read Section V.
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Invoke Microsoft Visual Studio and go to "Tools" and select "Options",
|
|
|
|
find "Projects", and then "VC++ Directories".
|
2008-05-15 22:21:11 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
9.1 If you are building on 64-bit Windows, find the "Platform" dropdown
|
2008-05-15 22:21:11 +08:00
|
|
|
and select "x64".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
9.2 Find the box "Show directories for", choose "Include files", if you
|
2007-07-02 22:33:47 +08:00
|
|
|
can not find your Zlib and Szip header path (for example,
|
2010-05-14 00:01:50 +08:00
|
|
|
c:\zlib\include, c:\szip\include) from the directory list, add the
|
|
|
|
header path (c:\zlib\include, c:\szip\include) to the included
|
2007-07-02 22:33:47 +08:00
|
|
|
directories.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
9.3 Find the box "Show directories for", choose "Library files". If you
|
2007-07-02 22:33:47 +08:00
|
|
|
cannot find your Zlib and Szip library path (for example,
|
2010-05-14 00:01:50 +08:00
|
|
|
c:\zlib\dll, c:\szip\dll) from the directory list, add the library
|
|
|
|
path (c:\zlib\dll, c:\szip\dll) to the library directories.
|
2008-05-15 22:21:11 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
9.4 If building Fortran libraries, you will also need to setup the path
|
2008-05-15 22:21:11 +08:00
|
|
|
for the Intel Fortran compiler. Please see Section VI.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-17 04:35:20 +08:00
|
|
|
Notes:
|
2005-07-30 00:41:37 +08:00
|
|
|
|
2010-03-04 04:20:16 +08:00
|
|
|
1. Users should go to hdf5/windows directory, run copy_hdf.bat first and then
|
|
|
|
open all.sln under hdf5/windows/proj/all to start building process.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2009-10-28 05:37:26 +08:00
|
|
|
2. Visual Studio 6.0 is no longer supported in HDF5 1.8 or later releases.
|
|
|
|
Visual Studio .NET is no longer support in HDF5 1.8.4 or later releases.
|
2010-03-04 04:20:16 +08:00
|
|
|
Visual Studio 2005 is no longer support in HDF5 1.8.5 or later releases.
|
2010-05-14 00:01:50 +08:00
|
|
|
Intel Fortran 9.1 is no longer support in HDF5 1.8.5 or later releases.
|
2007-08-17 02:28:20 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
3. For users who want to quickly build HDF5 library or do not want to know
|
|
|
|
HDF5 building and installation details, please read the
|
2010-05-14 00:01:50 +08:00
|
|
|
INSTALL_Windows_Short_2008.txt relating to your compiler.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
4. For users who would like to build and test HDF5 package from the command
|
2010-05-14 00:01:50 +08:00
|
|
|
line, please read INSTALL_Windows_From_Command_Line.txt.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
5. For users who would like to build and test HDF5 package using CMake,
|
2010-05-27 00:47:12 +08:00
|
|
|
please read CMake.txt.
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
6. HDF4-related tools are not built and released with HDF5 library packages
|
2007-07-02 22:33:47 +08:00
|
|
|
any more. To obtain HDF4 related tools, please check
|
|
|
|
http://hdfgroup.org/h4toh5/ and ftp://ftp.hdfgroup.org/HDF5/h4toh5
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
7. For Fortran users, Intel Fortran Compiler 10.1 is currently supported
|
|
|
|
-- please see Section VI. Intel Compiler verion 7.x, 8.x and 9.x are
|
|
|
|
no longer supported. Intel Compiler 11.1 can be used but the project files
|
|
|
|
must be upgraded within the Visual Studio IDE.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
8. Visual Studio now only builds muti-threaded versions of HDF5 library,
|
2007-07-02 22:33:47 +08:00
|
|
|
please read Section VII.
|
|
|
|
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
========================================================================
|
2007-04-14 23:46:08 +08:00
|
|
|
Section I: What do we build and install?
|
2004-11-04 03:57:49 +08:00
|
|
|
========================================================================
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
1. Build and Install
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
HDF5 static library:
|
2007-04-24 06:06:01 +08:00
|
|
|
debug and release version
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
HDF5 Dynamic Link Library(DLL):
|
2004-11-04 03:57:49 +08:00
|
|
|
debug and release version as well as export libraries for DLL
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
HDF5 High-Level Library (Optional):
|
2007-04-14 23:46:08 +08:00
|
|
|
HDF5 C++ Library
|
|
|
|
HDF5 HL-Fortran Library
|
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
HDF5 tools:
|
2007-04-14 23:46:08 +08:00
|
|
|
HDF5 tools
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
2. Build Only (Not included in the binary distribution)
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
HDF5 tool library:
|
|
|
|
debug and release version
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
HDF5 tool export library for DLL:
|
2007-04-14 23:46:08 +08:00
|
|
|
debug and release version
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
HDF5 library testing programs:
|
|
|
|
HDF5 library comprehensive tests
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
HDF5 related tools testing programs:
|
|
|
|
HDF5 tools comprehensive tests
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
3. Examples (Not included in the binary distribution)
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
HDF5 examples:
|
2007-07-02 22:33:47 +08:00
|
|
|
Simple HDF5 C/C++/Fortran and High level C/Fortran examples
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
========================================================================
|
2007-04-14 23:46:08 +08:00
|
|
|
Section II: How to build and test HDF5 libraries and tools
|
2004-11-04 03:57:49 +08:00
|
|
|
========================================================================
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Note:
|
2007-07-02 22:33:47 +08:00
|
|
|
To build and test HDF5 with Fortran support, please read over Section VI.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-04-24 06:06:01 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
STEP 1: Building HDF5 Libraries and Tools
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
|
2007-04-24 06:06:01 +08:00
|
|
|
1. Run batch file copy_hdf.bat
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Go to c:\MyHDFstuff\hdf5\windows and run copy_hdf.bat. This process will
|
2008-05-15 22:21:11 +08:00
|
|
|
copy all the necessary batch files, Windows-specific source code and
|
2007-07-02 22:33:47 +08:00
|
|
|
text files saved under c:\MyHDFstuff\hdf5\windows directory to the
|
|
|
|
corresponding directories under hdf5.
|
|
|
|
|
2007-11-13 23:17:49 +08:00
|
|
|
2. Open the HDF5 library project in Visual Studio
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
Invoke Microsoft Visual Studio. From the main menu, go to "File" and
|
|
|
|
select the "Open Solution" option. Then open the
|
|
|
|
c:\MyHDFstuff\hdf5\windows\proj\all\all.sln solution.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
You should find Windows project files listed as "all", "big", etc. on the
|
|
|
|
left.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-11-13 23:17:49 +08:00
|
|
|
3. (Optional) Disable HDF5 C++ and High level C++
|
2007-07-02 22:33:47 +08:00
|
|
|
|
2010-03-04 04:20:16 +08:00
|
|
|
In HDF5 1.9, C++ and HL C++ libraries are built by default. To opt-out,
|
2007-07-02 22:33:47 +08:00
|
|
|
you must explicitly disable them.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-11-13 23:17:49 +08:00
|
|
|
3.1 Skip this step if you do want to build HDF5 High-Level C++ libraries
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Go to "Project" and select "Project Dependencies". Select "all", and
|
|
|
|
disable all of the following projects:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
hdf5_hl_cpp
|
|
|
|
hdf5_hl_cppdll
|
|
|
|
hl_test_table_cpp
|
|
|
|
hl_test_table_cppdll
|
|
|
|
|
2007-11-13 23:17:49 +08:00
|
|
|
3.2 Skip this step if you do want to build HDF5 High-Level libraries
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Go to "Project" and select "Project Dependencies". Select "all", and
|
|
|
|
disable all of the project files listed in the previous step, as well
|
|
|
|
as the following projects:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
hdf5_hl
|
2005-07-29 06:45:03 +08:00
|
|
|
hdf5_hldll
|
2005-06-11 03:04:33 +08:00
|
|
|
hl_test_image
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_imagedll
|
2005-06-11 03:04:33 +08:00
|
|
|
hl_test_lite
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_litedll
|
2005-06-11 03:04:33 +08:00
|
|
|
hl_test_table
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_tabledll
|
2005-06-11 03:04:33 +08:00
|
|
|
hl_test_ds
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_dsdll
|
2005-06-11 03:04:33 +08:00
|
|
|
hl_test_packet
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_packetdll
|
2008-05-15 22:21:11 +08:00
|
|
|
|
|
|
|
Note: Disabling some projects will likely produce false errors in the
|
|
|
|
testing script. Check the output carefully to ensure that the
|
|
|
|
errors are related to the disabled projects, and then safely
|
|
|
|
ignore them.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
|
2007-11-13 23:17:49 +08:00
|
|
|
4. Select "Build", then Select "Configuration Manager".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-11-13 23:17:49 +08:00
|
|
|
4.1 To build debug static libraries, debug multithreaded DLLs, and tests:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
In "Active Solution Configuration", select "Debug". Select "Close".
|
|
|
|
Select "Build" -> "Build Solution" or "Rebuild Solution" to build debug
|
|
|
|
version of project "all".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-11-13 23:17:49 +08:00
|
|
|
4.2 To build release static libraries, multithreaded DLLs and tests:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
In "Active Solution Configuration", select "Release". Select "Close".
|
|
|
|
Select "Build" -> "Build Solution" or "Rebuild Solution" to build release
|
|
|
|
version of project "all".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
Release version must be built for testing, debug version is optional.
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Warning messages can be ignored.
|
|
|
|
|
|
|
|
When the debug or release build is done the directories
|
2004-11-04 03:57:49 +08:00
|
|
|
listed below will contain the following files:
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5\debug -
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
hdf5d.lib- the hdf5 static library
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5\release -
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5.lib- the hdf5 static library
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5dll\debug -
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5ddll.dll- DLL
|
2007-04-14 23:46:08 +08:00
|
|
|
hdf5ddll.lib- the DLL export library
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5dll\release -
|
1999-09-25 07:51:22 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5dll.dll- DLL
|
|
|
|
hdf5dll.lib- the DLL export library
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\MyHDFstuff\hdf5\test\libtest\debug -
|
2004-11-04 03:57:49 +08:00
|
|
|
and c:\MyHDFstuff\hdf5\test\libtest\release -
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
libtest.lib - the internal library for test
|
|
|
|
|
2007-08-17 02:28:20 +08:00
|
|
|
c:\MyHDFstuff\hdf5\test\libtestdll\debug -
|
1999-09-25 07:51:22 +08:00
|
|
|
|
2007-08-17 02:28:20 +08:00
|
|
|
libtestddll.dll - the internal DLL for test
|
|
|
|
libtestddll.lib - the internal DLL export library for test
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-08-17 02:28:20 +08:00
|
|
|
c:\MyHDFstuff\hdf5\test\libtestdll\release -
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-08-17 02:28:20 +08:00
|
|
|
libtestdll.dll - the internal DLL for test
|
|
|
|
libtestdll.lib - the internal DLL export library for test
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
c:\MyHDFstuff\hdf5\tools\toolslib\debug -
|
|
|
|
and c:\MyHDFstuff\hdf5\tools\toolslib\release -
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
toolslib.lib- the internal tools library
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\tools\toolslibD\debug -
|
|
|
|
and c:\MyHDFstuff\hdf5\tools\toolslibD\release -
|
|
|
|
|
|
|
|
toolslibD.dll- DLL
|
2007-04-14 23:46:08 +08:00
|
|
|
toolslibD.lib- the internal DLL export library for tools
|
2001-02-03 03:38:13 +08:00
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\tools\"tools directory"-
|
2007-02-27 04:43:21 +08:00
|
|
|
where tools are located
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
The directories listed below will contain the following files
|
|
|
|
ONLY when you choose to build HDF5 C++ libraries:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_cpp\debug -
|
2007-07-25 04:14:05 +08:00
|
|
|
|
|
|
|
hdf5_cppd.lib- the HDF5 C++ API static library
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
and c:\MyHDFstuff\hdf5\proj\hdf5_cpp\release -
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5_cpp.lib- the HDF5 C++ API static library
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_cppdll\debug -
|
2007-07-25 04:14:05 +08:00
|
|
|
|
2007-08-03 22:44:44 +08:00
|
|
|
hdf5_cppddll.dll- the HDF5 C++ API DLL
|
|
|
|
hdf5_cppddll.lib - the C++ API export library
|
2007-07-25 04:14:05 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
and c:\MyHDFstuff\hdf5\proj\hdf5_cppdll\release -
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5_cppdll.dll- the HDF5 C++ API DLL
|
|
|
|
hdf5_cppdll.lib- the C++ API DLL export library
|
2001-02-03 03:38:13 +08:00
|
|
|
|
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
The directories listed below will contain the following files
|
|
|
|
ONLY when you choose to build HDF5 High Level libraries:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hl\Release -
|
2007-07-25 04:14:05 +08:00
|
|
|
hdf5_hl.lib - HDF5 High Level static Library
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
and c:\MyHDFstuff\hdf5\proj\hdf5_hl\Debug -
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
hdf5_hld.lib - HDF5 High Level Static Library
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hldll\Release -
|
2007-07-25 04:14:05 +08:00
|
|
|
hdf5_hldll.dll - HDF5 High Level DLL
|
|
|
|
hdf5_hldll.lib - HDF5 High Level export Library
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
and c:\MyHDFstuff\hdf5\proj\hdf5_hldll\Debug -
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-08-03 22:44:44 +08:00
|
|
|
hdf5_hlddll.dll - HDF5 High Level DLL
|
|
|
|
hdf5_hlddll.lib - HDF5 High Level export Library
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
The directories listed below will contain the following files
|
|
|
|
ONLY when you choose to build HDF5 High Level C++ libraries:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hl_cpp\Release -
|
|
|
|
|
|
|
|
hdf5_hl_cpp.lib - HDF5 High Level C++ Static Library
|
|
|
|
|
2007-07-25 04:14:05 +08:00
|
|
|
and c:\MyHDFstuff\hdf5\proj\hdf5_hl_cpp\Debug -
|
|
|
|
|
|
|
|
hdf5_hl_cppd.lib - HDF5 High Level C++ Static Library
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hl_cppdll\Release -
|
2007-07-02 22:33:47 +08:00
|
|
|
and c:\MyHDFstuff\hdf5\proj\hdf5_hl_cppdll\Debug -
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-08-03 22:44:44 +08:00
|
|
|
hdf5_hl_cppddll.dll - HDF5 High Level C++ DLL
|
|
|
|
hdf5_hl_cppddll.lib - HDF5 High Level C++ export Library
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
STEP 2: Testing HDF5 Libraries and Tools
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
HDF5 libraries and tools should be tested to make sure that they were built
|
|
|
|
correctly.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2008-05-15 03:36:38 +08:00
|
|
|
Note: The complete testing suite can take a long time to run on even fast
|
|
|
|
machines. Some of the longer tests can be automatically shortened by
|
|
|
|
defining an environment variable HDF5TestExpress. Set HDF5TestExpress
|
|
|
|
to 3 for fastest, or 0 for slowest. For example:
|
|
|
|
|
|
|
|
set HDF5TestExpress=3
|
|
|
|
|
2008-05-17 02:48:26 +08:00
|
|
|
If the variable is unset, it takes on the value 1. Note that when
|
|
|
|
HDF5TestExpress is set to 2 or 3, some features may not be thoroughly
|
|
|
|
tested. For most users, we recommend not setting this variable.
|
2008-05-15 03:36:38 +08:00
|
|
|
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
We provide 2 options for users to test HDF5 libraries and tools.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
Option 1: Automatic testings
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
HDF5 comes with various test suites, all of which can be tested with
|
|
|
|
hdf5check.bat batch file in c:\MyHDFstuff\hdf5 directory.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
hdf5check batch file can be run with one of the following four options:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
hdf5check Test HDF5 C library and tools only.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
hdf5check enablecpp Test HDF5 C/C++ libraries and tools. To use
|
|
|
|
this option, HDF5 C++ libraries must have been
|
|
|
|
built in step I.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
hdf5check enablefortran Test HDF5 C/Fortran libraries and tools. To
|
|
|
|
use this option, HDF5 Fortran libraries must
|
|
|
|
have been built in Section VI.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
hdf5check enableall Test HDF5 C/C++/Fortran libraries and tools.
|
|
|
|
To use this option, HDF5 C++ and Fortran
|
|
|
|
libraries must have been built.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
nodebug -- can be added to any of the above to
|
|
|
|
not test debug versions
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Invoke a command prompt window and run hdf5check with appropriate option.
|
2007-09-11 05:10:20 +08:00
|
|
|
Users are encouraged to pipe the test output into a file. You should find
|
|
|
|
no "*FAILED*" marks.
|
2003-05-13 22:47:35 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Option 2: Step-by-step HDF5 libraries and tools testings
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
You can also test HDF5 libraries and tools one by one. There are possibly
|
|
|
|
four versions of HDF5 libraries and tools testings.
|
2003-05-13 22:47:35 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
They are:
|
2000-12-21 06:49:32 +08:00
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
release
|
|
|
|
release dll
|
|
|
|
debug
|
|
|
|
debug dll
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
We strongly suggest you to redirect your testing results into an output file
|
|
|
|
so that you can easily check the testing results.
|
1999-09-25 07:51:22 +08:00
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
HDF5 DLLs should be placed into the Windows system directory. A batch file
|
|
|
|
named install_dll.bat is included in c:\MyHDFstuff\hdf5 directory. Run this
|
|
|
|
batch file and all neccessary HDF5 DLLS will be placed in the system
|
|
|
|
directory.
|
|
|
|
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
1. HDF5 library testing
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Open a command prompt in the hdf5\test directory
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
(1) Basic tests
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
a) Release Static, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checktests release >"Your output filename"
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
b) Release DLL, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checktests release dll >"Your output filename"
|
2007-02-27 04:43:21 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
c) Debug Static, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checktests debug >"Your output filename"
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
d) Debug DLL, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checktests debug dll >"Your output filename"
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
Use a text editor to check results. You should not find any FAILED marks
|
|
|
|
in your output files.
|
|
|
|
|
|
|
|
2. HDF5 performance testing
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
Open a command prompt in the hdf5\perform directory
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
a) Release Static, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkperformtests release >"Your output filename"
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
b) Release DLL, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkperformtests release dll >"Your output filename"
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
c) Debug Static, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkperformtests debug >"Your output filename"
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
d) Debug DLL, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkperformtests debug dll >"Your output filename"
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Use a text editor to check results. You should not find any FAILED marks
|
|
|
|
in your output files.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
3. HDF5 tools testing
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
Open a command prompt in the hdf5\tools directory
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
a) Release Static, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checktools release >"Your output filename"
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
b) Release DLL, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checktools release dll >"Your output filename"
|
2007-02-27 04:43:21 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
c) Debug Static, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checktools debug >"Your output filename"
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
d) Debug DLL, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checktools debug dll >"Your output filename"
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Use a text editor to check results. You should not find any FAILED marks
|
|
|
|
in your output files.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
4. HDF5 C++ library test
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Skip this step UNLESS you have built HDF5 C++ libraries and want to test
|
|
|
|
them.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
Open a command prompt in the hdf5\c++\test directory
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
a) Release Static, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkcpptests release >"Your output filename"
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
b) Release DLL, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkcpptests release dll >"Your output filename"
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
c) Debug Static, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkcpptests debug >"Your output filename"
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
d) Debug DLL, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkcpptests debug dll >"Your output filename"
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
Use a text editor to check results. You should not find any FAILED marks
|
|
|
|
in your output files.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2008-05-15 22:21:11 +08:00
|
|
|
4. HDF5 High-Level library test
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Skip this step UNLESS you have built HDF5 High-Level libraries and want to
|
|
|
|
test them.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
Open a command prompt in the hdf5\hl\test directory
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
a) Release Static, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkhltests release >"Your output filename"
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
b) Release DLL, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkhltests release dll >"Your output filename"
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
c) Debug Static, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkhltests debug >"Your output filename"
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
d) Debug DLL, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkhltests debug dll >"Your output filename"
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Use a text editor to check results. You should not find any FAILED marks
|
|
|
|
in your output files.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2008-05-15 22:21:11 +08:00
|
|
|
5. HDF5 High-Level C++ library test
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Skip this step UNLESS you have built HDF5 High-Level C++ libraries and want
|
|
|
|
to test them.
|
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
Open a command prompt in the hdf5\hl\c++\test directory
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
a) Release Static, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkhlcpptests release >"Your output filename"
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
b) Release DLL, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkhlcpptests release dll >"Your output filename"
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
c) Debug Static, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkhlcpptests debug >"Your output filename"
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
d) Debug DLL, type:
|
2007-09-11 05:10:20 +08:00
|
|
|
checkhlcpptests debug dll >"Your output filename"
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Use a text editor to check results. You should not find any FAILED marks
|
|
|
|
in your output files.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2008-05-15 22:21:11 +08:00
|
|
|
Note: See Section VI for instructions on testing Fortran libraries.
|
2007-07-02 22:33:47 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
STEP 3: Installing HDF5 Libraries
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
We provide a batch file for users to relocate all HDF5 libraries in one folder
|
|
|
|
(C++ and Fortran libraries will also be copied into this folder if they have
|
|
|
|
been built in step I or Section VI, respectively). The file is called
|
|
|
|
installhdf5lib.bat under c:\MyHDFstuff\hdf5 directory. Run the batch file, you
|
|
|
|
may see a folder called hdf5lib under c:\MyHDFstuff\hdf5.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
The <release> layout of <hdf5lib> should be:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
release\include -- HDF5 header files
|
|
|
|
release\bin -- HDF5 static tool executables
|
|
|
|
release\bindll -- HDF5 DLL tool executables
|
|
|
|
release\lib -- HDF5 static libraries
|
|
|
|
release\dll -- HDF5 DLLs
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
You may also find the similar layout for the <debug>.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
========================================================================
|
2007-05-01 05:36:54 +08:00
|
|
|
Section III: How To Build Examples (Optional)
|
2007-04-14 23:46:08 +08:00
|
|
|
========================================================================
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Simple examples have been provided for users to test HDF5 C/C++/Fortran and
|
|
|
|
High level C/Fortran library and tools.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Note:
|
2007-07-02 22:33:47 +08:00
|
|
|
1) To build HDF5 C++ examples, HDF5 C++ library must have been built in
|
|
|
|
Step I.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2) To build HDF5 Fortran or HL Fortran examples, please see Section VI,
|
|
|
|
Step 3.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
3) To build HDF5 High Level C examples, HDF5 High level library must have
|
|
|
|
been built in step I.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
4) By default, the debug versions of HDF5 C/C++/HL examples are linked
|
|
|
|
with the debug versions of HDF5 C/C++/HL libraries and DLLs. The
|
|
|
|
debug versions of HDF5 C/C++/HL examples will fail if they are linked
|
|
|
|
with HDF5 binary distribution, which only includes the release
|
|
|
|
versions of HDF5 C/C++ libraries and DLLs.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
To build and test HDF5 C examples:
|
2005-12-21 04:22:45 +08:00
|
|
|
----------------------------------
|
2007-07-02 22:33:47 +08:00
|
|
|
1. Invoke Microsoft Visual Studio, go to "File" and select the "Open
|
|
|
|
Solution" option.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Then open the solution
|
|
|
|
c:\MyHDFstuff\hdf5\windows\examples\allexamples\allexamples.sln.
|
2005-04-06 03:55:20 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2. Select "Build", and "Configuration Manager".
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2.1 To build debug versions of C examples:
|
|
|
|
|
|
|
|
In "Active Solution Configuration", select "Debug". Select "Close".
|
|
|
|
Select "Build" -> "Build Solution" or "Rebuild Solution" to build
|
|
|
|
debug version of project "allexamples".
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2005-04-06 03:55:20 +08:00
|
|
|
2.2 To build release versions of C examples.
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
In "Active Solution Configuration", select "Release". Select "Close".
|
|
|
|
Select "Build" -> "Build Solution" or "Rebuild Solution" to build
|
|
|
|
release version of project "allexamples".
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
When the debug and release build is done, there should be the following
|
|
|
|
subdirectories in c:\MyHDFstuff\hdf5\examples\
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
attributetest
|
|
|
|
attributetestdll
|
|
|
|
chunkread
|
|
|
|
chunkreaddll
|
2007-04-14 23:46:08 +08:00
|
|
|
compoundtest
|
2004-11-04 03:57:49 +08:00
|
|
|
compoundtestdll
|
2007-04-14 23:46:08 +08:00
|
|
|
extendwritetest
|
2004-11-04 03:57:49 +08:00
|
|
|
extendwritetestdll
|
2007-04-14 23:46:08 +08:00
|
|
|
grouptest
|
2004-11-04 03:57:49 +08:00
|
|
|
grouptestdll
|
2007-04-14 23:46:08 +08:00
|
|
|
readtest
|
2004-11-04 03:57:49 +08:00
|
|
|
readtestdll
|
2007-04-14 23:46:08 +08:00
|
|
|
selectest
|
2005-04-06 03:55:20 +08:00
|
|
|
selectestdll
|
2007-04-14 23:46:08 +08:00
|
|
|
writetest
|
2004-11-04 03:57:49 +08:00
|
|
|
writetestdll
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
3. Invoke a command prompt window and run the batch file InstallExamples.bat
|
|
|
|
which resides in the top level directory (c:\MyHDFstuff\hdf5). This file
|
|
|
|
creates 4 new directories, examplesREL, examplesRELDLL, examplesDBG, and
|
|
|
|
examplesDBGDLL, in the c:\MyHDFstuff\hdf5\examples directory and places
|
|
|
|
all the executables in it. Both the release and debug versions of the
|
2004-11-04 03:57:49 +08:00
|
|
|
examples should be built before this step is done.
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
4. We provide a batch file named testExamples.bat and an expected examples
|
|
|
|
tests output file named testExamples_exp_output.txt in
|
|
|
|
c:\MyHDFstuff\hdf5\examples directory for you to test HDF5 C examples.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
testExamples.bat batch file has 4 options:
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
testExamples release -- for release version
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
testExamples release dll -- for release DLL version
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
testExamples debug -- for debug version
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
testExamples debug dll -- for debug DLL version
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Invoke a command prompt and run testExamples.bat with appropriate options.
|
|
|
|
You should get "All HDF5 C examples tests passed." when the C examples are
|
|
|
|
built successfully. Otherwise, the difference between the expected
|
|
|
|
outputs and actual outputs will be given.
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
To build and test HDF5 C++ examples:
|
2005-12-21 04:22:45 +08:00
|
|
|
------------------------------------
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
1. Invoke Microsoft Visual Studio, go to "File" and select the "Open
|
|
|
|
Solution" option.
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Then open the solution
|
|
|
|
c:\MyHDFstuff\hdf5\windows\examples\allexamples\allcppexamples.sln.
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2. Select "Build", and "Configuration Manager".
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2.1 To build debug versions of C examples:
|
|
|
|
|
|
|
|
In "Active Solution Configuration", select "Debug". Select "Close".
|
|
|
|
Select "Build" -> "Build Solution" or "Rebuild Solution" to build
|
|
|
|
debug version of project "allcppexamples".
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2.2 To build release versions of C examples.
|
|
|
|
|
|
|
|
In "Active Solution Configuration", select "Release". Select "Close".
|
|
|
|
Select "Build" -> "Build Solution" or "Rebuild Solution" to build
|
|
|
|
release version of project "allcppexamples".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
When the debug build or release build is done, there should be the following
|
|
|
|
subdirectories in c:\MyHDFstuff\hdf5\c++\examples\
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-09-11 03:14:08 +08:00
|
|
|
chunks
|
|
|
|
chunksdll
|
|
|
|
compound
|
|
|
|
compounddll
|
|
|
|
create
|
|
|
|
createdll
|
|
|
|
extend_ds
|
|
|
|
extend_dsll
|
|
|
|
h5group
|
|
|
|
h5groupdll
|
|
|
|
readdata
|
|
|
|
readdatadll
|
|
|
|
writedata
|
|
|
|
writedatadll
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
3. Invoke a command prompt window and run the batch file
|
2004-11-04 03:57:49 +08:00
|
|
|
InstallcppExamples.bat which resides in the top level directory
|
2007-04-14 23:46:08 +08:00
|
|
|
(c:\MyHDFstuff\hdf5). This file creates 4 new directories,
|
2007-07-02 22:33:47 +08:00
|
|
|
cppexamplesREL, cppexamplesRELDLL, cppexamplesDBG, and cppexamplesDBGDLL,
|
|
|
|
in the c:\MyHDFstuff\c++\examples directory and places all the executables
|
|
|
|
in it. Both the release and debug versions of the examples should be
|
|
|
|
built before this step is done.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
4. We provide a batch file named testcppExamples.bat in
|
2007-07-02 22:33:47 +08:00
|
|
|
c:\MyHDFstuff\hdf5\c++\examples directory for you to test HDF5 C++
|
|
|
|
examples.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
testcppExamples.bat batch file has 4 options:
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
testcppExamples release -- for release version
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
testcppExamples release dll -- for release DLL version
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
testcppExamples debug -- for debug version
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
testcppExamples debug dll -- for debug DLL version
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Invoke a command prompt and run testcppExamples.bat with appropriate
|
|
|
|
options. You should get "All HDF5 C++ examples tests passed." when the
|
|
|
|
C++ examples are built successfully. Otherwise, the difference between
|
|
|
|
the expected outputs and actual outputs will be given.
|
2003-07-15 01:40:33 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
To build and test HDF5 High Level C examples:
|
2005-12-21 04:22:45 +08:00
|
|
|
---------------------------------------------
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
1. Invoke Microsoft Visual Studio, go to "File" and select the "Open
|
|
|
|
Solution" option.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Then open the solution
|
2010-05-14 00:01:50 +08:00
|
|
|
c:\MyHDFstuff\hdf5\windows\hl\examples\allhlcexamples\allhlcexamples.sln
|
2005-12-21 04:22:45 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2. Select "Build", and "Configuration Manager".
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2.1 To build debug versions of C examples:
|
|
|
|
|
|
|
|
In "Active Solution Configuration", select "Debug". Select "Close".
|
|
|
|
Select "Build" -> "Build Solution" or "Rebuild Solution" to build
|
|
|
|
debug version of project "allhlcexamples".
|
2005-07-29 06:45:03 +08:00
|
|
|
|
|
|
|
2.2 To build release versions of C examples.
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
In "Active Solution Configuration", select "Release". Select "Close".
|
|
|
|
Select "Build" -> "Build Solution" or "Rebuild Solution" to build
|
|
|
|
release version of project "allhlcexamples".
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2008-05-01 03:51:13 +08:00
|
|
|
When the debug and release build is done, binaries will be built in the
|
|
|
|
following subdirectories of c:\MyHDFstuff\hdf5\examples\
|
|
|
|
|
|
|
|
ex_image[1-2](dll)
|
|
|
|
ex_lite1(dll)
|
|
|
|
ex_table[01-12](dll)
|
|
|
|
ex_ds1(dll)
|
|
|
|
ptExample[FL+VL](dll)
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
3. Invoke a command prompt and run the batch file Install_hlcexamples.bat
|
|
|
|
which resides in the top level directory (c:\MyHDFstuff\hdf5). This file
|
|
|
|
creates 4 new directories, HLCexamplesRELEASE, HLCexamplesRELEASEDLL,
|
|
|
|
HLCexamplesDEBUG, and HLCexamplesDEBUGDLL, in the
|
|
|
|
c:\MyHDFstuff\hdf5\hl\examples directory and places all the executables in
|
|
|
|
it. Both the release and debug versions of the examples should be built
|
|
|
|
before this step is done.
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
4. We provide a batch file named test_hl_cexamples.bat in
|
|
|
|
c:\MyHDFstuff\hdf5\hl\examples directory for you to test HDF5 high level C
|
|
|
|
examples.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
test_hl_cexamples.bat batch file has 4 options:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Options purpose
|
2005-07-29 06:45:03 +08:00
|
|
|
|
|
|
|
test_hl_cexamples release -- for release version
|
|
|
|
|
|
|
|
test_hl_cexamples release dll -- for release DLL version
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
test_hl_cexamples debug -- for debug version
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
test_hl_cexamples debug dll -- for debug DLL version
|
|
|
|
|
|
|
|
Invoke a command prompt window and run test_hl_cexamples with
|
2005-08-02 06:30:53 +08:00
|
|
|
appropriate options.
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Invoke a command prompt and run testExamples.bat with appropriate options.
|
|
|
|
You should get "All of the HL C Examples Passed!" when the HL C examples
|
|
|
|
are built successfully. Otherwise, the difference between the expected
|
|
|
|
outputs and actual outputs will be given.
|
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
========================================================================
|
2006-03-17 00:20:29 +08:00
|
|
|
Section IV: Building an application using the HDF5 library or DLL
|
2004-11-04 03:57:49 +08:00
|
|
|
========================================================================
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Waring: The instructions below will only describe how to build an application
|
|
|
|
using the release version of the HDF5 library or DLL. To use the debug
|
|
|
|
version of the HDF5 library or DLL, you need to substitute the release
|
|
|
|
version of the HDF5 library or DLL with the debug version.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
|
|
|
|
To build an application that uses the HDF5 static library the following
|
|
|
|
locations will need to be specified for locating header files and linking with
|
|
|
|
the HDF static library, for example:
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
c:\MyHDFstuff\hdf5\hdf5lib\release\include
|
|
|
|
c:\MyHDFstuff\hdf5\hdf5lib\release\lib
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
We assume that you will use Zlib and Szip compression with HDF5 library.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
1. Specifying Include Directories
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
To specify the include directories in the settings for your Visual Studio
|
|
|
|
project, you may choose one of the following two methods.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
Method One: Project-wide Settings
|
1999-11-20 01:06:55 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
1. Open your project in Microsoft Visual Studio and make sure it is the
|
|
|
|
active project.
|
1999-11-20 01:06:55 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
2. Go to the Project menu and chose the "Properties" option.
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
3. Choose the build configuration you would like to modify in the drop
|
|
|
|
down menu labeled "Configuration:"
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2009-02-11 04:01:44 +08:00
|
|
|
4. Choose the "C/C++" tab, and select "General".
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
5. In a text-area labeled with "Additional Include Directories:", add
|
|
|
|
HDF5, Zlib, and Szip header files directories. For example:
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
c:\MyHDFstuff\hdf5\hdf5lib\release\include
|
2010-05-14 00:01:50 +08:00
|
|
|
c:\zlib\include
|
2007-07-06 22:12:35 +08:00
|
|
|
c:\szip\include
|
1999-11-20 01:06:55 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
Then click OK.
|
2004-12-18 00:13:45 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
6. (Optional) To use HDF5 Fortran static library, the location of
|
|
|
|
Fortran module files should be specified by following Project->
|
|
|
|
Settings->Fortran->Preprocessor, and in the text-area labeled
|
|
|
|
"Additional Include Directories", add HDF5 Fortran module files
|
|
|
|
directories. For example:
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
c:\MyHDFstuff\hdf5\hdf5lib\release\include
|
|
|
|
|
|
|
|
Method Two: Visual Studio Settings
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
1. In Visual STudio, go to Tools->Options->Projects->
|
2008-05-15 22:21:11 +08:00
|
|
|
VC++ Directories. Under "Show Directories For", select "Include files"
|
2003-07-15 01:40:33 +08:00
|
|
|
|
2008-05-15 22:21:11 +08:00
|
|
|
2. Insert the correct HDF5, Zlib, Szip paths for headers(include). For
|
|
|
|
example,
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
c:\MyHDFstuff\hdf5\hdf5lib\release\include
|
2010-05-14 00:01:50 +08:00
|
|
|
c:\zlib\include
|
2007-07-06 22:12:35 +08:00
|
|
|
c:\szip\include
|
2008-05-15 22:21:11 +08:00
|
|
|
|
|
|
|
|
|
|
|
2. Specifying Library Directories
|
|
|
|
|
|
|
|
To specify the library directories in the settings for your Visual Studio
|
|
|
|
project, you may choose one of the following two methods.
|
|
|
|
|
|
|
|
Method One: Project-wide Settings
|
|
|
|
|
|
|
|
1. Open your project in Microsoft Visual Studio and make sure it is the
|
|
|
|
active project.
|
|
|
|
|
|
|
|
2. Go to the Project menu and chose the "Properties" option.
|
|
|
|
|
|
|
|
3. Choose the build configuration you would like to modify in the drop
|
|
|
|
down menu labeled "Configuration:"
|
|
|
|
|
2009-05-15 23:17:36 +08:00
|
|
|
4. Choose the "Linker" tab, and select "General".
|
2008-05-15 22:21:11 +08:00
|
|
|
|
|
|
|
5. In a text-area labeled with "Additional Library Directories:", add
|
|
|
|
HDF5, Zlib, and Szip library files directories. For example:
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\hdf5lib\release\lib
|
2010-05-14 00:01:50 +08:00
|
|
|
c:\zlib\dll
|
2007-07-06 22:12:35 +08:00
|
|
|
c:\szip\dll
|
2008-05-15 22:21:11 +08:00
|
|
|
|
|
|
|
Note: To link with HDF5 DLLs rathern that static libraries, simply
|
|
|
|
specify the "dll" directory rather than "lib", and link with the
|
|
|
|
corresponding DLL link library below.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2008-05-15 22:21:11 +08:00
|
|
|
Then click OK.
|
2003-07-15 01:40:33 +08:00
|
|
|
|
2008-05-15 22:21:11 +08:00
|
|
|
|
|
|
|
Method Two: Visual Studio Settings
|
|
|
|
|
|
|
|
1. In Visual STudio, go to Tools->Options->Projects->
|
|
|
|
VC++ Directories. Under "Show Directories For", select "Library files"
|
|
|
|
|
|
|
|
2. Insert the correct HDF5, Zlib, Szip paths for link libraries. For
|
|
|
|
example,
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\hdf5lib\release\lib
|
2010-05-14 00:01:50 +08:00
|
|
|
c:\zlib\dll
|
2008-05-15 22:21:11 +08:00
|
|
|
c:\szip\dll
|
|
|
|
|
|
|
|
Note: To link with HDF5 DLLs rathern that static libraries, simply
|
|
|
|
specify the "dll" directory rather than "lib", and link with the
|
|
|
|
corresponding DLL link library below.
|
|
|
|
|
|
|
|
|
|
|
|
3. Specifying Libraries to Link
|
2003-07-15 01:40:33 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
To link the HDF5 static library with your application:
|
2004-12-18 00:13:45 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
1. In Visual Studio, go to the Project menu and choose "Properties".
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
2. Find the "Link" option and "Input" category. In the "Additional
|
2010-06-04 02:51:04 +08:00
|
|
|
Dependencies" field, insert "zlib.lib, libszip.lib, hdf5.lib".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
3. (Optional) Also insert "hdf5_cpp.lib" if you want to use HDF5 C++
|
|
|
|
static library.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
4. (Optional) Also insert "hdf5_fortran.lib" if you want to use HDF5
|
|
|
|
Fortran static library.
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
5. (Optional) Also insert "hdf5_hl.lib" if you want to use HDF5 high
|
|
|
|
level static library.
|
2003-07-15 01:40:33 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
6. (Optional) Also insert "hdf5_hl_cpp.lib" if you want to use HDF5 High
|
|
|
|
Level C++ static library.
|
1999-11-20 01:06:55 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
7. (Optional) Also insert "hdf5_hl_fortran.lib" if you want to use HDF5
|
|
|
|
High Level Fortran static library.
|
1999-11-20 01:06:55 +08:00
|
|
|
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
To link the HDF5 DLL library with your application:
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-07-06 22:12:35 +08:00
|
|
|
1. Follow the steps for linking the HDF5 static library as shown above,
|
|
|
|
except now link the export library that is created with the DLL.
|
|
|
|
|
|
|
|
The export library is called hdf5dll.lib for HDF5 C libray,
|
|
|
|
hdf5_cppdll.lib for HDF5 C++ library, and hdf5_fortrandll.lib
|
|
|
|
for HDF5 Fortran library.
|
|
|
|
|
|
|
|
2. In the Project Properties dialog, go to the C/C++ > Preprocessor
|
|
|
|
subsection. In the "Preprocessor Definitions" box, add "_HDF5USEDLL_"
|
|
|
|
to the list.
|
|
|
|
|
|
|
|
3. (Optional) Also add HDF5CPP_USEDLL to use HDF5 C++ DLL.
|
|
|
|
|
|
|
|
4. (Optional) Also add _HDF5USEHLDLL_ to use HDF5 high level DLL.
|
|
|
|
|
|
|
|
5. (Optional) Also add HDF5USE_HLCPPDLL use HDF5 high level C++ DLL.
|
|
|
|
|
|
|
|
6. (Optional) Follow Project->Settings->Fortran->Category->General->
|
|
|
|
Predefined Preprocess or Symbols, and add "HDF5F90_WINDOWS" to use HDF5
|
|
|
|
Fortran DLL.
|
|
|
|
|
|
|
|
7. Place the DLLs in a location that Windows will be able to locate. The
|
|
|
|
searched path and order for DLL's is
|
|
|
|
|
|
|
|
a) The directory where the executable module for the current
|
|
|
|
process is located.
|
|
|
|
b) The current directory.
|
|
|
|
c} The Windows system directory. The GetSystemDirectory function
|
|
|
|
retrieves the path of this directory.
|
|
|
|
d) The Windows directory. The GetWindowsDirectory function
|
|
|
|
retrieves the path of this directory.
|
|
|
|
e) The directories listed in the PATH environment variable.
|
1999-11-20 01:06:55 +08:00
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
========================================================================
|
2005-07-29 06:45:03 +08:00
|
|
|
Section V: How to disable Gzip(Zlib)/Szip compression
|
|
|
|
========================================================================
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Warning: When you modify the H5pubconf.h file as described below, DO NOT just
|
|
|
|
change the values of these macros from 1 to 0. Please DO remove (or
|
|
|
|
comment out) appropriate lines.
|
|
|
|
|
|
|
|
Notes:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
To disable Gzip and Szip at the same time, just make the appropriate
|
|
|
|
modifications to H5pubconf.h and the environmental variables all together,
|
|
|
|
and then Run-compile.
|
2008-05-15 22:21:11 +08:00
|
|
|
|
|
|
|
These instructions assume that copy_hdf.bat has already been run in Section
|
|
|
|
II. If you can't find H5pubconf.h file in the specified directory, please
|
|
|
|
verify that this script has been run.
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
1. Disable Gzip (Zlib) Compression
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
If you would like to remove Gzip compression from the HDF5 library, follow
|
|
|
|
the steps below.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
1.1 Open the H5pubconf.h file from the c:\MyHDFstuff\hdf5\src directory
|
|
|
|
and remove (or comment out) the following two lines:
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
#define H5_HAVE_ZLIB_H 1
|
|
|
|
#define H5_HAVE_FILTER_DEFLATE 1
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Then save the file.
|
2007-02-27 04:43:21 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
1.2 Delete HDF5_EXT_ZLIB environment variable if you have set it in
|
|
|
|
preconditions.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-18 05:46:49 +08:00
|
|
|
1.3 Run-compile HDF5 library according to Section II.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
When you disable Gzip, you may get the following message when building
|
|
|
|
HDF5 libraries: "The following environment variables were not found:
|
|
|
|
$(HDF5_EXT_ZLIB)". This message can be ignored.
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2. Disable Szip Compression (both encoder and decoder)
|
1999-09-09 04:03:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
If you would like to remove Szip compression from the HDF5 library, follow
|
|
|
|
the steps below.
|
1999-09-09 04:03:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2.1 Open the H5pubconf.h file from the c:\MyHDFstuff\hdf5\src directory
|
|
|
|
and remove (or comment out) the following two lines:
|
2003-08-09 01:14:28 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
#define H5_HAVE_SZLIB_H 1
|
|
|
|
#define H5_HAVE_FILTER_SZIP 1
|
2007-02-27 04:43:21 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Then save the file.
|
2007-02-27 04:43:21 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2.2 Delete HDF5_EXT_SZIP environment variable if you have set it in
|
|
|
|
preconditions.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2005-06-18 05:46:49 +08:00
|
|
|
2.3 Run-compile HDF5 library according to Section II.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
When you disable Szip, you may get the following message when building
|
|
|
|
HDF5 libraries: "The following environment variables were not found:
|
|
|
|
$(HDF5_EXT_SZIP)". This message can be ignored.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
3. Disable Szip Encoder
|
2003-08-09 01:14:28 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
If you would like to just disable Szip encoder from the HDF5
|
|
|
|
library while keeping Szip decoder enabled, follow the steps
|
|
|
|
below.
|
2003-08-09 01:14:28 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
3.1 Download Szip library without encoder
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Szip library is different if you want to disable Szip encoder.
|
2007-11-13 22:26:18 +08:00
|
|
|
Download szip-noenc binaries from
|
|
|
|
ftp://ftp.hdfgroup.org/lib-external/szip/2.1/bin/windows. The Szip
|
2007-07-02 22:33:47 +08:00
|
|
|
library and header path should also be set up accordingly (refer to
|
|
|
|
precondition 6).
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2008-05-15 22:21:11 +08:00
|
|
|
3.2 Run-compile HDF5 library according to Section II. The encoding
|
|
|
|
functionality is detected dynamically.
|
2003-08-09 01:14:28 +08:00
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
========================================================================
|
2008-05-15 22:21:11 +08:00
|
|
|
Section VI: How to build HDF5 with Fortran Support
|
2007-04-14 23:46:08 +08:00
|
|
|
========================================================================
|
2008-05-15 22:21:11 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
Notes: 1. For Intel Compiler users, Intel fortran Compiler10.1 is
|
|
|
|
currently supported. Intel Compiler verion 7.x, 8.x and
|
|
|
|
9.x are no longer supported. Intel Compiler 11.1 can be used, however
|
|
|
|
the fortran project files must be upgraded from within the IDE.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
2. The Compaq Fortran Compiler is no longer supported for HDF5 1.8.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
3. Visual Studio 2008 is supported only with Intel Fortran 10.1 and 11.1.
|
|
|
|
|
|
|
|
4. Parallel builds should be disabled. To do so: Go to Tools >
|
2008-05-15 22:21:11 +08:00
|
|
|
Options > Projects and Solutions > Build and Run. Set "Maximum Number
|
|
|
|
of Parallel Project Builds" to 1.
|
2005-07-30 00:41:37 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
Preconditions:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
a. Setup Szip Library for Intel Compiler.
|
|
|
|
|
2008-05-15 22:21:11 +08:00
|
|
|
Szip source codes or binaries for Windows compilers can be downloaded
|
2005-06-11 03:04:33 +08:00
|
|
|
from the following address:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-11-13 22:26:18 +08:00
|
|
|
ftp://ftp.hdfgroup.org/lib-external/szip/2.1/bin/windows.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
b. Set up path for external libraries and headers
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
Skip this part if you don't want to use ANY compression features
|
2007-04-14 23:46:08 +08:00
|
|
|
provided by HDF5. Instead, read Section V.
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
You have to read this part even if you want to use only Zlib
|
2005-06-17 04:35:20 +08:00
|
|
|
or Szip. You also need to read Section V.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2010-03-04 04:20:16 +08:00
|
|
|
1) Invoke Microsoft Visual Studio.
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
2) From the main menu, Go to Tools > Options > Intel(R) Fortran. In the
|
2008-07-01 03:13:27 +08:00
|
|
|
right panel, make sure your "Selected Compiler" is Intel Fortran.
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
3) Select the right-most box for "Libraries", and add Zlib and Szip
|
2010-05-14 00:01:50 +08:00
|
|
|
library paths (c:\zlib\dll, c:\szip\dll for example).
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
4) Select right-most box for "Includes", and add Zlib and Szip header
|
2010-05-14 00:01:50 +08:00
|
|
|
paths (c:\zlib\include c:\szip\include, for example).
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
5) Then click "OK".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
1. Build with Intel Fortran Compiler 11.1 under Visual Studio 2008
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-08-17 02:28:20 +08:00
|
|
|
Note: This step will build HDF5 Static and DLL C and C++ Library using
|
2008-07-03 03:40:00 +08:00
|
|
|
Visual Studio compiler as well as HDF5 Static and High Level
|
2010-05-14 00:01:50 +08:00
|
|
|
Fortran Library using Intel Fortran 11.1 Compiler.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
1.1 Open all_fortran.sln
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2008-07-03 03:40:00 +08:00
|
|
|
Invoke Microsoft Visual Studio. From the main menu,
|
2007-07-02 22:33:47 +08:00
|
|
|
go to "File" and select "Open Solution". Choose "all_fortran.sln"
|
|
|
|
under the directory c:\MyHDFstuff\hdf5\windows\proj\all_fortran.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
1.2 Build as Normal
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Follow steps as in Section II to build all HDF5 library files, including
|
|
|
|
Fortran and HL Fortran libraries.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2. Test HDF5 Static and High Level Fortran Library
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
We provide 2 options for users to test HDF5 libraries and tools.
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Option 1: Automatic testings
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
HDF5 comes with various test suites, all of which can be tested with
|
|
|
|
hdf5check.bat batch file in c:\MyHDFstuff\hdf5 directory.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
hdf5check batch file can used to test HDF libraries with Fortran with
|
|
|
|
the following options:
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
hdf5check enablefortran Test HDF5 C/Fortran libraries and tools
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
hdf5check enableall Test HDF5 C/C++/Fortran libraries and tools
|
|
|
|
To use this option, HDF5 C++ and Fortran
|
|
|
|
libraries must have been built.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Invoke a command prompt window and run hdf5check with appropriate option.
|
2007-09-11 05:10:20 +08:00
|
|
|
Users are encouraged to redirect their ouput into a file. There should
|
|
|
|
be no "*FAILED*" marks.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Option 2: Step-by-step HDF5 libraries and tools testings
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Note: This section provides step-by-step instructions for testing the
|
|
|
|
Fortran librariy and tools only. To test the rest of the HDF5 library
|
|
|
|
and tools, please see Section II, Step 2.
|
|
|
|
|
|
|
|
|
|
|
|
a. Test HDF5 Static Fortran Library
|
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
Open a command prompt in the hdf5\fortran\test directory
|
|
|
|
|
|
|
|
a) Release Static, type:
|
|
|
|
checkfortrantests release >"Your output filename"
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
b) Release DLL, type:
|
|
|
|
checkfortrantests release dll >"Your output filename"
|
|
|
|
|
|
|
|
c) Debug Static, type:
|
|
|
|
checkfortrantests debug >"Your output filename"
|
|
|
|
|
|
|
|
d) Debug DLL, type:
|
|
|
|
checkfortrantests debug dll >"Your output filename"
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Use a text editor to check results. You should not find any FAILED marks
|
|
|
|
in your output files.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
b. Test HDF5 High Level Fortran Library
|
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
Open a command prompt in the hdf5\hl\fortran\test directory
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-09-11 05:10:20 +08:00
|
|
|
a) Release Static, type:
|
|
|
|
checkhlfortrantests release >"Your output filename"
|
|
|
|
|
|
|
|
b) Release DLL, type:
|
|
|
|
checkhlfortrantests release dll >"Your output filename"
|
|
|
|
|
|
|
|
c) Debug Static, type:
|
|
|
|
checkhlfortrantests debug >"Your output filename"
|
|
|
|
|
|
|
|
d) Debug DLL, type:
|
|
|
|
checkhlfortrantests debug dll >"Your output filename"
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Use a text editor to check results. You should not find any FAILED marks
|
|
|
|
in your output files.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
3. (Optional) Build HDF5 Fortan and HL Fortran Examples
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Note: This section only covers building Fortran and HL Fortran examples.
|
|
|
|
For other examples, please see Section III.
|
|
|
|
|
|
|
|
To build and test HDF5 Fortran example:
|
|
|
|
---------------------------------------
|
2007-05-01 05:36:54 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
1. Open allf90examples.sln
|
2007-05-01 05:36:54 +08:00
|
|
|
|
2008-07-03 03:40:00 +08:00
|
|
|
Invoke Microsoft Visual Studio. From the main menu,
|
2007-07-02 22:33:47 +08:00
|
|
|
go to "File" and select "Open Solution". Choose "allf90examples.sln"
|
|
|
|
under the directory
|
|
|
|
c:\MyHDFstuff\hdf5\windows\fortran\examples\allf90examples.
|
2007-05-01 05:36:54 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2. Select "Build", then Select "Configuration Manager".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2.1 To build debug versions of Fortran examples.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
In "Active Solution Configuration", select "Debug". Select "Close".
|
|
|
|
Select "Build" -> "Build Solution" or "Rebuild Solution" to build
|
|
|
|
debug version of project "allf90examples".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2.2 To build release versions of Fortran examples.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
In "Active Solution Configuration", select "Release". Select "Close".
|
|
|
|
Select "Build" -> "Build Solution" or "Rebuild Solution" to build
|
|
|
|
release version of project "allf90examples".
|
|
|
|
|
|
|
|
When the debug build or release build is done, there should be the
|
|
|
|
following subdirectories in c:\MyHDFstuff\hdf5\fortran\examples\
|
|
|
|
|
|
|
|
attreexampletest
|
|
|
|
attreexampletestdll
|
|
|
|
compoundtest
|
|
|
|
compoundtestdll
|
|
|
|
dsetexampletest
|
|
|
|
dsetexampletestdll
|
|
|
|
fileexampletest
|
|
|
|
fileexampletestdll
|
|
|
|
groupexampletest
|
|
|
|
groupexampletestdll
|
|
|
|
grpdsetexampletest
|
|
|
|
grpdsetexampletestdll
|
|
|
|
grpittest
|
|
|
|
grpittestdll
|
|
|
|
grpsexampletest
|
|
|
|
grpsexampletestdll
|
|
|
|
hyperslabtest
|
|
|
|
hyperslabtestdll
|
|
|
|
mountexampletest
|
|
|
|
mountexampletest
|
|
|
|
refobjexampletest
|
|
|
|
refobjexampletestdll
|
|
|
|
refregexampletest
|
|
|
|
refregexampletestdll
|
|
|
|
rwdsetexampletest
|
|
|
|
rwdsetexampletestdll
|
|
|
|
selecteletest
|
|
|
|
selecteletestdll
|
|
|
|
|
|
|
|
3. Invoke a command prompt and run the batch file Installf90Examples.bat
|
|
|
|
which resides in the top level directory (c:\MyHDFstuff\hdf5). This
|
|
|
|
file creates 4 new directories, f90examplesREL, f90examplesRELDLL,
|
|
|
|
f90examplesDBG, and f90examplesDBGDLL, in the
|
|
|
|
c:\MyHDFstuff\fortran\examples directory and places all the
|
|
|
|
executables in it. Both the release and debug versions of the
|
|
|
|
examples should be built before this step is done.
|
|
|
|
|
|
|
|
|
|
|
|
To build and test HDF5 High Level Fortran examples:
|
|
|
|
---------------------------------------------------
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
1. Open allhlf90examples.sln
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2008-07-03 03:40:00 +08:00
|
|
|
Invoke Microsoft Visual Studio. From the main menu,
|
2007-07-02 22:33:47 +08:00
|
|
|
go to "File" and select "Open Solution". Choose
|
|
|
|
"allhlf90examples.sln" under the directory
|
|
|
|
c:\MyHDFstuff\hdf5\windows\hl\fortran\examples\allhlf90examples.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2. Select "Build", then Select "Configuration Manager".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2.1 To build debug versions of Fortran examples.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
In "Active Solution Configuration", select "Debug". Select "Close".
|
|
|
|
Select "Build" -> "Build Solution" or "Rebuild Solution" to build
|
|
|
|
debug version of project "allhlf90examples".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
2.2 To build release versions of Fortran examples.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
In "Active Solution Configuration", select "Release". Select "Close".
|
|
|
|
Select "Build" -> "Build Solution" or "Rebuild Solution" to build
|
|
|
|
release version of project "allhlf90examples".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
When the debug build or release build is done, there should be the
|
|
|
|
following subdirectories in c:\MyHDFstuff\hdf5\hl\fortran\examples
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
ex_lite
|
|
|
|
ex_litedll
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
3. Invoke a command prompt and run the batch file
|
|
|
|
Install_hlf90examples.bat which resides in the top level directory
|
|
|
|
(c:\MyHDFstuff\hdf5). This file creates 4 new directories,
|
|
|
|
HLf90examplesRELEASE, HLf90examplesRELEASEDLL, HLf90examplesDEBUG,
|
|
|
|
and HLf90examplesDEBUGDLL, in the
|
|
|
|
c:\MyHDFstuff\hdf5\hl\fortran\examples directory and places all
|
|
|
|
the executables in it. Both the release and debug versions of the
|
|
|
|
examples should be built before this step is done.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
4. We provide a batch file named test_hl_f90examples.bat in
|
|
|
|
c:\MyHDFstuff\hdf5\hl\fortran\examples directory for you to test
|
|
|
|
HDF5 high level fortran examples.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
test_hl_f90examples.bat batch file has 4 options:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Options purpose
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
test_hl_f90examples release -- for release version
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
test_hl_f90examples release dll -- for release DLL version
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
test_hl_f90examples debug -- for debug version
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
test_hl_f90examples debug dll -- for debug DLL version
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Invoke a command prompt and run test_hl_f90examples with
|
|
|
|
appropriate options.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
When you run "test_hl_f90examples release", the output will look
|
|
|
|
like:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
release version of High Level Fortran examples PASSED
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Similar messages should be generated with another three options
|
|
|
|
If the high level Fortran examples are built successfully.
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
========================================================================
|
|
|
|
Section VII : How to build Multi-threaded version of HDF5 library
|
|
|
|
========================================================================
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
Notes: In Visual Studio 2008, the Single-threaded runtime libraries have been
|
|
|
|
depreciated, and Multi-threaded is built by default. Therefore, no extra
|
2007-07-02 22:33:47 +08:00
|
|
|
work needs to be done to build Multi-threaded libraries in Visual Studio
|
2010-05-14 00:01:50 +08:00
|
|
|
2008.
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
|
|
|
|
========================================================================
|
2007-08-17 02:28:20 +08:00
|
|
|
Section VIII: How To Build And Test HDF5 With Thread-Safe Feature
|
2005-08-24 05:17:29 +08:00
|
|
|
========================================================================
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
All of the preconditions in "Preconditions" Section at the beginning of this
|
|
|
|
document also apply to this section. There are some extra preconditions for
|
|
|
|
this section only as following.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Pre1. Pthread-Win32 Installed
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Posix Threads for Windows is a open source free software. Users can download
|
|
|
|
it from http://sources.redhat.com/pthreads-win32/.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2008-05-15 03:36:38 +08:00
|
|
|
HDF5 release 1.8 supports Pthread-Win32 2.7.0 (2005-06-04) or later. Since
|
|
|
|
pthreadVC2.dll used by HDF5 1.8 is the release version dll of
|
|
|
|
pthread-win32, ONLY HDF5 1.8 release dll are supported and tested on
|
2007-07-02 22:33:47 +08:00
|
|
|
Windows XP.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Pre2. Set Path for Pthread-Win32 header and library
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Invoke Microsoft Visual Studio, go to Tools->Options->Projects->VC++
|
|
|
|
Directories.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
From the drop-down box under "Show directories for:",
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Choose "Include files", add in the path to Pthread-Win32 header file (For
|
|
|
|
example: C:\PTHREADS_WIN32\INCLUDE).
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Choose "Library files", add in the path to Pthread-Winew library (For
|
|
|
|
example: C:\PTHREADS_WIN32\LIB).
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Pre3. Enable HDF5 Thread-safe Feature on Windows
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Go to directory c:\MYHDFstuff\hdf5\windows\src, open H5pubconf.h and find the
|
|
|
|
following messages and remove those comment signs referred to by those two
|
|
|
|
arrows and save H5pubconf.h
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
/*Users want to build and test hdf5 library with thread safe enabled,
|
|
|
|
Make the following block active
|
|
|
|
*/
|
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
/* <----
|
2007-04-14 23:46:08 +08:00
|
|
|
#if defined _DLL
|
2006-03-17 00:20:29 +08:00
|
|
|
#define H5_HAVE_THREADSAFE
|
2007-04-14 23:46:08 +08:00
|
|
|
#define H5_HAVE_SYSTEM_SCOPE_THREADS 1
|
|
|
|
#if defined TTSAFE_H
|
|
|
|
#define sleep Sleep
|
|
|
|
#endif
|
|
|
|
#endif
|
2006-03-17 00:20:29 +08:00
|
|
|
*/ <----
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Pre4. Define Environment Variable(HDF5_EXT_PTHREAD) for PthreadVC2.lib
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-08-24 05:17:29 +08:00
|
|
|
To define this environment variable:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-05-01 05:36:54 +08:00
|
|
|
Click "Start" -> "Control Panel" -> "System" -> "Advanced" ->
|
|
|
|
"Environment Variables".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
If you are logged on as administrator to the local computer AND want to
|
|
|
|
let all other users use these two environment variables, click "New" under
|
|
|
|
"System Variables" box; otherwise, click "New" under "User Variables" box.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
In the New Variable window, set
|
|
|
|
"Variable name" as HDF5_EXT_PTHREAD
|
2006-03-17 00:20:29 +08:00
|
|
|
"Variable value" as pthreadVC2.lib
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Click OK.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
pre5. Copy pthreadVC2.dll to System Directory
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
pthreadVC2.dll should be copied into the location that applications can
|
|
|
|
find. One suggestion is to use the c:\WINDOWS\system.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
|
2005-08-24 05:17:29 +08:00
|
|
|
1. Build HDF5 Release DLL with Thread-safe Feature
|
|
|
|
|
|
|
|
1.1 Run batch file copy_hdf.bat.
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Go to c:\MyHDFstuff\hdf5\windows and run copy_hdf.bat. This process will
|
2008-05-15 22:21:11 +08:00
|
|
|
copy all the necessary batch files, Windows-specific source code and text
|
2007-07-02 22:33:47 +08:00
|
|
|
files saved under c:\MyHDFstuff\hdf5\windows directory to the corresponding
|
|
|
|
directories under hdf5.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
1.2 Invoke Microsoft Visual Studio
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Invoke Microsoft Visual Studio. From the main menu, go to "File" and select
|
|
|
|
the "Open Solution" option. Then open the
|
|
|
|
c:\MyHDFstuff\hdf5\windows\proj\all\all.sln workspace.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
1.3 Add in Thread-safe Source Code for HDF5 Library
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Expand project "hdf5dll", right click on "source" and choose "Add Files to
|
|
|
|
Folder...", browse to add in file "H5TS.c" under directory
|
|
|
|
c:\MYHDFSTUFF\hdf5\src.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
1.4 Link to pthreadVC2.lib
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
Right click on project "hdf5dll", choose "Set as Active Project".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Go to Project->Properties
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
On the left pane, choose "Release" to the right of "Configuration:"
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Choose "Linker", choose "Input" from the left pane.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Under "Additional Dependencies", add in "$(HDF5_EXT_PTHREAD)" (No
|
|
|
|
quotation marks).
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
Click on "OK".
|
|
|
|
|
|
|
|
1.5 Set Project Active Configurations
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Go to Build->Set Active Configuration, choose "Release" under "Project
|
|
|
|
Configurations:", Click "OK".
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
1.6 Build HDF5 Release DLL with Thread-safe Feature
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Right-click on project hdf5dll and click "Build" to build HDF5 Release DLL
|
|
|
|
with thread-safe feature.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Warning messages can be ignored. But there should be no failures at all.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
2. Test Thread-safe Feature of HDF5 Release DLL
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-08-17 02:28:20 +08:00
|
|
|
2.1 Build Release Version of Project libtestdll
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Go to Build->Set Active Configuration, choose
|
2007-08-17 02:28:20 +08:00
|
|
|
"libtestdll-Win32 Release" under "Project configurations:", Click "OK".
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2007-08-17 02:28:20 +08:00
|
|
|
Go to Build->Build libtestdll.dll to build release version of Project
|
|
|
|
libtestdll.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
2.2 Build Release Version of Project ttsafedll
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Go to Build->Set Active Configuration, choose "Release" under "Project
|
|
|
|
Configurations:", Click "OK".
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Right-click on project ttsafedll and click "Build" to build release version
|
|
|
|
of Project ttsafedll.exe.
|
2008-05-15 22:21:11 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
2.3 Install hdf5dll.dll
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Invoke a comand prompt, change directory to c:\MYHDFSTUFF\hdf5, run batch
|
|
|
|
file install_dll.bat to copy
|
|
|
|
c:\MYHDFSTUFF\hdf5\proj\hdf5dll\release\hdf5dll.dll into system directory.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
2.4 Test Thread-safe Feature of HDF5 Release DLL
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Set project ttsafedll as the active project file if it is not. Go to
|
|
|
|
Build->Execute ttsafedll.exe, the following is the test messages users
|
|
|
|
should get:
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
For help use: ttsafedll.exe -help
|
2007-04-18 05:04:17 +08:00
|
|
|
Linked with hdf5 version 1.8 release 0
|
2007-04-14 23:46:08 +08:00
|
|
|
Testing -- multi-dataset creation (dcreate)
|
|
|
|
Testing -- per-thread error stacks (error)
|
|
|
|
Testing -- thread cancellation safety test (cancel)
|
|
|
|
Testing -- multi-attribute creation (acreate)
|
|
|
|
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
All tests were successful.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
|
|
|
|
Cleaning Up temp files...
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Users who got the same messages as above have successfully built the release
|
|
|
|
version of hdf5dll.dll.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
3. Build, Test and Install HDF5 Library and Tools
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
Go back to Section II, Step I(2) to Build, test and install HDF5 libary and
|
|
|
|
tools.
|
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
========================================================================
|
2007-08-17 02:28:20 +08:00
|
|
|
Section IX: How to build HDF5 for 64-bit Windows
|
2006-10-07 00:19:14 +08:00
|
|
|
========================================================================
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2010-03-04 04:20:16 +08:00
|
|
|
HDF5 can be built for 64-bit Windows in Visual Studio 2008.
|
2007-06-16 00:19:16 +08:00
|
|
|
|
|
|
|
Notes:
|
|
|
|
|
2007-11-13 22:26:18 +08:00
|
|
|
1. Building 64-bit HDF5 from a 32-bit machine is also unsupported. Because
|
2008-05-15 22:21:11 +08:00
|
|
|
we generate source file H5tinit.c from a generated 64-bit executable,
|
|
|
|
this must be done on a 64-bit machine.
|
2007-06-16 00:19:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
Prerequisites:
|
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
1. A 64-bit Windows machine.
|
2007-06-16 00:19:16 +08:00
|
|
|
|
2010-03-04 04:20:16 +08:00
|
|
|
2. Microsoft Visual Studio 2008 installed with x64 Extensions.
|
2007-08-17 02:28:20 +08:00
|
|
|
|
2007-06-16 00:19:16 +08:00
|
|
|
|
|
|
|
Building:
|
|
|
|
|
2007-08-17 02:28:20 +08:00
|
|
|
Building 64-bit Windows binaries is very similar to the process for 32-bit.
|
|
|
|
Therefore, you may follow the instructions in Section II with the following
|
|
|
|
modifications.
|
2007-06-16 00:19:16 +08:00
|
|
|
|
2007-11-13 23:17:49 +08:00
|
|
|
1. The x64 platform must be selected in the build configuration for
|
2007-08-17 02:28:20 +08:00
|
|
|
debug and release versions. Before building, go to "Build",
|
|
|
|
"Configuration Manager". In the "Active solution platform" box,
|
|
|
|
select "x64", and press "Close".
|
|
|
|
|
2008-05-15 22:21:11 +08:00
|
|
|
2. 64-bit HDF5 must be built with 64-bit external libraries, unless
|
2007-08-17 02:28:20 +08:00
|
|
|
external library support is disabled. You must add the include and
|
|
|
|
library paths for x64 configurations as you have in the
|
|
|
|
"Prerequisites" section. This is also true for Intel Fortran if
|
|
|
|
Fortran libraries are to be built. If you do not wish to use
|
|
|
|
external libraries, please read Section V about disabling them.
|
2007-06-16 00:19:16 +08:00
|
|
|
|
|
|
|
Testing:
|
|
|
|
|
|
|
|
We provide a test suite to verify all libraries and tools were built
|
2008-05-15 22:21:11 +08:00
|
|
|
successfully. This test suite should work identically on 32- and 64-bit
|
2007-08-17 02:28:20 +08:00
|
|
|
builds. Therefore, you may follow the instructions in Section II about
|
|
|
|
testing. Note that because 64-bit binaries were built, these tests must
|
|
|
|
run on a 64-bit machine.
|
|
|
|
|
2007-06-16 00:19:16 +08:00
|
|
|
Installing:
|
|
|
|
|
|
|
|
We provide a script that will install all headers, libraries, and tools
|
2007-08-17 02:28:20 +08:00
|
|
|
into one folder, hdf5lib. This script should work identically on 32- and
|
|
|
|
64-bit builds. Therefore, you may follow the instructions in Section II
|
|
|
|
about installing.
|
2008-05-15 22:21:11 +08:00
|
|
|
|
2008-01-29 23:59:41 +08:00
|
|
|
========================================================================
|
2008-02-04 23:53:37 +08:00
|
|
|
Section X: How to build HDF5 on Windows Vista
|
2008-01-29 23:59:41 +08:00
|
|
|
========================================================================
|
|
|
|
Building on Windows Vista is very similar to building on Windows XP, with
|
|
|
|
some minor changes. Therefore, follow the build instructions above, with the
|
|
|
|
following considerations:
|
|
|
|
|
2010-03-04 04:20:16 +08:00
|
|
|
1. Only Visual Studio 2008 is currently supported on Windows Vista.
|
2010-05-14 00:01:50 +08:00
|
|
|
|
2009-10-28 05:37:26 +08:00
|
|
|
2. Elevated security permissions are required to test the HDF5 libraries.
|
2008-01-29 23:59:41 +08:00
|
|
|
This is because DLLs are installed in the system directory. To enable
|
|
|
|
elevated security:
|
|
|
|
|
|
|
|
1. In the Start menu, search for "Command Prompt". Right click on
|
|
|
|
the "Command Prompt" program, and select "Run as administrator."
|
|
|
|
|
|
|
|
2. A security dialog will pop up. Make sure you select "Continue."
|
|
|
|
|
|
|
|
3. Test HDF5 libraries and tools as usual using "hdf5check.bat"
|
|
|
|
script.
|
2008-02-04 23:53:37 +08:00
|
|
|
|
|
|
|
|
2008-07-03 03:40:00 +08:00
|
|
|
========================================================================
|
2010-03-04 04:20:16 +08:00
|
|
|
Section XI: How to build HDF5 using Visual Studio 2010
|
2008-07-03 03:40:00 +08:00
|
|
|
========================================================================
|
2010-03-04 04:20:16 +08:00
|
|
|
Building with Visual Studio 2010 is very similar to building with Visual Studio
|
|
|
|
2008, with some minor changes. Therefore, follow the build instructions above,
|
2008-07-03 03:40:00 +08:00
|
|
|
with the following considerations:
|
|
|
|
|
2010-03-04 04:20:16 +08:00
|
|
|
1. Visual Studio 2010 uses a new format for project files, but Visual Studio
|
|
|
|
2008 project files can be easily converted. The HDF5 project files
|
2008-07-03 03:40:00 +08:00
|
|
|
will need to be converted on first use. To do so:
|
|
|
|
|
2010-03-04 04:20:16 +08:00
|
|
|
1.1. Open the HDF5 Visual Studio 2008 solution file as in Section II
|
2008-07-03 03:40:00 +08:00
|
|
|
(either all.sln or all_fortran.sln if building Fortran.)
|
|
|
|
|
|
|
|
1.2. You will be prompted with an automatic conversion wizard. Click
|
|
|
|
through, accepting the default values. You may choose to create
|
|
|
|
backups of the project files, although it isn't necessary.
|
|
|
|
|
|
|
|
1.3. When it is finished, it should state that all projects were
|
|
|
|
converted successfully with no errors. Warnings can be ignored.
|
|
|
|
|
|
|
|
2. Once the project files have been converted, build and test normally.
|
|
|
|
Note that the converted project files aren't backwards compatible with
|
|
|
|
previous versions of Visual Studio.
|
|
|
|
|
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
========================================================================
|
2008-02-04 23:53:37 +08:00
|
|
|
Section XII: Backwards Compatibility with HDF5 1.6
|
|
|
|
========================================================================
|
|
|
|
|
|
|
|
Several basic HDF5 functions have changed over the years as requirements on
|
|
|
|
the library and data format have evolved. To enable existing applications to
|
|
|
|
run properly, all versions of these functions have been retained; for
|
|
|
|
flexibility and ease-of-use, macros have been created that can be mapped
|
|
|
|
either globally to broad sets of function versions or on a
|
|
|
|
function-by-function basis to specific versions. For example, an overall
|
|
|
|
approach can be determined by means global setting; function-level settings
|
|
|
|
can then be used to override the global setting then for specific functions.
|
|
|
|
|
|
|
|
To enable 1.6 API symbols in your application:
|
|
|
|
|
|
|
|
1. Build and test HDF5 normally (see Section II).
|
|
|
|
|
|
|
|
2. Open your application in Visual Studio. Right click on the
|
|
|
|
project file, and select properties.
|
|
|
|
|
|
|
|
3. Select the C/C++ > Preprocessor pane on the left. In the list of
|
|
|
|
"Preprocessor Definitions", add "H5_USE_16_API". (Note: macros in
|
|
|
|
the list are separated by a semi-colon.)
|
|
|
|
|
|
|
|
4. Repeat this for each project and project configuration that uses
|
|
|
|
HDF5 libraries.
|
|
|
|
|
|
|
|
5. Continue to build and test your application normally.
|
|
|
|
|
|
|
|
|
|
|
|
========================================================================
|
2008-07-03 03:40:00 +08:00
|
|
|
Section XIII: Misc.
|
2004-11-04 03:57:49 +08:00
|
|
|
========================================================================
|
2003-04-30 03:28:40 +08:00
|
|
|
|
2007-05-24 05:22:42 +08:00
|
|
|
1. Helpful Pointers
|
2006-03-17 00:20:29 +08:00
|
|
|
|
|
|
|
Here are some helpful notes if you are not familiar with
|
|
|
|
using the Visual C++ Development Environment.
|
|
|
|
|
2007-05-24 05:22:42 +08:00
|
|
|
1.1 Project name and location issues:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
It is recommended that you use the given directory structure for building
|
|
|
|
HDF5. However, it is possible to create your own structure. If you must
|
|
|
|
install all.sln and all.vcproj in another directory, relative to hdf5
|
|
|
|
directory, you will be asked to locate the sub-project files, when you open
|
|
|
|
the project all.sln.
|
2006-03-17 00:20:29 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
If you want to rename "all" (the entire project), you will need to modify
|
|
|
|
two files all.sln and all.vcproj as text (contrary to the explicit warnings
|
|
|
|
in the files).
|
2006-03-17 00:20:29 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-05-24 05:22:42 +08:00
|
|
|
1.2 Settings... details:
|
2006-03-17 00:20:29 +08:00
|
|
|
|
|
|
|
If you create your own project, the necessary settings can be read
|
2007-07-02 22:33:47 +08:00
|
|
|
from the all.vcproj file (as text), or from the Project Settings in the
|
2008-05-15 22:21:11 +08:00
|
|
|
Visual Studio project settings dialog.
|
|
|
|
|
|
|
|
1.3 FAQ
|
|
|
|
|
|
|
|
Many other common questions and hints are located online and being updated
|
|
|
|
in the HDF5 FAQ. For Windows-specific questions, please see:
|
|
|
|
|
|
|
|
http://www.hdfgroup.uiuc.edu/windows/faq.html
|
|
|
|
|
|
|
|
For all other general questions, you can look in the general FAQ:
|
|
|
|
|
|
|
|
http://hdfgroup.org/HDF5-FAQ.html
|
2006-03-17 00:20:29 +08:00
|
|
|
|
2007-07-02 22:33:47 +08:00
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
************************************************************************
|
2007-02-27 04:43:21 +08:00
|
|
|
Please send email to help@hdfgroup.org for further assistance.
|