2006-04-26 03:35:34 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
***********************************************************************
|
2005-07-30 00:41:37 +08:00
|
|
|
* HDF5 Build and Install Instructions for Windows XP *
|
|
|
|
* (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)
|
|
|
|
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
|
2006-04-26 03:35:34 +08:00
|
|
|
Section VI : How to build HDF5 in .NET 2003
|
2007-04-14 23:46:08 +08:00
|
|
|
Section VII : How to build HDF5 with Fortran Support
|
2005-07-29 06:45:03 +08:00
|
|
|
Section VIII : How to build Multi-threaded version of HDF5 library
|
|
|
|
Section IX : How to build and test HDF5 snapshot release
|
2005-08-24 05:17:29 +08:00
|
|
|
Section X : How to build HDF5 with Thread-Safe Feature
|
2006-10-07 00:19:14 +08:00
|
|
|
Section XI : How to build HDF5 in Visual studio 2005
|
|
|
|
Section XII : 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:
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
1. Installed Microsoft Visual C++ 6.0 or Intel Compiler and WinZip.
|
|
|
|
|
|
|
|
1.1 Installed Intel Compiler 9.1 if you want to build
|
|
|
|
HDF5 Fortran libraries.
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Note: 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
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Please uncheck the "TAR file smart CR/LF conversion" option
|
|
|
|
in your WinZip to prevent the conversion when extracting
|
|
|
|
.tar file.
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
To uncheck the "TAR file smart CR/LF conversion" option:
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Invoke WinZip, go to "Options", select "Configuration..."
|
2003-08-09 01:14:28 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Click the "Miscellaneous" tab and uncheck "TAR file smart
|
|
|
|
CR/LF conversion" option, then click OK.
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
2. Set up a directory structure to unpack the library. For example:
|
2003-08-09 01:14:28 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\ (any drive)
|
|
|
|
MyHDFstuff\ (any folder name)
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
3. Download the hdf5-1.8.x source code package and use WinZip to
|
|
|
|
extract the HDF5 package into c:\MyHDFstuff. This creates a
|
|
|
|
directory called 'hdf5-1.8.x' under MyHDFstuff which contains
|
|
|
|
several files and directories. Rename "hdf5-1.8.x" to "hdf5".
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
4. HDF5 provide options to do in-memory compress within HDF5
|
|
|
|
library. Currently, two external compression libraries Zlib and
|
2005-02-10 07:33:38 +08:00
|
|
|
Szip can be used with HDF5.
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2005-02-10 07:33:38 +08:00
|
|
|
4.1 HDF5 uses Zlib version 1.2.2 for compression and Zlib is NOT
|
2005-06-11 03:04:33 +08:00
|
|
|
distributed with HDF5 library in 1.8.x release. To use Zlib
|
2005-02-10 07:33:38 +08:00
|
|
|
library, you have to install your own Zlib DLL library or go
|
2007-04-14 23:46:08 +08:00
|
|
|
to ftp://ftp.hdfgroup.org/lib-external/zlib/1.2/bin
|
2004-11-04 03:57:49 +08:00
|
|
|
to download the Zlib library.
|
2005-02-10 07:33:38 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-02-10 07:33:38 +08:00
|
|
|
4.2 HDF5 uses Szip version 2.0 for compression and Szip
|
2005-06-11 03:04:33 +08:00
|
|
|
compression software is provided with HDF5 products in
|
|
|
|
1.8.0 release. To use Szip 2.0 library, you can
|
2005-02-10 07:33:38 +08:00
|
|
|
download Szip source codes and binaries from
|
2007-02-27 04:43:21 +08:00
|
|
|
ftp://ftp.hdfgroup.org/lib-external/szip/2.0/bin/windows
|
2005-02-10 07:33:38 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Please note that Szip is not a totally open-source free
|
2007-04-14 23:46:08 +08:00
|
|
|
software. For licensing issue of Szip, please check
|
2004-11-04 03:57:49 +08:00
|
|
|
"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.
|
|
|
|
|
|
|
|
5. 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
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
In this section, Zlib and Szip compression packages are assumed
|
2005-06-17 04:35:20 +08:00
|
|
|
to be used. Please read Section V as well as this section if you
|
2004-11-04 03:57:49 +08:00
|
|
|
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
|
|
|
|
2004-11-04 03:57:49 +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
|
|
|
|
2004-11-04 03:57:49 +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
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
In the New Variable window, set "Variable name" as HDF5_EXT_ZLIB
|
2005-02-10 07:33:38 +08:00
|
|
|
and "Variable value" as zdll.lib, then click OK.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Similarly, you can set:
|
|
|
|
|
2005-02-10 07:33:38 +08:00
|
|
|
HDF5_EXT_SZIP environment variable as szlibdll.lib
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
Notes:
|
|
|
|
|
2005-02-10 07:33:38 +08:00
|
|
|
a. You might have to close and reopen running programs for
|
2007-04-14 23:46:08 +08:00
|
|
|
the new environment variable settings to take effect.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2005-02-10 07:33:38 +08:00
|
|
|
b. c:\zlib122\zlib1.dll and c:\szip\dll\szlibdll.dll should
|
|
|
|
be copied into the location that the application can find,
|
2005-04-06 03:55:20 +08:00
|
|
|
one suggestion is to use the c:\WINDOWS\system.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
6. 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
|
2005-06-17 04:35:20 +08:00
|
|
|
provided by HDF5. Please do read Section V.
|
2000-12-21 06:49:32 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
You have to read this part even if you want to only use Zlib
|
2005-06-17 04:35:20 +08:00
|
|
|
or Szip. You also need to read Section V.
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Invoke Microsoft Visual C++ and go to "Tools" and select
|
|
|
|
"Options", find "Directories";
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
6.1 Find the box "Show directories for", choose
|
|
|
|
"Include files", if you can not find your Zlib and Szip
|
|
|
|
header path
|
2005-02-10 07:33:38 +08:00
|
|
|
(for example, c:\zlib122\include, c:\szip\include)
|
2004-11-04 03:57:49 +08:00
|
|
|
from the directory list, add the header path
|
2007-04-14 23:46:08 +08:00
|
|
|
(c:\zlib122\include, c:\szip\include) to the
|
2004-11-04 03:57:49 +08:00
|
|
|
included directories.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
6.2 Find the box "Show directories for", choose "Library files",
|
2005-02-10 07:33:38 +08:00
|
|
|
If you cannot find your Zlib and Szip library path
|
|
|
|
(for example, c:\zlib122\lib, c:\szip\dll)
|
2004-11-04 03:57:49 +08:00
|
|
|
from the directory list, add the library path
|
2005-02-10 07:33:38 +08:00
|
|
|
(c:\zlib122\lib, c:\szip\dll) to the library directories.
|
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
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
1. In release 1.8.0, all.zip is deprecated. Users should go to
|
|
|
|
hdf5/windows directory, run copy_hdf.bat first and then open
|
2005-06-11 03:04:33 +08:00
|
|
|
all.dsw under hdf5/windows/proj/all to start building process.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
2. In release 1.8.0, all.sln was provided for command line use ONLY.
|
2005-06-17 04:35:20 +08:00
|
|
|
all.sln should never be opened to start building HDF5 using IDE.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
3. To build HDF5 C++ libraries, please read through
|
2004-11-04 03:57:49 +08:00
|
|
|
this document.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
4. For users who want to quickly build HDF5 library or do not
|
|
|
|
want to know HDF5 building and installation details, please
|
2005-06-18 05:46:49 +08:00
|
|
|
read INSATLL_Windows_Short_MSVS6.0.txt,
|
|
|
|
INSTALL_Windows_Short_Net.txt or INSTALL_Windows_Short_Intel.txt
|
|
|
|
based on the compiler to be used.
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
5. For users who would like to build and test HDF5 package from the
|
2004-11-04 03:57:49 +08:00
|
|
|
command line, please read INSATLL_Windows_From_Command_Line.txt.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-17 04:35:20 +08:00
|
|
|
6. HDF4-related tools are not built and released with HDF5 library
|
|
|
|
packages any more. To obtain HDF4 related tools, please check
|
2007-04-14 23:46:08 +08:00
|
|
|
http://hdfgroup.org/h4toh5/ and
|
2007-02-27 04:43:21 +08:00
|
|
|
ftp://ftp.hdfgroup.org/HDF5/h4toh5
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2005-06-17 04:35:20 +08:00
|
|
|
7. For DLL users, please do read and follow "DLL hints"
|
2004-11-04 03:57:49 +08:00
|
|
|
at Section IV.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
8. For .NET users, please read Section VI.
|
|
|
|
|
|
|
|
9. For fortran users, Intel fortran Compiler 9.1 is currently supported-- please
|
|
|
|
see Section VII. Intel Compiler verion 7.x and 8.x are no longer supported,
|
|
|
|
but documentation can still be found on the web at
|
|
|
|
http://hdfgroup.org/windows/docs/hdf518/dep/Install_Windows_Dep_Intel.txt
|
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
10. For users who would like to build Muti-threaded version of HDF5
|
|
|
|
library, please read Section VIII.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
11. For users who would like to build, test and use HDF5 snapshot
|
|
|
|
release, please read Section IX.
|
2007-04-14 23:46:08 +08:00
|
|
|
12. For .Net and Intel users, if you are not building HDF5 with
|
|
|
|
Thread-Safe Feature (see Section X), ttsafedll.dsp should
|
2007-02-27 04:43:21 +08:00
|
|
|
always be turned off.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
13. The Compaq Fortran Compiler is no longer supported in HDF5-1.8.
|
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:
|
2005-07-29 06:45:03 +08:00
|
|
|
debug and release versionu
|
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:
|
2005-12-21 04:22:45 +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
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
STEP 1: Building HDF5 libraries and tools
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Note:
|
|
|
|
1) To build HDF5 with Fortran support, please read over Section VII.
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-06 03:55:20 +08:00
|
|
|
1. Run batch file copy_hdf.bat.
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
Go to c:\MyHDFstuff\hdf5\windows and run copy_hdf.bat. This
|
2007-04-14 23:46:08 +08:00
|
|
|
process will copy all the necessary batch files, windows specific
|
|
|
|
source codes and text files saved under c:\MyHDFstuff\hdf5\windows
|
2005-07-29 06:45:03 +08:00
|
|
|
directory to the corresponding directories under hdf5.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
2. Invoke Microsoft Visual C++ compiler
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Invoke Microsoft Visual C++. From the main menu, go to "File"
|
|
|
|
and select the "Open Workspace" option. Then open the
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\MyHDFstuff\hdf5\windows\proj\all\all.dsw workspace.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
You should find windows project files listed as "all files,
|
|
|
|
big files etc." on the left.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
3. (Optional)HDF5 C++ and High level C++
|
|
|
|
|
|
|
|
3.1 Skip this step if you do not want to build HDF5 High-Level
|
2004-11-04 03:57:49 +08:00
|
|
|
libraries
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Go to "Project" and select "dependencies";
|
|
|
|
Select "all" in the "Select project to modify:" box,
|
|
|
|
then enable the desired 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
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
3.2 Skip this step if you do not want to build HDF5 High-Level
|
|
|
|
C++ libraries
|
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
Go to "Project" and select "dependencies";
|
|
|
|
Select "all" in the "Select project to modify:" box,
|
|
|
|
then enable all of the project files listed in Section II
|
2007-04-14 23:46:08 +08:00
|
|
|
Step 1(3.1) and the following desired projects:
|
|
|
|
|
|
|
|
hdf5_hl_cpp
|
|
|
|
hdf5_hl_cppdll
|
|
|
|
hl_test_table_cpp
|
|
|
|
hl_test_table_cppdll
|
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
4. Select "Build", then Select "Set Active Configuration".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
4.1 To build debug versions of single-threaded static libraries,
|
2007-02-27 04:43:21 +08:00
|
|
|
Debug multithreaded DLLs and tests
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-02-27 04:43:21 +08:00
|
|
|
In "Project configurations", select "all -- Win32 Debug",
|
2007-04-14 23:46:08 +08:00
|
|
|
select "ok". Select "Build" -> "Build" or "Rebuild All" to
|
|
|
|
build debug version of project "all".
|
|
|
|
|
|
|
|
4.2 To build release versions of single-threaded static libraries,
|
|
|
|
multithreaded DLLs and tests
|
|
|
|
|
|
|
|
In "Project configurations", select "all -- Win32 Release",
|
|
|
|
select "ok". Select "Build" -> "Build" or "Rebuild All" to
|
|
|
|
build release version of project "all".
|
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
Both debug and release versions must be built.
|
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
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\test\libtestD\debug -
|
1999-09-25 07:51:22 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
libtestD.dll - the internal DLL for test
|
|
|
|
libtestD.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\test\libtestD\release -
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
libtestD.dll - the internal DLL for test
|
|
|
|
libtestD.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 -
|
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5_cppd.lib- the HDF5 C++ API static library
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_cpp\release -
|
|
|
|
|
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 -
|
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5_cppddll.dll- the HDF5 C++ API DLL
|
|
|
|
hdf5_cppddll.lib- the C++ API DLL export library
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_cppdll\release -
|
|
|
|
|
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 -
|
|
|
|
|
|
|
|
hdf5_hl.lib - HDF5 High Level Static Library
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hl\Debug -
|
|
|
|
|
|
|
|
hdf5_hld.lib - HDF5 High Level Static Library
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hldll\Release -
|
|
|
|
|
|
|
|
hdf5_hldll.dll - HDF5 High Level DLL
|
|
|
|
hdf5_hldll.lib - HDF5 High Level export Library
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hldll\Debug -
|
|
|
|
|
|
|
|
hdf5_hldlld.dll - HDF5 High Level DLL
|
|
|
|
hdf5_hldlld.lib - HDF5 High Level export Library
|
|
|
|
|
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
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hl_cpp\Debug -
|
|
|
|
|
|
|
|
hdf5_hl_cpp.lib - HDF5 High Level C++ Static Library
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hl_cppdll\Release -
|
|
|
|
|
|
|
|
hdf5_hl_cppdll.dll - HDF5 High Level C++ DLL
|
|
|
|
hdf5_hl_cppdll.lib - HDF5 High Level C++ export Library
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hl_cppdll\Debug -
|
|
|
|
|
|
|
|
hdf5_hl_cppdlld.dll - HDF5 High Level C++ DLL
|
|
|
|
hdf5_hl_cppdlld.lib - HDF5 High Level C++ export Library
|
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
STEP 2: Testing HDF5 libraries and tools
|
|
|
|
|
|
|
|
HDF5 libraries and tools should be tested to make sure that they were
|
|
|
|
built correctly.
|
|
|
|
|
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
|
|
|
|
|
|
|
|
HDF5 comes with various test suites, all of which can be tested
|
|
|
|
with hdf5check.bat batch file in c:\MyHDFstuff\hdf5 directory.
|
|
|
|
|
|
|
|
hdf5check batch file can be run with one of the following four
|
|
|
|
options:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5check test HDF5 C library and tools only
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5check enablecpp test HDF5 C/C++ libraries and tools
|
2007-04-14 23:46:08 +08:00
|
|
|
To use this option, HDF5 C++
|
|
|
|
libraries must have been built
|
2004-11-04 03:57:49 +08:00
|
|
|
in step I.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5check enablefortran test HDF5 C/FORTRAN libraries and
|
|
|
|
tools
|
|
|
|
To use this option, HDF5 Fortran
|
2007-04-14 23:46:08 +08:00
|
|
|
libraries must have been built
|
|
|
|
in Section VII.
|
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5check enableall test HDF5 C/C++/FORTRAN libraries
|
|
|
|
and tools
|
2007-04-14 23:46:08 +08:00
|
|
|
To use this option, HDF5 C++ and
|
2004-11-04 03:57:49 +08:00
|
|
|
Fortran libraries must have been
|
2007-04-14 23:46:08 +08:00
|
|
|
built in Section VII.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Invoke a command prompt window and run hdf5check with appropriate
|
|
|
|
option.
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Test results are saved in two files:
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\MyHDFstuff\hdf5\check_results.txt
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
c:\MyHDFstuff\hdf5\tests_results.txt.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
In general, you only need to check tests_results.txt. If all the
|
2007-04-14 23:46:08 +08:00
|
|
|
tests passed, then you do not have to check check_results.txt.
|
2004-11-04 03:57:49 +08:00
|
|
|
If some tests failed, check check_results.txt can help you
|
|
|
|
figure out what was wrong.
|
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
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
You can also test HDF5 libraries and tools one by one. There are
|
2007-04-14 23:46:08 +08:00
|
|
|
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
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
release version
|
|
|
|
release dll version
|
|
|
|
debug version
|
|
|
|
debug dll version
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
We strongly suggest you to redirect your testing results into an
|
|
|
|
output file so that you can easily check the testing results. You
|
|
|
|
may use either Notepad or WordPad or whatever other windows word
|
2007-04-14 23:46:08 +08:00
|
|
|
processor to check the results. For the purpose of printing,
|
2004-11-04 03:57:49 +08:00
|
|
|
please choose font less than 14 for better alignment of the text.
|
1999-09-25 07:51:22 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
DLLs listed below should be placed into the Windows system
|
2007-04-14 23:46:08 +08:00
|
|
|
directory. A batch file named install_dll.bat is included in
|
|
|
|
c:\MyHDFstuff\hdf5 directory. Run this batch file and the
|
2004-11-04 03:57:49 +08:00
|
|
|
following HDF5 DLLs will be copied to the system directory.
|
|
|
|
|
|
|
|
hdf5\proj\hdf5dll\release\hdf5dll.dll
|
|
|
|
hdf5\proj\hdf5dll\debug\hdf5ddll.dll
|
|
|
|
hdf5\test\libtestD\release\libtestD.dll
|
|
|
|
hdf5\test\libtestD\debug\libtestDd.dll
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
1. HDF5 library testing
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
cd into the hdf5\test directory.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
(1) basic tests
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Go to a) b) c) or d) to test your chosen version
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
a) release static version
|
2007-04-14 23:46:08 +08:00
|
|
|
type:
|
|
|
|
hdf5test release >"Your output filename"
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
b) release dll version
|
|
|
|
type:
|
2007-02-27 04:43:21 +08:00
|
|
|
hdf5test release dll >"Your output filename"
|
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
c) debug static version
|
2007-04-14 23:46:08 +08:00
|
|
|
type:
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5test debug >"Your output filename"
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
d) debug dll version
|
|
|
|
type:
|
|
|
|
hdf5test debug dll >"Your output filename"
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
(2) timing tests
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Go to a) b) c) or d) to test your chosen version
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
a) release static version
|
2007-04-14 23:46:08 +08:00
|
|
|
type:
|
|
|
|
hdf5timingtest release >"Your output filename"
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
b) release dll version
|
|
|
|
type:
|
|
|
|
hdf5timingtest release dll >"Your output filename"
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
c) debug static version
|
2007-04-14 23:46:08 +08:00
|
|
|
type:
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5timingtest debug >"Your output filename"
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
d) debug dll version
|
|
|
|
type:
|
|
|
|
hdf5timingtest debug dll >"Your output filename"
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Use Notepad or WordPad to check results. You should
|
2004-11-04 03:57:49 +08:00
|
|
|
not find any FAILED marks in your output files.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
2. HDF5 tools testing
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
To test HDF5 tools, cd back into hdf5 directory and then cd into
|
2004-11-04 03:57:49 +08:00
|
|
|
tools directory(c:\MyHDFstuff\hdf5\tools). The HDF5 tools testing
|
|
|
|
results are saved into output files in tools directory by the
|
|
|
|
testhdf5tools.bat as described below.
|
|
|
|
|
|
|
|
Go to a) b) c) or d) to test your chosen version
|
|
|
|
|
|
|
|
a) release static version
|
2007-04-14 23:46:08 +08:00
|
|
|
type:
|
2004-11-04 03:57:49 +08:00
|
|
|
testhdf5tools release
|
2007-04-14 23:46:08 +08:00
|
|
|
output file: toolstest_release.txt
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
b) release dll version
|
|
|
|
type:
|
|
|
|
testhdf5tools release dll
|
2007-04-14 23:46:08 +08:00
|
|
|
output file: toolstest_releasedll.txt
|
2007-02-27 04:43:21 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
c) debug static version
|
2007-04-14 23:46:08 +08:00
|
|
|
type:
|
2004-11-04 03:57:49 +08:00
|
|
|
testhdf5tools debug
|
2007-04-14 23:46:08 +08:00
|
|
|
output file: toolstest_debug.txt
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
d) debug dll version
|
|
|
|
type:
|
|
|
|
testhdf5tools debug dll
|
2007-04-14 23:46:08 +08:00
|
|
|
output file: toolstest_debugdll.txt
|
|
|
|
|
|
|
|
Use Notepad or WordPad to check results. You should
|
2004-11-04 03:57:49 +08:00
|
|
|
not find any FAILED marks in your output files.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-02-10 07:33:38 +08:00
|
|
|
3. HDF5 C++ library test
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +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
|
|
|
|
2005-06-17 04:35:20 +08:00
|
|
|
DLLs listed below should be placed into the Windows system
|
2007-04-14 23:46:08 +08:00
|
|
|
directory. A batch file named install_cppdll.bat is included in
|
|
|
|
c:\MyHDFstuff\hdf5 directory. Run this batch file and the
|
2004-11-04 03:57:49 +08:00
|
|
|
following HDF5 C++ DLLs will be copied to the system directory.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5\proj\hdf5_cppdll\release\hdf5_cppdll.dll
|
|
|
|
hdf5\proj\hdf5_cppdll\debug\hdf5_cppddll.dll
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Run hdf5cpptest.bat in the hdf5\c++\test directory at the
|
2004-11-04 03:57:49 +08:00
|
|
|
command prompt as below:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5cpptest release >"Your output filename"
|
|
|
|
hdf5cpptest release dll >"Your output filename"
|
|
|
|
hdf5cpptest debug >"Your output filename"
|
|
|
|
hdf5cpptest debug dll >"Your output filename"
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Use Notepad or WordPad to check results. You should
|
2004-11-04 03:57:49 +08:00
|
|
|
not find any FAILED marks in your output files.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-02-10 07:33:38 +08:00
|
|
|
4. HDF5 Fortran library test
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Skip this step UNLESS you have built HDF5 Fortran libraries
|
2004-11-04 03:57:49 +08:00
|
|
|
and want to test them.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-17 04:35:20 +08:00
|
|
|
DLLs listed below should be placed into the Windows system
|
2007-04-14 23:46:08 +08:00
|
|
|
directory. A batch file named install_f90dll.bat is included in
|
|
|
|
c:\MyHDFstuff\hdf5 directory. Run this batch file and the
|
2004-11-04 03:57:49 +08:00
|
|
|
following HDF5 Fortran DLLs will be copied to the system
|
|
|
|
directory.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
hdf5\proj\hdf5_f90cstubdll\release\hdf5_f90cstubdll.dll
|
|
|
|
hdf5\proj\hdf5_f90cstubdll\debug\hdf5_f90cstubddll.dll
|
|
|
|
hdf5\proj\hdf5_fortrandll\release\hdf5_fortrandll.dll
|
|
|
|
hdf5\proj\hdf5_fortrandll\debug\hdf5_fortranddll.dll
|
2004-11-05 10:47:58 +08:00
|
|
|
hdf5\fortran\test\libtest_cstubdll\release\libtest_cstubdll.dll
|
|
|
|
hdf5\fortran\test\libtest_cstubdll\debug\libtest_cstubddll.dll
|
|
|
|
hdf5\fortran\test\libtest_fortrandll\release\libtest_fortrandll.dll
|
|
|
|
hdf5\fortran\test\libtest_fortrandll\debug\libtest_fortranddll.dll
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
Run testhdf5_fortran.bat at the command prompt as below:
|
|
|
|
|
|
|
|
testhdf5_fortran release >"Your output filename"
|
|
|
|
testhdf5_fortran release dll >"Your output filename"
|
|
|
|
testhdf5_fortran debug >"Your output filename"
|
|
|
|
testhdf5_fortran debug dll >"Your output filename"
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Use Notepad or WordPad to check results. You should
|
2004-11-04 03:57:49 +08:00
|
|
|
not find any FAILED marks in your output files.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
5. HDF5 High-Level library test
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Skip this step UNLESS you have built HDF5 High-Level libraries
|
2005-06-11 03:04:33 +08:00
|
|
|
and want to test them.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
DLLs listed below should be placed into the Windows system
|
2007-04-14 23:46:08 +08:00
|
|
|
directory. A batch file named install_hldll.bat is included in
|
|
|
|
c:\MyHDFstuff\hdf5 directory. Run this batch file and the
|
2005-07-29 06:45:03 +08:00
|
|
|
following HDF5 high level DLLs will be copied to the system
|
|
|
|
directory.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hldll\Release\hdf5_hldll.dll
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hldll\Debug\hdf5_hldlld.dll
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Run test_hdf5_hl.bat in the hdf5\hl\test directory at the
|
2005-06-11 03:04:33 +08:00
|
|
|
command prompt as below:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
test_hdf5_hl release >"Your output filename"
|
|
|
|
test_hdf5_hl release dll >"Your output filename"
|
|
|
|
test_hdf5_hl debug >"Your output filename"
|
|
|
|
test_hdf5_hl debug dll >"Your output filename"
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Use Notepad or WordPad to check results. You should
|
2005-06-11 03:04:33 +08:00
|
|
|
not find any FAILED marks in your output files.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
6 HDF5 High-Level C++ library test
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
Skip this step UNLESS you have built HDF5 High-Level C++
|
|
|
|
libraries and want to test them.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
DLLs listed below should be placed into the Windows system
|
2007-04-14 23:46:08 +08:00
|
|
|
directory. A batch file named install_hlcppdll.bat is included in
|
|
|
|
c:\MyHDFstuff\hdf5 directory. Run this batch file and the
|
2005-07-29 06:45:03 +08:00
|
|
|
following HDF5 high level c++ DLLs will be copied to the system
|
|
|
|
directory.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hlcppdll\Release\hdf5_hlcppdll.dll
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hlcppdll\Debug\hdf5_hlcppdlld.dll
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
Run test_hdf5_hl_cpp.bat in the hdf5\hl\c++\test directory at
|
|
|
|
the command prompt as below:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
test_hdf5_hl_cpp release >"Your output filename"
|
|
|
|
test_hdf5_hl_cpp release dll >"Your output filename"
|
|
|
|
test_hdf5_hl_cpp debug >"Your output filename"
|
|
|
|
test_hdf5_hl_cpp debug dll >"Your output filename"
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Use Notepad or WordPad to check results. You should
|
2005-06-11 03:04:33 +08:00
|
|
|
not find any FAILED marks in your output files.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
7. HDF5 High-Level Fortran library test
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
Skip this step UNLESS you have built HDF5 High-Level Fortran
|
|
|
|
libraries and want to test them.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
DLLs listed below should be placed into the Windows system
|
2007-04-14 23:46:08 +08:00
|
|
|
directory. A batch file named install_hlf90dll.bat is included in
|
|
|
|
c:\MyHDFstuff\hdf5 directory. Run this batch file and the
|
2005-07-29 06:45:03 +08:00
|
|
|
following HDF5 high level fortran DLLs will be copied to the system
|
|
|
|
directory.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-02-27 04:43:21 +08:00
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hl_f90cstubdll\Release\hdf5_hl_f90cstubdll.dll
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hl_f90cstubdll\Debug\hdf5_hl_f90cstubdlld.dll
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hlfortrandll\Release\hdf5_hlfortrandll.dll
|
|
|
|
c:\MyHDFstuff\hdf5\proj\hdf5_hlfortrandll\Debug\hdf5_hlfortrandlld.dll
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
Run test_hdf5_hl_fortran.bat in the hdf5\hl\fortran\test directory at
|
|
|
|
the command prompt as below:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
test_hdf5_hl_fortran release >>"Your output filename"
|
|
|
|
test_hdf5_hl_fortran release dll >>"Your output filename"
|
|
|
|
test_hdf5_hl_fortran debug >>"Your output filename"
|
|
|
|
test_hdf5_hl_fortran debug dll >>"Your output filename"
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Use Notepad or WordPad to check results. You should
|
2005-07-29 06:45:03 +08:00
|
|
|
not find any FAILED marks in your output files.
|
2005-06-11 03:04:33 +08:00
|
|
|
|
|
|
|
STEP 3: Installing HDF5 Libraries
|
2004-11-04 03:57:49 +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
|
2007-04-14 23:46:08 +08:00
|
|
|
if they have been built in step I or Section VII, 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.
|
|
|
|
|
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
|
|
|
========================================================================
|
|
|
|
Section I: How To Build Examples (Optional)
|
|
|
|
========================================================================
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Simple examples have been provided for users to test HDF5
|
2005-12-21 04:22:45 +08:00
|
|
|
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:
|
2004-11-04 03:57:49 +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-04-14 23:46:08 +08:00
|
|
|
2) To build HDF5 Fortran or HL Fortran examples, please see
|
|
|
|
Section VII, Step 3.
|
|
|
|
|
|
|
|
3) To build HDF5 High Level C examples, HDF5 High level library
|
2005-07-29 06:45:03 +08:00
|
|
|
must have been built in step I.
|
2001-02-03 03:38:13 +08:00
|
|
|
|
2007-04-14 23:46:08 +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
|
2004-11-04 03:57:49 +08:00
|
|
|
examples will fail if they are linked with HDF5 binary
|
|
|
|
distribution, which only includes the release versions of
|
2007-04-14 23:46:08 +08:00
|
|
|
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
|
|
|
----------------------------------
|
2004-11-04 03:57:49 +08:00
|
|
|
1. Invoke Microsoft Visual C++, go to "File" and select
|
2007-04-14 23:46:08 +08:00
|
|
|
the "Open Workspace" option.
|
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Then open the workspace
|
2005-04-06 03:55:20 +08:00
|
|
|
c:\MyHDFstuff\hdf5\windows\examples\allexamples\allexamples.dsw.
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
2. Select "Build", then Select "Set Active Configuration".
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2005-04-06 03:55:20 +08:00
|
|
|
2.1 To build debug versions of C examples.
|
2005-07-29 06:45:03 +08:00
|
|
|
In "Project configurations", select "allexamples -- Win32 Debug",
|
2007-02-27 04:43:21 +08:00
|
|
|
select "ok". Select "Build" -> "Build" or "Rebuild All" 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-02-27 04:43:21 +08:00
|
|
|
In "Project configurations", select "allexamples -- Win32 Release",
|
|
|
|
select "ok". Select "Build" -> "Build" or "Rebuild All" to
|
|
|
|
build release version of project "allexamples".
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
When the debug build or release build is done, there should be the
|
2005-07-29 06:45:03 +08:00
|
|
|
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-04-14 23:46:08 +08:00
|
|
|
3. Invoke a command prompt window and run the batch file
|
2004-11-04 03:57:49 +08:00
|
|
|
InstallExamples.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,
|
2004-11-04 03:57:49 +08:00
|
|
|
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
|
|
|
|
examples should be built before this step is done.
|
|
|
|
|
|
|
|
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
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Invoke a command prompt window and run testExamples 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
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
1. Invoke Microsoft Visual C++ 6.0, choose "File" and select
|
2007-04-14 23:46:08 +08:00
|
|
|
the "Open Workspace" option.
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Then open the workspace
|
2005-04-06 03:55:20 +08:00
|
|
|
c:\myHDFstuff\hdf5\windows\c++\examples\allcppexamples\allcppexamples.dsw.
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
2. Select "Build", then Select "Set Active Configuration".
|
1999-08-03 03:51:13 +08:00
|
|
|
|
2005-04-06 03:55:20 +08:00
|
|
|
2.1 To build debug versions of C++ examples.
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2005-04-06 03:55:20 +08:00
|
|
|
In "Project configurations", select "allcppexamples -- Win32 Debug",
|
2005-06-11 03:04:33 +08:00
|
|
|
select "ok". Select "Build" -> "Build" or "Rebuild All" to
|
2005-04-06 03:55:20 +08:00
|
|
|
build debug version of project "allcppexamples".
|
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.
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2005-04-06 03:55:20 +08:00
|
|
|
In "Project configurations", select "allcppexamples -- Win32 Release",
|
2007-02-27 04:43:21 +08:00
|
|
|
select "ok". Select "Build" -> "Build" or "Rebuild All" to
|
|
|
|
build release version of project "allcppexamples".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
When the debug build or release build is done, there should be the
|
2005-06-11 03:04:33 +08:00
|
|
|
following subdirectories in c:\MyHDFstuff\hdf5\c++\examples\
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
chunkstest
|
|
|
|
chunkstestdll
|
2007-04-14 23:46:08 +08:00
|
|
|
compoundtest
|
|
|
|
compoundtestdll
|
|
|
|
createtest
|
|
|
|
createtestdll
|
|
|
|
extend_dstest
|
|
|
|
extend_dstestdll
|
|
|
|
h5grouptest
|
|
|
|
h5grouptestdll
|
|
|
|
readdatatest
|
|
|
|
readdatatestdll
|
|
|
|
writedatatest
|
|
|
|
writedatatestdll
|
|
|
|
|
|
|
|
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,
|
2004-11-04 03:57:49 +08:00
|
|
|
cppexamplesREL, cppexamplesRELDLL, cppexamplesDBG,
|
|
|
|
and cppexamplesDBGDLL, in the c:\MyHDFstuff\c++\examples
|
|
|
|
directory and places all the executables in it. Both the release
|
2007-04-14 23:46:08 +08:00
|
|
|
and debug versions of the examples should be built before this
|
2004-11-04 03:57:49 +08:00
|
|
|
step is done.
|
|
|
|
|
|
|
|
4. We provide a batch file named testcppExamples.bat in
|
|
|
|
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
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Invoke a command prompt window and run testcppExamples 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
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
1. Invoke Microsoft Visual C++, go to "File" and select
|
2007-04-14 23:46:08 +08:00
|
|
|
the "Open Workspace" option.
|
|
|
|
|
|
|
|
Then open the workspace
|
2005-12-21 04:22:45 +08:00
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\windows\hl\examples\allhlcexamples\allhlcexamples.dsw
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
2. Select "Build", then Select "Set Active Configuration".
|
2005-07-29 06:45:03 +08:00
|
|
|
|
|
|
|
2.1 To build debug versions of High Level C examples.
|
2007-04-14 23:46:08 +08:00
|
|
|
In "Project configurations", select
|
|
|
|
"allhlcexamples -- Win32 Debug", select "ok". Select
|
|
|
|
"Build" -> "Build" or "Rebuild All" to build debug version
|
2005-12-21 04:22:45 +08:00
|
|
|
of project "allhlcexamples".
|
2005-07-29 06:45:03 +08:00
|
|
|
|
|
|
|
2.2 To build release versions of C examples.
|
2007-04-14 23:46:08 +08:00
|
|
|
In "Project configurations", select
|
|
|
|
"allhlcexamples -- Win32 Release", select "ok". Select
|
2005-07-29 06:45:03 +08:00
|
|
|
"Build" -> "Build" or "Rebuild All" to build release version
|
2005-12-21 04:22:45 +08:00
|
|
|
of project "allhlcexamples".
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
When the debug build or release build is done, there should be the
|
2005-12-21 04:22:45 +08:00
|
|
|
following subdirectories in c:\MyHDFstuff\hdf5\hl\examples
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2005-12-21 04:22:45 +08:00
|
|
|
allhlcexamples
|
2005-07-29 06:45:03 +08:00
|
|
|
ex_images
|
|
|
|
ex_imagesdll
|
|
|
|
ex_lite
|
|
|
|
ex_litedll
|
|
|
|
ex_table
|
|
|
|
ex_tabledll
|
2006-03-17 02:45:01 +08:00
|
|
|
ex_ds
|
|
|
|
ex_dsdll
|
|
|
|
ex_packet
|
|
|
|
ex_packetdll
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
3. Invoke a command prompt window and run the batch file
|
2005-07-29 06:45:03 +08:00
|
|
|
Install_hlcexamples.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,
|
|
|
|
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
|
2005-08-02 06:30:53 +08:00
|
|
|
step is done.
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
4. We provide a batch file named test_hl_cexamples.bat in
|
|
|
|
c:\MyHDFstuff\hdf5\hl\examples directory for you to test
|
2005-08-02 06:30:53 +08:00
|
|
|
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-04-14 23:46:08 +08:00
|
|
|
When you run "test_hl_cexamples.bat" with each option, if you see the
|
2006-03-17 02:45:01 +08:00
|
|
|
following messages at the end:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2006-03-17 02:45:01 +08:00
|
|
|
All of the HL C Examples Passed!
|
|
|
|
|
|
|
|
You have built HL C examples successfully. Otherwise, HL C examples
|
|
|
|
Failed to build.
|
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
|
|
|
|
2004-11-04 03:57:49 +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.
|
|
|
|
|
|
|
|
To use HDF5 static library
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
2005-04-06 03:55:20 +08:00
|
|
|
c:\MyHDFstuff\hdf5\hdf5lib\release\include
|
2004-11-04 03:57:49 +08:00
|
|
|
c:\MyHDFstuff\hdf5\hdf5lib\release\lib
|
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
If you have installed HDF5 library in Section II, step 3.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
We assume that you will use Zlib and Szip compression with HDF5
|
|
|
|
library.
|
|
|
|
|
|
|
|
To specify these locations in the settings for your VC++ project,
|
|
|
|
you may choose one of the following two methods.
|
|
|
|
|
|
|
|
1) Method One
|
|
|
|
|
2005-02-10 07:33:38 +08:00
|
|
|
To insert the path that specifies HDF5 and Zlib, Szip header files:
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
1. Open your VC++ project in Microsoft Visual C++ and make sure it
|
|
|
|
is the active project.
|
|
|
|
|
|
|
|
2. Go to the Project menu and chose the "Settings" option.
|
|
|
|
|
|
|
|
3. Choose the build configuration you would like to modify in the
|
|
|
|
drop down menu labeled with "Settings For:"
|
|
|
|
|
|
|
|
4. Choose the C/C++ tab
|
|
|
|
|
|
|
|
5. Choose "Preprocessor" in the drop down menu labeled with
|
|
|
|
"Category:"
|
|
|
|
|
|
|
|
6. In a text-area labeled with "Additional include directories:",
|
2005-02-10 07:33:38 +08:00
|
|
|
add HDF5, Zlib, and Szip header files directories. For example:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-04-06 03:55:20 +08:00
|
|
|
c:\MyHDFstuff\hdf5\hdf5lib\release\include
|
2005-02-10 07:33:38 +08:00
|
|
|
c:\zlib122\include
|
|
|
|
c:\szip\include
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
Then click OK.
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
7. (Optional) To use HDF5 Fortran static library, the location of
|
2004-11-04 03:57:49 +08:00
|
|
|
Fortran module files should be specified by following
|
2007-04-14 23:46:08 +08:00
|
|
|
Project->Settings->Fortran->Preprocessor, and in a test-area
|
|
|
|
labeled with "INCLUDE and USE Paths:", add HDF5 Fortran module
|
2005-06-17 04:35:20 +08:00
|
|
|
files directories. For example:
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2005-04-06 03:55:20 +08:00
|
|
|
c:\MyHDFstuff\hdf5\hdf5lib\release\include
|
1999-11-20 01:06:55 +08:00
|
|
|
|
2003-07-15 01:40:33 +08:00
|
|
|
To link the HDF5 library with your application:
|
1999-11-20 01:06:55 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
1. Open your VC++ project in Microsoft Visual C++ and make sure it
|
|
|
|
is the active project.
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
2. Go to the Project menu and chose "Add to Project" option and
|
2004-11-04 03:57:49 +08:00
|
|
|
then "Files" option.
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
3. Change the "Files of type:" to "Library Files (.lib)"
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
4. Navigate through the directories until you find the location of
|
|
|
|
the hdf5.lib.
|
2000-12-09 02:08:23 +08:00
|
|
|
|
|
|
|
5. Select hdf5.lib and click OK.
|
1999-11-20 01:06:55 +08:00
|
|
|
|
2005-02-10 07:33:38 +08:00
|
|
|
6. repeat 1-5, to select zdll.lib and szlibdll.lib.
|
2004-12-18 00:13:45 +08:00
|
|
|
|
2005-02-10 07:33:38 +08:00
|
|
|
7. (optional) repeat 1-5, to select hdf5_cpp.lib to link with HDF5
|
2004-11-04 03:57:49 +08:00
|
|
|
C++ static library.
|
|
|
|
|
2005-02-10 07:33:38 +08:00
|
|
|
8. (optional) repeat 1-5, to select hdf5_fortran.lib to link with
|
2004-11-04 03:57:49 +08:00
|
|
|
HDF5 Fortran static library.
|
|
|
|
|
|
|
|
2) Method Two
|
2003-07-15 01:40:33 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
1. Go to Tools->Options->Directories,
|
|
|
|
|
2005-02-10 07:33:38 +08:00
|
|
|
2. Insert the correct HDF5, Zlib, Szip paths for both headers(include)
|
2007-04-14 23:46:08 +08:00
|
|
|
and libraries. For example,
|
|
|
|
|
2005-04-06 03:55:20 +08:00
|
|
|
c:\MyHDFstuff\hdf5\hdf5lib\release\include
|
|
|
|
c:\MyHDFstuff\hdf5\hdf5lib\release\lib
|
2005-02-10 07:33:38 +08:00
|
|
|
c:\zlib122\include
|
|
|
|
c:\zlib122\lib
|
|
|
|
c:\szip\include
|
|
|
|
c:\szip\dll
|
2003-07-15 01:40:33 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
3. Go to the Project menu and choose the "Settings" option.
|
2003-07-15 01:40:33 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
4. Find the "link" option and "Input" category, insert
|
2005-02-10 07:33:38 +08:00
|
|
|
"zdll.lib, szlibdll.lib, hdf5.lib".
|
2004-12-18 00:13:45 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
5. (Optional) repeat 3-4, to insert "hdf5_cpp.lib" if you want to
|
2004-11-04 03:57:49 +08:00
|
|
|
use HDF5 C++ static library.
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
6. (Optional) repeat 3-4, to insert "hdf5_fortran.lib" if you want to
|
2005-02-10 07:33:38 +08:00
|
|
|
use HDF5 Fortran static library.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
7. (Optional)repeast 3-4, to insert "hdf5_hl.lib" if you want to use
|
|
|
|
HDF5 high leve static library.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
7. (Optional) repeat 3-4, to insert "hdf5_hl_cpp.lib" if you want to
|
2005-07-29 06:45:03 +08:00
|
|
|
use HDF5 high level C++ static library.
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
8. (Optional) repeat 3-4, to insert "hdf5_hl_fortran.lib" if you want to
|
2005-07-29 06:45:03 +08:00
|
|
|
use HDF5 high level Fortran static library.
|
2003-07-15 01:40:33 +08:00
|
|
|
|
1999-11-20 01:06:55 +08:00
|
|
|
|
|
|
|
To use the DLL:
|
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
1. Follow the steps for specifying the location of the header files
|
2000-12-09 02:08:23 +08:00
|
|
|
as shown above.
|
|
|
|
|
|
|
|
2. Follow the steps for linking the HDF5 library as shown above
|
|
|
|
except now link the export library that is created with the DLL.
|
2004-11-04 03:57:49 +08:00
|
|
|
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.
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
3. Place the DLL in a location that Windows will be able to locate
|
2003-03-04 00:17:07 +08:00
|
|
|
it. The searched path and order for DLL's is
|
2000-12-09 02:08:23 +08:00
|
|
|
|
|
|
|
a) The directory where the executable module for the current
|
|
|
|
process is located.
|
2007-04-14 23:46:08 +08:00
|
|
|
b) The current directory.
|
|
|
|
c} The Windows system directory. The GetSystemDirectory function
|
|
|
|
retrieves the path of this directory.
|
2000-12-09 02:08:23 +08:00
|
|
|
d) The Windows directory. The GetWindowsDirectory function
|
|
|
|
retrieves the path of this directory.
|
2004-11-04 03:57:49 +08:00
|
|
|
e) The directories listed in the PATH environment variable.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
4. To modify your own application settings, please DO FOLLOW the
|
2006-04-07 01:05:16 +08:00
|
|
|
"DLL Hints" at Section XI "HELPFUL POINTERS".
|
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
|
|
|
|
|
|
|
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.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
1. Disable Gzip compression
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
If you would like to remove Gzip compression from the HDF5
|
|
|
|
library, follow the steps below.
|
|
|
|
|
|
|
|
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
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
then save the file.
|
2007-02-27 04:43:21 +08:00
|
|
|
|
2004-11-04 03:57:49 +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
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
When you disable Gzip, you may get the following message
|
|
|
|
when building HDF5 libraries:
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
The following environment variables were not found
|
|
|
|
$(HDF5_EXT_ZLIB)
|
1999-09-09 04:03:49 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
This message can be ignored.
|
1999-09-09 04:03:49 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
2. Disable Szip compression (both encoder and decoder)
|
1999-09-09 04:03:49 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
If you would like to remove Szip compression from the HDF5
|
|
|
|
library, follow the steps below.
|
2000-12-09 02:08:23 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
2.1 Open the H5pubconf.h file from the c:\MyHDFstuff\hdf5\src
|
2005-06-11 03:04:33 +08:00
|
|
|
directory and remove(or comment out) the following two
|
2007-04-14 23:46:08 +08:00
|
|
|
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
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
then save the file.
|
2007-02-27 04:43:21 +08:00
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
2.2 Delete HDF5_EXT_SZIP environment variable if you have
|
|
|
|
set it in preconditions.
|
|
|
|
|
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-04-14 23:46:08 +08:00
|
|
|
When you disable Szip, you may get the following message
|
2004-11-04 03:57:49 +08:00
|
|
|
when building HDF5 libraries:
|
|
|
|
|
|
|
|
The following environment variables were not found
|
|
|
|
$(HDF5_EXT_SZIP)
|
|
|
|
|
|
|
|
This message can be ignored.
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Notes:
|
2003-08-09 01:14:28 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
To disable Gzip and Szip at the same time, just follow 1.1~1.2
|
2005-06-18 05:46:49 +08:00
|
|
|
and 2.1~2.2 and run-compile HDF5 library according to Section II.
|
2003-08-09 01:14:28 +08:00
|
|
|
|
2004-11-04 03:57:49 +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
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
Szip library is different if you want to disable Szip encoder.
|
|
|
|
Download szip_noencoder binaries from
|
2007-02-27 04:43:21 +08:00
|
|
|
ftp://ftp.hdfgroup.org/lib-external/szip/2.0/bin/windows.
|
2004-11-04 03:57:49 +08:00
|
|
|
The Szip library and header path should also be set up
|
|
|
|
accordingly (refer to precondition 6).
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-18 05:46:49 +08:00
|
|
|
3.2 Run-compile HDF5 library according to Section II.
|
2003-08-09 01:14:28 +08:00
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
========================================================================
|
2007-04-14 23:46:08 +08:00
|
|
|
Section VI: How to build HDF5 in Microsoft Visual Studio .Net 2003
|
2004-11-04 03:57:49 +08:00
|
|
|
========================================================================
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Preconditions:
|
|
|
|
|
2005-06-17 04:35:20 +08:00
|
|
|
a. Set up path for Microsoft Visual Studio .Net 2003 compiler
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-17 04:35:20 +08:00
|
|
|
Open "System" in Control Panel.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
On the "Advanced" tab, click "Environment Variables", click
|
|
|
|
"Path" in the "System variables" box, then click "Edit" and
|
|
|
|
add your Visual C++ .Net path (For example,
|
2005-06-17 04:35:20 +08:00
|
|
|
C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE)
|
2007-04-14 23:46:08 +08:00
|
|
|
into "Variable Value" and click "OK".
|
|
|
|
|
|
|
|
b. Set up path for external libraries and headers
|
|
|
|
|
|
|
|
Skip this part if you don't want to use ANY compression features
|
|
|
|
provided by HDF5. Please do read Section V.
|
|
|
|
|
|
|
|
You have to read this part even if you want to only use Zlib
|
|
|
|
or Szip. You also need to read Section V.
|
|
|
|
|
|
|
|
Invoke Microsoft Visual C++ .Net and go to "Tools" and select
|
2005-06-11 03:04:33 +08:00
|
|
|
"Options". In the left pane of "Option" window poped up,
|
|
|
|
choose and extend "Projects", Click on "VC++ Directories".
|
2007-04-14 23:46:08 +08:00
|
|
|
In the right pane, Find the box "Show directories for", choose
|
|
|
|
"Include files", if you can not find your Zlib and Szip
|
|
|
|
header path
|
|
|
|
(for example, c:\zlib122\include, c:\szip\include)
|
|
|
|
from the directory list, add the header path
|
|
|
|
(c:\zlib122\include, c:\szip\include) to the
|
|
|
|
included directories.
|
|
|
|
|
|
|
|
Find the box "Show directories for", choose "Library files",
|
|
|
|
If you cannot find your Zlib and Szip library path
|
|
|
|
(for example, c:\zlib122\lib, c:\szip\dll)
|
|
|
|
from the directory list, add the library path
|
|
|
|
(c:\zlib122\lib, c:\szip\dll) to the library directories.
|
2005-06-11 03:04:33 +08:00
|
|
|
|
|
|
|
1. Open all.dsw workspace
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Invoke Microsoft Visual C++ .Net 2003. From the main
|
|
|
|
menu, go to "File" and select "Open Solution". In
|
|
|
|
the "Open Solution" window, Change "Files of type" to
|
|
|
|
"All Project Files". Choose "all.dsw" under the directory
|
|
|
|
c:\MyHDFstuff\hdf5\windows\proj\all. In the pop up window,
|
|
|
|
choose "Yes To All" to convert all project files to Visual
|
|
|
|
C++ .Net project format.
|
|
|
|
|
|
|
|
2. Building HDF5 C and C++ Libraries
|
|
|
|
|
|
|
|
2.1 Disable project files not relevant to C and C++.
|
|
|
|
|
|
|
|
Go to "Build" and select "Configuration Manager". Choose "Release"
|
|
|
|
or "Debug" under "Active Solution Configuration"
|
|
|
|
|
|
|
|
Disable the following projects:
|
|
|
|
|
|
|
|
flush1_fortran
|
|
|
|
flush1_fortrandll
|
|
|
|
flush2_fortran
|
|
|
|
flush2_fortrandll
|
|
|
|
hdf5_f90cstub
|
|
|
|
hdf5_f90cstubdll
|
|
|
|
hdf5_fortran
|
|
|
|
hdf5_fortrandll
|
|
|
|
libtest_cstubdll
|
|
|
|
libtest_fortran
|
|
|
|
libtest_fortrandll
|
|
|
|
testhdf5_fortran
|
|
|
|
testhdf5_fortrandll
|
2005-07-29 06:45:03 +08:00
|
|
|
hdf5_hl_fortran
|
|
|
|
hdf5_hl_f90cstubdll
|
2007-04-14 23:46:08 +08:00
|
|
|
hdf5_hl_fortrandll
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_image_fortran
|
2007-04-14 23:46:08 +08:00
|
|
|
hl_test_image_fortrandll
|
|
|
|
hl_test_lite_fortran
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_lite_fortrandll
|
2007-04-14 23:46:08 +08:00
|
|
|
hl_test_table_fortran
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_table_fortrandll
|
2006-04-26 03:35:34 +08:00
|
|
|
ttsafedll
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Click on "OK",
|
|
|
|
|
|
|
|
2.2.1 Building HDF5 C and C++ Libraries
|
|
|
|
|
|
|
|
From the main menu, choose "Build"-> "Build" or
|
|
|
|
"Rebuild ALL" to build both release and debug version of HDF5
|
|
|
|
Libraries.
|
|
|
|
|
|
|
|
|
|
|
|
2.2.2 If you don't want to build HDF5 C++ Libraries,
|
|
|
|
Go to "Build" and select "Configuration Manager". Choose "Release"
|
|
|
|
or "Debug" under "Active Solution Configuration"
|
|
|
|
|
|
|
|
Disable the following projects:
|
|
|
|
|
|
|
|
dsets_cpp
|
|
|
|
dsets_cppdll
|
|
|
|
hdf5_cpp
|
|
|
|
hdf5_cppdll
|
|
|
|
testhdf5_cpp
|
|
|
|
testhdf5_cppdll
|
|
|
|
hdf5_hl_cpp
|
|
|
|
hdf5_hl_cppdll
|
|
|
|
hl_test_table_cpp
|
|
|
|
hl_test_table_cppdll
|
|
|
|
|
|
|
|
|
|
|
|
Click on "OK", From the main menu, choose "Build"-> "Build" or
|
|
|
|
"Rebuild ALL" to build both release and debug version of HDF5
|
|
|
|
Libraries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2.2.3 If you don't want to build HDF5 High-Level Libraries,
|
|
|
|
Go to "Build" and select "Configuration Manager". Choose "Release"
|
|
|
|
or "Debug" under "Active Solution Configuration"
|
|
|
|
|
|
|
|
Disable the following projects:
|
|
|
|
|
|
|
|
hdf5_hl
|
|
|
|
hdf5_hldll
|
|
|
|
hl_test_image
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_imagedll
|
2007-04-14 23:46:08 +08:00
|
|
|
hl_test_lite
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_litedll
|
2007-04-14 23:46:08 +08:00
|
|
|
hl_test_table
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_tabledll
|
2007-04-14 23:46:08 +08:00
|
|
|
hl_test_ds
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_dsdll
|
2007-04-14 23:46:08 +08:00
|
|
|
hl_test_packet
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_packetdll
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
Click on "OK", From the main menu, choose "Build"-> "Build" or
|
|
|
|
"Rebuild ALL" to build both release and debug version of HDF5
|
|
|
|
Libraries.
|
|
|
|
|
|
|
|
2.2.4 If you want to build HDF5 C++ libarty without High-Level
|
|
|
|
C++ Libraries, Go to "Build" and select "Configuration Manager".
|
|
|
|
Choose "Release" or "Debug" under "Active Solution Configuration"
|
|
|
|
|
|
|
|
Disable the following projects:
|
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
hdf5_hl_cpp
|
2007-04-14 23:46:08 +08:00
|
|
|
hdf5_hl_cppdll
|
|
|
|
hl_test_table_cpp
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_table_cppdll
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
Click on "OK", From the main menu, choose "Build"-> "Build" or
|
|
|
|
"Rebuild ALL" to build both release and debug version of HDF5
|
|
|
|
Libraries.
|
|
|
|
|
|
|
|
2.5 If you want to build HDF5 Fortran Libraries without High-Level
|
|
|
|
Fortran Libraries, Go to "Build" and select "Configuration Manager".
|
|
|
|
Choose "Release" or "Debug" under "Active Solution Configuration".
|
|
|
|
|
|
|
|
Disable the following projects:
|
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
hdf5_hl_fortran
|
|
|
|
hdf5_hl_f90cstubdll
|
2007-04-14 23:46:08 +08:00
|
|
|
hdf5_hl_fortrandll
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_image_fortran
|
2007-04-14 23:46:08 +08:00
|
|
|
hl_test_image_fortrandll
|
|
|
|
hl_test_lite_fortran
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_lite_fortrandll
|
2007-04-14 23:46:08 +08:00
|
|
|
hl_test_table_fortran
|
|
|
|
hl_test_table_fortrandll
|
|
|
|
ttsafedll
|
|
|
|
|
|
|
|
Click on "OK", From the main menu, choose "Build"-> "Build" or
|
2005-06-11 03:04:33 +08:00
|
|
|
"Rebuild ALL" to build both release and debug version of HDF5
|
|
|
|
Libraries.
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
3. Testing HDF5 Libraries and Tools.
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Go back to Section II, continue with STEP 2 (Testing HDF5
|
2005-06-11 03:04:33 +08:00
|
|
|
libraries and tools) to test HDF5 C and C++ Libraries.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
4. If you want to change some project setting, select the project and
|
2004-11-04 03:57:49 +08:00
|
|
|
right click the button to choose Properties; find the similar menu
|
2005-06-11 03:04:33 +08:00
|
|
|
there as in Microsoft Visual Studio 6.0.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-18 05:46:49 +08:00
|
|
|
NOTE: Please read Section V if you do not want to use compression
|
2005-06-17 04:35:20 +08:00
|
|
|
feature inside HDF5.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
========================================================================
|
|
|
|
Section VII: How to build HDF5 with Intel Fortran 9.1
|
|
|
|
========================================================================
|
|
|
|
Notes: 1. For Intel Compiler users, Intel fortran Compiler 9.1 is currently
|
|
|
|
supported-- please see below. Intel Compiler verion
|
|
|
|
7.x and 8.x are no longer supported, but documentation can
|
|
|
|
still be found on the web at
|
|
|
|
http://hdfgroup.org/windows/docs/hdf518/dep/Install_Windows_Dep_Intel.txt
|
|
|
|
|
|
|
|
2. The Compaq Fortran Compiler is no longer supported for HDF5 1.8.
|
|
|
|
|
|
|
|
3. Intel Fortran 9.1 works only under .Net 2003 or Visual Studio 2005
|
|
|
|
environments
|
|
|
|
|
|
|
|
4. For Visual Studio 2005 users, parallel builds should be disabled. To
|
|
|
|
do so: Go to Tools > 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.
|
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
Intel compilers use different Szip library from other compilers.
|
|
|
|
Szip source codes or binaries for Intel compiler can be downloaded
|
|
|
|
from the following address:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
ftp://ftp.hdfgroup.org/lib-external/szip/2.0/bin/windows.
|
|
|
|
|
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
|
|
|
|
|
|
|
Invoke Microsoft Visual C++ .Net 2003 or 2005. From the main
|
|
|
|
menu, Go to Tools > Options > Intel(R) Fortran.
|
|
|
|
In the right panel, make sure your "Selected Compiler" is Intel Fortran 9.1.
|
|
|
|
Click the right-most box for "Libraries",
|
|
|
|
Add Zlib and Szip Library Path (c:\zlib122\lib, c:\szip\dll for example)
|
|
|
|
Click rightmost box for "Includes",
|
|
|
|
Add Zlib and Szip header path (c:\zlib122\include c:\szip\include, for example).
|
|
|
|
Then click "OK".
|
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
1. Build with Intel Fortran Compiler 9.1 under MSVS C++ .Net 2003 / 2005 Environment
|
|
|
|
|
|
|
|
Note: This step will build HDF5 Static and DLL C and C++
|
|
|
|
Library using .Net 2003 or Visual Studio 2005 Compiler as well as
|
|
|
|
HDF5 Static and High Level Fortran Library using Intel
|
|
|
|
Fortran 9.1 Compiler.
|
|
|
|
|
|
|
|
|
|
|
|
1.1 Open all.dsw and Convert Project Files (.dsp) to Visual
|
|
|
|
C++ .Net Format (.vcproj)
|
|
|
|
|
|
|
|
Invoke Microsoft Visual C++ .Net 2003. From the main menu, go to
|
|
|
|
"File" and select "Open Solution". In the "Open Solution" window,
|
|
|
|
Change "Files of type" to "All Project Files". Choose "all.dsw"
|
|
|
|
under the directory c:\MyHDFstuff\hdf5\windows\proj\all. In the
|
|
|
|
pop up window, choose "Yes To All" to convert all project files
|
|
|
|
to Visual C++ .Net project format.
|
|
|
|
|
|
|
|
1.2 Extract Compaq Fortran Project Files
|
|
|
|
|
|
|
|
a. Select project "flush1_fortran" in the Solution Explorer
|
|
|
|
window. In the Project menu, select
|
|
|
|
"Extract Compaq Visual Fortran Project".
|
|
|
|
|
|
|
|
Do the same thing for the following project files, but for now, skip
|
|
|
|
the projects labelled "**SKIP**":
|
|
|
|
|
|
|
|
flush1_fortrandll
|
|
|
|
flush2_fortran
|
|
|
|
flush2_fortrandll
|
|
|
|
hdf5_fortran
|
|
|
|
hdf5_fortrandll
|
|
|
|
**SKIP** libtest_fortran
|
|
|
|
libtest_fortrandll
|
|
|
|
testhdf5_fortran
|
|
|
|
testhdf5_fortrandll
|
|
|
|
**SKIP** hdf5_hl_fortran
|
|
|
|
hdf5_hl_fortrandll
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_image_fortran
|
2007-04-14 23:46:08 +08:00
|
|
|
hl_test_image_fortrandll
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_lite_fortran
|
2007-04-14 23:46:08 +08:00
|
|
|
hl_test_lite_fortrandll
|
2005-07-29 06:45:03 +08:00
|
|
|
hl_test_table_fortran
|
2007-04-14 23:46:08 +08:00
|
|
|
hl_test_table_fortrandll
|
|
|
|
|
|
|
|
|
|
|
|
b. Select project "libtest_fortran" in the Solution
|
|
|
|
Explorer window. In the Project menu, select
|
|
|
|
"Extract Compaq Visual Fortran Project". Since Project
|
|
|
|
file "libtest_fortran" contain both C and Fortran code,
|
|
|
|
you will be asked to specify which project, either
|
|
|
|
Fortran or C/C++, will serve as the main project for
|
|
|
|
this mixed language projects. Choose
|
|
|
|
"The Intel Fortran project" as the the main project and
|
|
|
|
click "OK".
|
2006-04-12 04:22:56 +08:00
|
|
|
|
|
|
|
Do the same thing for hdf5_hl_fortran.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
1.3 Change project dependencies
|
|
|
|
|
|
|
|
|
|
|
|
To check the project dependencies:
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Right click the selected project, you should see "Project Dependencies" on the menu,
|
|
|
|
click "Project Dependencies", You should see a "Project Dependencies" panel, with
|
|
|
|
the selected project and the projects it depends on checked under "Depends on" list.
|
|
|
|
|
|
|
|
Make sure all intel fortran projects have their corrsponding dependencies as follows:
|
|
|
|
|
|
|
|
hdf5_fortran: hdf5, hdf5_f90cstub
|
|
|
|
|
|
|
|
hdf5_fortrandll: hdf5dll, hdf5_f90cstubdll
|
|
|
|
|
|
|
|
libtest_fortran: libtest, libtest_fotran_lib
|
|
|
|
|
|
|
|
libtest_fortrandll: libtest_cstubdll, libtestD
|
|
|
|
|
|
|
|
hdf5_hl_fortran: hdf5, hdf5_f90cstub,
|
|
|
|
hdf5_fortran, hdf5_hl,
|
|
|
|
hdf5_hl_fortran_lib
|
|
|
|
|
|
|
|
hdf5_hl_fortrandll: hdf5dll, hdf5_hldll,
|
|
|
|
hdf5_hl_f90cstubdll, hdf5_fortrandll,
|
|
|
|
hdf5_f90cstubdll
|
|
|
|
|
|
|
|
|
|
|
|
flush1_fortran: hdf5, hdf5_f90cstub,
|
|
|
|
hdf5_fortran, libtest,
|
|
|
|
libtest_fortran, libtest_fortran_lib
|
|
|
|
|
|
|
|
flush1_fortrandll: hdf5_f90cstubdll, hdf5_fortrandll,
|
|
|
|
hdf5dll, libtest_fortrandll
|
|
|
|
libtest_cstubdll, libtestD
|
|
|
|
|
|
|
|
flush2_fortran: hdf5, hdf5_f90cstub,
|
|
|
|
hdf5_fortran, libtest,
|
|
|
|
libtest_fortran, libtest_fortran_lib
|
|
|
|
|
|
|
|
flush2_fortrandll: hdf5_f90cstubdll, hdf5_fortrandll,
|
|
|
|
hdf5dll, libtest_fortrandll
|
|
|
|
libtest_cstubdll, libtestD
|
|
|
|
|
|
|
|
testhdf5_fortran: hdf5, hdf5_f90cstub,
|
|
|
|
hdf5_fortran, libtest,
|
|
|
|
libtest_fortran, libtest_fortran_lib
|
|
|
|
|
|
|
|
testhdf5_fortrandll: hdf5_f90cstubdll, hdf5_fortrandll,
|
|
|
|
hdf5dll, libtest_fortrandll
|
|
|
|
libtest_cstubdll, libtestD
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hl_test_image_fortran: hdf5, hdf5_f90cstub,
|
|
|
|
hdf5_fortran, hdf5_hl,
|
|
|
|
hdf5_hl_fortran, hdf5_hl_fortran_lib
|
|
|
|
|
|
|
|
hl_test_image_fortrandll: hdf5dll, hdf5_hldll,
|
|
|
|
hdf5_f90cstubdll, hdf5_fortrandll,
|
|
|
|
hdf5_hl_f90cstubdll, hdf5_hl_fortrandll
|
|
|
|
|
|
|
|
hl_test_lite_fortran: hdf5, hdf5_f90cstub,
|
|
|
|
hdf5_fortran, hdf5_hl,
|
|
|
|
hdf5_hl_fortran, hdf5_hl_fortran_lib
|
|
|
|
|
|
|
|
hl_test_lite_fortrandll: hdf5dll, hdf5_hldll,
|
|
|
|
hdf5_f90cstubdll, hdf5_fortrandll,
|
|
|
|
hdf5_hl_f90cstubdll, hdf5_hl_fortrandll
|
|
|
|
|
|
|
|
hl_test_table_fortran: hdf5, hdf5_f90cstub,
|
|
|
|
hdf5_fortran, hdf5_hl,
|
|
|
|
hdf5_hl_fortran, hdf5_hl_fortran_lib
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
hl_test_table_fortrandll:hdf5dll, hdf5_hldll,
|
|
|
|
hdf5_f90cstubdll, hdf5_fortrandll,
|
|
|
|
hdf5_hl_f90cstubdll, hdf5_hl_fortrandll
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4 Building HDF5 C/C++/Fortran Libraries and Tools
|
|
|
|
|
|
|
|
Select "Build", then Select "Configuration Manager".
|
|
|
|
|
|
|
|
Select "Debug" or "Release"
|
|
|
|
|
|
|
|
Disable ttsafedll
|
|
|
|
|
|
|
|
|
|
|
|
Select "ok". Select "Build" -> "Build" or "Rebuild All" to
|
|
|
|
build Debug or Release version of HDF5 C, C++, fortran
|
|
|
|
Library using Intel fortran 9.1 Compiler with .Net 2003 or .Net 2005.
|
|
|
|
|
|
|
|
|
|
|
|
2. Test HDF5 Static and High Level Fortran Library
|
|
|
|
|
|
|
|
We provide 2 options for users to test HDF5 libraries and tools.
|
|
|
|
|
|
|
|
Option 1: Automatic testings
|
|
|
|
|
|
|
|
HDF5 comes with various test suites, all of which can be tested
|
|
|
|
with hdf5check.bat batch file in c:\MyHDFstuff\hdf5 directory.
|
|
|
|
|
|
|
|
hdf5check batch file can used to test HDF libraries with Fortran with
|
|
|
|
the following options:
|
|
|
|
|
|
|
|
hdf5check enablefortran test HDF5 C/FORTRAN libraries and
|
|
|
|
tools
|
|
|
|
|
|
|
|
|
|
|
|
hdf5check enableall test HDF5 C/C++/FORTRAN libraries
|
|
|
|
and tools
|
|
|
|
To use this option, HDF5 C++ and
|
|
|
|
Fortran libraries must have been
|
|
|
|
built.
|
|
|
|
|
|
|
|
Invoke a command prompt window and run hdf5check with appropriate
|
|
|
|
option.
|
|
|
|
|
|
|
|
Test results are saved in two files:
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\check_results.txt
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\tests_results.txt.
|
|
|
|
|
|
|
|
In general, you only need to check tests_results.txt. If all the
|
|
|
|
tests passed, then you do not have to check check_results.txt.
|
|
|
|
If some tests failed, check check_results.txt can help you
|
|
|
|
figure out what was wrong.
|
|
|
|
|
|
|
|
|
|
|
|
Option 2: Step-by-step HDF5 libraries and tools testings
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
Go to directory c:\myHDFstuff\hdf5\fortran\test, Run batch file
|
|
|
|
testhdf5_fortran.bat with the following two options to test
|
|
|
|
fortran static library
|
|
|
|
|
|
|
|
testhdf5_fortran release >> "Your output file name"
|
|
|
|
testhdf5_fortran debug >> "Your output file name"
|
|
|
|
|
|
|
|
Check your output files, there should be no "failures" at all.
|
|
|
|
|
|
|
|
b. Test HDF5 High Level Fortran Library
|
|
|
|
|
|
|
|
Go to directory c:\myHDFstuff\hdf5\hl\fortran\test, Run batch file
|
|
|
|
testhdf5_fortran.bat with the following two options to test
|
|
|
|
fortran static library
|
|
|
|
|
|
|
|
test_hdf5_hl_fortran release >> "Your output file name"
|
|
|
|
test_hdf5_hl_fortran debug >> "Your output file name"
|
|
|
|
|
|
|
|
Check your output files, there should be no "failures" at all.
|
|
|
|
|
|
|
|
|
|
|
|
3. (Optional) Build HDF5 Fortan and HL Fortran Examples
|
|
|
|
|
|
|
|
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:
|
|
|
|
---------------------------------------
|
|
|
|
|
|
|
|
1. Invoke the Intel Fortran Compiler 9.1 or above under Microsoft
|
|
|
|
Visual Studio development environment, go to "File" and select
|
|
|
|
the "Open Workspace" option.
|
|
|
|
|
|
|
|
Then open the workspace
|
|
|
|
c:\MyHDFstuff\hdf5\windows\fortran\examples\allf90examples\allf90examples.dsw.
|
|
|
|
|
|
|
|
2. Select "Build", then Select "Set Active Configuration".
|
|
|
|
|
|
|
|
2.1 To build debug versions of Fortran examples.
|
|
|
|
|
|
|
|
In "Project configurations", select "allf90examples -- Win32 Debug",
|
|
|
|
select "ok". Select "Build" -> "Build" or "Rebuild All" to
|
|
|
|
build debug version of project "allf90examples".
|
|
|
|
|
|
|
|
2.2 To build release versions of Fortran examples.
|
|
|
|
|
|
|
|
In "Project configurations", select "allf90examples -- Win32 Release",
|
|
|
|
select "ok". Select "Build" -> "Build" or "Rebuild All" 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 window 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:
|
|
|
|
---------------------------------------------------
|
|
|
|
|
|
|
|
1. Invoke Compaq Visual Fortran 6.6c, open the workspace
|
|
|
|
|
|
|
|
c:\MyHDFstuff\hdf5\windows\hl\fortran\examples\ (continue next line)
|
|
|
|
allhlf90examples\allhlf90examples.dsw
|
|
|
|
|
|
|
|
2. Select "Build", then Select "Set Active Configuration".
|
|
|
|
|
|
|
|
2.1 To build debug versions of High Level Fortran examples.
|
|
|
|
In "Project configurations", select
|
|
|
|
"allhlf90examples -- Win32 Debug", select "ok". Select
|
|
|
|
"Build" -> "Build" or "Rebuild All" to build debug version
|
|
|
|
of project "allhlf90examples".
|
|
|
|
|
|
|
|
2.2 To build release versions of Fortran examples.
|
|
|
|
In "Project configurations", select
|
|
|
|
"allhlf90examples -- Win32 Release", select "ok". Select
|
|
|
|
"Build" -> "Build" or "Rebuild All" to build release version
|
|
|
|
of project "allhlf90examples".
|
|
|
|
|
|
|
|
When the debug build or release build is done, there should be the
|
|
|
|
following subdirectories in c:\MyHDFstuff\hdf5\hl\fortran\examples
|
|
|
|
|
|
|
|
ex_lite
|
|
|
|
ex_litedll
|
|
|
|
|
|
|
|
3. Invoke a command prompt window 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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
test_hl_f90examples.bat batch file has 4 options:
|
|
|
|
|
|
|
|
Options purpose
|
|
|
|
|
|
|
|
test_hl_f90examples release -- for release version
|
|
|
|
|
|
|
|
test_hl_f90examples release dll -- for release DLL version
|
|
|
|
|
|
|
|
test_hl_f90examples debug -- for debug version
|
|
|
|
|
|
|
|
test_hl_f90examples debug dll -- for debug DLL version
|
|
|
|
|
|
|
|
Invoke a command prompt window and run test_hl_f90examples with
|
|
|
|
appropriate options.
|
|
|
|
|
|
|
|
When you run "test_hl_f90examples release", the output will look
|
|
|
|
like:
|
|
|
|
|
|
|
|
release version of High Level Fortran examples PASSED
|
|
|
|
|
|
|
|
Similar messages should be generated with another three options
|
|
|
|
If the high level Fortran examples are built successfully.
|
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
========================================================================
|
2007-04-14 23:46:08 +08:00
|
|
|
Section VIII : How to build Multi-threaded version of HDF5 library
|
2005-07-29 06:45:03 +08:00
|
|
|
========================================================================
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Notes: Preconditions and Section I also apply to this section. Users who
|
|
|
|
want to build Multi-threaded version of HDF5 library, please read
|
2005-07-29 06:45:03 +08:00
|
|
|
those two sections carefully before go to the following part.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
1. Run batch file copy_hdf.bat.
|
|
|
|
|
|
|
|
Go to c:\MyHDFstuff\hdf5\windows and run copy_hdf.bat. This
|
2007-04-14 23:46:08 +08:00
|
|
|
process will copy all the necessary batch files,windows specific
|
|
|
|
source codes and text files saved under c:\MyHDFstuff\hdf5\windows
|
2005-07-29 06:45:03 +08:00
|
|
|
directory to the corresponding directories under hdf5.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
2. Invoke Microsoft Visual C++ compiler
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
Invoke Microsoft Visual C++. From the main menu, go to "File"
|
|
|
|
and select the "Open Workspace" option. Then open the
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\MyHDFstuff\hdf5\windows\proj\all\all.dsw workspace.
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
You should find windows project files listed as "all files,
|
|
|
|
big files etc." on the left.
|
2005-07-29 06:45:03 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
3. Please refer to Section II, Step 3(3) to set the dependencies of
|
2005-07-29 06:45:03 +08:00
|
|
|
project "all.dsp".
|
|
|
|
|
|
|
|
4. Change Project settings
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Choose "Project"->"Settings",
|
|
|
|
In the left pane of the window "Project Settings", from the drop
|
|
|
|
down box to the right of "Setting For:", choose "Win32 Release";
|
|
|
|
Highlight all of the static project file in the left lower pane
|
2005-07-29 06:45:03 +08:00
|
|
|
by pressing "ctrl" key while clicking the project file name.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
In the right pane of the "Project Settings" window, choose "C/C++".
|
2007-04-14 23:46:08 +08:00
|
|
|
From the drop down box to the right of "Category", choose
|
|
|
|
"Code Generation", under "Use run-time library:",
|
2005-07-29 06:45:03 +08:00
|
|
|
"Single-Threaded" should appear. If it is blank inside this
|
2007-04-14 23:46:08 +08:00
|
|
|
box, check if you highlight some dll project files. Change
|
2005-07-29 06:45:03 +08:00
|
|
|
"Single-Threaded" to "Multithreaded".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
In the left pane of the window "Project Settings", from the drop
|
|
|
|
down box to the right of "Setting For:", choose "Win32 Debug";
|
|
|
|
Highlight all of the static project file in the left lower pane
|
2005-07-29 06:45:03 +08:00
|
|
|
by pressing "ctrl" key while clicking the project file name.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
In the right pane of the "Project Settings" window, choose "C/C++".
|
2007-04-14 23:46:08 +08:00
|
|
|
From the drop down box to the right of "Category", choose
|
|
|
|
"Code Generation", under "Use run-time library:",
|
|
|
|
"Debug Single-Threaded" should appear. If it is blank inside this
|
2005-07-29 06:45:03 +08:00
|
|
|
box, check if you highlight some dll project files. Change
|
|
|
|
"Debug Single-Threaded" to "Debug Multithreaded"
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
5. Go back to Section II, Step 1 (4), continue to build and test HDF5 library.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
========================================================================
|
|
|
|
Section IX: Building and testing HDF5 snapshot release
|
2004-11-04 03:57:49 +08:00
|
|
|
========================================================================
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Note: This section is only for users who would like to build and test
|
2004-11-04 03:57:49 +08:00
|
|
|
HDF5 snapshot release.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
Step I: Generate H5Tinit.c using Microsoft Visual C++ 6.0
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
For users who would like to build and test HDF5 C and C++ library ONLY,
|
|
|
|
it is necessary to manually generate H5Tinit.c before going to
|
|
|
|
Section II step 1(2). Follow the steps below to generate H5Tinit.c
|
|
|
|
manually using Microsoft Visual C++ 6.0. We don't guarantee that
|
2005-06-17 04:35:20 +08:00
|
|
|
H5Tinit.c can be sucesessfully created by other compilers.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-18 05:46:49 +08:00
|
|
|
1. Previous step: Section II, step 1(1).
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
2. Extra steps:
|
2007-02-27 04:43:21 +08:00
|
|
|
1) Open c:\myHDFstuff\hdf5\windows\misc\typegen\typegen.dsw.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-02-27 04:43:21 +08:00
|
|
|
2) Build the project file.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-02-27 04:43:21 +08:00
|
|
|
3) Invoke command prompt and go to c:\myHDFstuff\hdf5\src.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-02-27 04:43:21 +08:00
|
|
|
4) type H5Tinit.exe >H5Tinit.c
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2007-02-27 04:43:21 +08:00
|
|
|
5) Go back to Section II, continue with step 1(2).
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Step II: Generate H5f90i_gen.h and H5fortran_types.f90 using Compaq
|
2005-06-11 03:04:33 +08:00
|
|
|
Visual Fortran 6.6c
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Note: The users who don't want to build fortran library can skip
|
2005-07-29 06:45:03 +08:00
|
|
|
this step.
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
For users who would like to build and test HDF5 with Fortran library.
|
2007-04-14 23:46:08 +08:00
|
|
|
It is necessary to manually generate the following three files with
|
2005-07-29 06:45:03 +08:00
|
|
|
the given compiler before go to Section II:
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Files to be Generated Compiler to be Used
|
2005-06-11 03:04:33 +08:00
|
|
|
|
|
|
|
H5f90i_gen.h Compaq Visual Fortran 6.6
|
|
|
|
H5fortran_types.f90 Compaq Visual Fortran 6.6
|
|
|
|
H5Tinit.c Visual C++ 6.0
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
We don't guarantee that these three files can be created successfully
|
2005-07-29 06:45:03 +08:00
|
|
|
by other compilers.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-17 04:35:20 +08:00
|
|
|
1) Previous step: Section II, step 1(1)
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2005-07-29 06:45:03 +08:00
|
|
|
2) Follow the steps in Section X, Step I to generate H5Tinit.c.
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
3) Open and build H5fortran_detect_gen.dsw with Compaq Visual Fortran
|
|
|
|
|
|
|
|
Go to the following directory
|
2005-07-29 06:45:03 +08:00
|
|
|
c:\myHDFstuff\hdf5\windows\misc\H5fortran_detect_gen
|
2007-04-14 23:46:08 +08:00
|
|
|
Open H5fortran_detect_gen.dsw with Compaq Visual Fortran and
|
2005-07-29 06:45:03 +08:00
|
|
|
build the project file.
|
2005-06-11 03:04:33 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
4) Invoke command prompt and go to c:\myHDFstuff\hdf5\fortran\src.
|
|
|
|
Type
|
2005-06-11 03:04:33 +08:00
|
|
|
H5fortran_detect_gen.exe > H5fortran_detect.f90
|
|
|
|
|
|
|
|
5) Open and build fortrantypegen.dsw with Compaq Visual Fortran
|
2003-03-04 00:17:07 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Go to the following directory
|
2005-07-29 06:45:03 +08:00
|
|
|
c:\myHDFstuff\hdf5\windows\misc\fortrantypegen
|
2007-04-14 23:46:08 +08:00
|
|
|
Open fortrantypegen.dsw with Compaq Visual Fortran and
|
2005-07-29 06:45:03 +08:00
|
|
|
build the project file.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
6) Invoke command prompt and go to c:\myHDFstuff\hdf5\fortran\src.
|
2007-04-14 23:46:08 +08:00
|
|
|
Type
|
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
H5fortran_detect.exe > H5fort_type_defines.h
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
7) Open and build matchtypegen.dsw with Compaq Visual Fortran
|
2005-08-24 05:17:29 +08:00
|
|
|
Go to the following directory
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\myHDFstuff\hdf5\windows\misc\matchtypegen
|
2005-08-24 05:17:29 +08:00
|
|
|
Open matchtypegen.dsw and build the project file.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
8) Invoke command prompt and go to c:\myHDFstuff\hdf5\fortran\src.
|
2007-04-14 23:46:08 +08:00
|
|
|
Type
|
2005-06-11 03:04:33 +08:00
|
|
|
H5match_types.exe
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
This step will generate H5f90i_gen.h and H5fortran_types.f90
|
2005-08-24 05:17:29 +08:00
|
|
|
automatically.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
9) Go back to Section II, step 1(2) to build and test HDF5 Libraries
|
2005-08-24 05:17:29 +08:00
|
|
|
and Tools
|
2002-05-23 05:48:50 +08:00
|
|
|
|
2005-07-30 00:41:37 +08:00
|
|
|
|
2005-08-24 05:17:29 +08:00
|
|
|
========================================================================
|
|
|
|
Section X: How To Build And Test HDF5 With Thread-Safe Feature
|
|
|
|
========================================================================
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
All of the preconditions in "Preconditions" Section at the
|
2006-03-17 00:20:29 +08:00
|
|
|
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
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
pre1. Pthread-Win32 Installed
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Posix Threads for Windows is a open source free software. Users can
|
2005-08-24 05:17:29 +08:00
|
|
|
download it from http://sources.redhat.com/pthreads-win32/.
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
HDF5 release 1.8.0 supports Pthread-Win32 2.7.0 (2005-06-04) or
|
2005-08-24 05:17:29 +08:00
|
|
|
later. Since pthreadVC2.dll used by HDF5 1.8.0 is the release version
|
2007-04-14 23:46:08 +08:00
|
|
|
dll of pthread-win32, ONLY HDF5 1.8.0 release dll are supported and
|
|
|
|
tested on Windows XP.
|
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
pre2. Set Path for Pthread-Win32 header and library
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Invoke Microsoft Visual C++ 6.0, go to Tools->Options->Directories.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
From the drop-down box under "Show directories for:",
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Choose "Include files", add in the path to Pthread-Win32 header
|
2005-08-24 05:17:29 +08:00
|
|
|
file(For example: C:\PTHREADS_WIN32\INCLUDE).
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-08-24 05:17:29 +08:00
|
|
|
Choose "Library files", add in the path to Pthread-Winew library
|
|
|
|
(For example: C:\PTHREADS_WIN32\LIB).
|
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
pre3. Enable HDF5 Thread-safe Feature on Windows
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Go to directory c:\MYHDFstuff\hdf5\windows\src, open H5pubconf.h and
|
2006-03-17 00:20:29 +08:00
|
|
|
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-04-14 23:46:08 +08:00
|
|
|
pre4. Define Environment Variable(HDF5_EXT_PTHREAD) for PthreadVC2.lib
|
|
|
|
|
2005-08-24 05:17:29 +08:00
|
|
|
To define this environment variable:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
Click "Start" -> "Control Panel" -> "System" -> "Advanced" -> "Environment Variables".
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-08-24 05:17:29 +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
|
|
|
|
|
2005-08-24 05:17:29 +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
|
|
|
|
|
|
|
pthreadVC2.dll should be copied into the location that applications can find.
|
2006-03-17 00:20:29 +08:00
|
|
|
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.
|
|
|
|
|
|
|
|
Go to c:\MyHDFstuff\hdf5\windows and run copy_hdf.bat. This
|
2007-04-14 23:46:08 +08:00
|
|
|
process will copy all the necessary batch files,windows specific
|
|
|
|
source codes and text files saved under c:\MyHDFstuff\hdf5\windows
|
2005-08-24 05:17:29 +08:00
|
|
|
directory to the corresponding directories under hdf5.
|
|
|
|
|
|
|
|
|
|
|
|
1.2 Invoke Microsoft Visual C++ compiler
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-08-24 05:17:29 +08:00
|
|
|
Invoke Microsoft Visual C++. From the main menu, go to "File"
|
|
|
|
and select the "Open Workspace" option. Then open the
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\MyHDFstuff\hdf5\windows\proj\all\all.dsw workspace.
|
2005-08-24 05:17:29 +08:00
|
|
|
|
|
|
|
1.3 Add in Thread-safe Source Code for HDF5 Library
|
|
|
|
|
|
|
|
Expand project "hdf5dll", right click on "source" and choose
|
2007-04-14 23:46:08 +08:00
|
|
|
"Add Files to Folder...", browse to add in file "H5TS.c" under
|
2005-08-24 05:17:29 +08:00
|
|
|
directory c:\MYHDFSTUFF\hdf5\src.
|
|
|
|
|
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
|
|
|
|
2005-08-24 05:17:29 +08:00
|
|
|
Go to Project->Setting
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
On the left pane, choose "Win32 Release" to the right of
|
|
|
|
"Settings For:"
|
2005-08-24 05:17:29 +08:00
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
On the right pane, choose "Link", choose "Input" from the
|
2005-08-24 05:17:29 +08:00
|
|
|
drop-down box to the right of "Category:"
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-08-24 05:17:29 +08:00
|
|
|
Under "Object/library modules:", add in "$(HDF5_EXT_PTHREAD)"
|
|
|
|
(No quotation marks).
|
|
|
|
|
|
|
|
Click on "OK".
|
|
|
|
|
|
|
|
1.5 Set Project Active Configurations
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-08-24 05:17:29 +08:00
|
|
|
Go to Build->Set Active Configuration, choose "hdf5dll-Win32 Release"
|
|
|
|
under "Project configurations:", Click "OK".
|
|
|
|
|
|
|
|
1.6 Build HDF5 Release DLL with Thread-safe Feature
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Go to Build->Build hdf5dll.dll to build HDF5 Release DLL with
|
2005-08-24 05:17:29 +08:00
|
|
|
thread-safe feature.
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Warning messages can be ignored. But there should be no failures at
|
2005-08-24 05:17:29 +08:00
|
|
|
all.
|
|
|
|
|
|
|
|
2. Test Thread-safe Feature of HDF5 Release DLL
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-08-24 05:17:29 +08:00
|
|
|
2.1 Build Release Version of Project libtestD
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Go to Build->Set Active Configuration, choose
|
2005-08-24 05:17:29 +08:00
|
|
|
"libtestD-Win32 Release" under "Project configurations:", Click "OK".
|
|
|
|
|
|
|
|
Go to Build->Build libtestD.dll to build release version of Project
|
|
|
|
libtestD.
|
|
|
|
|
|
|
|
2.2 Build Release Version of Project ttsafedll
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Go to Build->Set Active Configuration, choose
|
2005-08-24 05:17:29 +08:00
|
|
|
"ttsafedll-Win32 Release" under "Project configurations:", Click "OK".
|
|
|
|
|
|
|
|
Go to Build->Build ttsafedll.exe to build release version of Project
|
|
|
|
ttsafedll.exe.
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
2.3 Install hdf5dll.dll
|
|
|
|
|
|
|
|
Invoke a comand prompt, change directory to c:\MYHDFSTUFF\hdf5, run
|
2005-08-24 05:17:29 +08:00
|
|
|
batch file install_dll.bat to copy
|
2007-04-14 23:46:08 +08:00
|
|
|
c:\MYHDFSTUFF\hdf5\proj\hdf5dll\release\hdf5dll.dll into system
|
2005-08-24 05:17:29 +08:00
|
|
|
directory.
|
|
|
|
|
|
|
|
2.4 Test Thread-safe Feature of HDF5 Release DLL
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Set project file ttsafedll.dsp as the active project file if it is
|
|
|
|
not. Go to Build->Execute ttsafedll.exe, the following is the
|
2005-08-24 05:17:29 +08:00
|
|
|
test messages users should get:
|
|
|
|
|
|
|
|
For help use: ttsafedll.exe -help
|
|
|
|
Linked with hdf5 version 1.7 release 51
|
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
|
|
|
|
2005-08-24 05:17:29 +08:00
|
|
|
Users who got the same messages as above have successfully built the
|
|
|
|
release version of hdf5dll.dll.
|
|
|
|
|
|
|
|
3. Build, Test and Install HDF5 Library and Tools
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
Go back to Section II, Step I(2) to Build, test and install HDF5
|
2005-08-24 05:17:29 +08:00
|
|
|
libary and tools.
|
2005-07-30 00:41:37 +08:00
|
|
|
========================================================================
|
2007-01-13 02:15:32 +08:00
|
|
|
Section XI: How to build HDF5 in Visual studio 2005 on windows 32-bit and 64-bit platform
|
2006-10-07 00:19:14 +08:00
|
|
|
========================================================================
|
|
|
|
The building procedure is almost the same as building HDF5 on .Net 2003.
|
2007-04-14 23:46:08 +08:00
|
|
|
For 64-bit, currently we only support HDF5 as an 32-bit application and you may need to
|
2007-01-13 02:15:32 +08:00
|
|
|
pay attention to the following reminders:
|
2006-10-07 00:19:14 +08:00
|
|
|
1) To use zlib or szlib compression packages:
|
|
|
|
Use zlib 1.2.2 DLL provided at
|
2007-02-27 04:43:21 +08:00
|
|
|
ftp://ftp.hdfgroup.org/lib-external/zlib/1.2/bin/zlib122-windows.tar.gz
|
2006-10-07 00:19:14 +08:00
|
|
|
Use szlib 2.0 DLL provided at
|
2007-02-27 04:43:21 +08:00
|
|
|
ftp://ftp.hdfgroup.org/lib-external/szip/2.0/bin/windows/xp-net
|
2007-04-14 23:46:08 +08:00
|
|
|
2) Make sure that WIN32 macro is set at visual studio 2005.
|
2006-10-07 00:19:14 +08:00
|
|
|
3) You may use _CRT_SECURE_NO_DEPRECATE to disable the warnings.
|
|
|
|
Please refer to Section VI: How to build HDF5 in Visual Studio .Net 2003.
|
2007-04-14 23:46:08 +08:00
|
|
|
Please also note that the example workspace may not work properly. You may need to reset hdf5
|
2007-01-13 02:15:32 +08:00
|
|
|
library path.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2006-10-07 00:19:14 +08:00
|
|
|
========================================================================
|
|
|
|
Section XII: Misc.
|
2004-11-04 03:57:49 +08:00
|
|
|
========================================================================
|
2003-04-30 03:28:40 +08:00
|
|
|
|
2007-02-27 04:43:21 +08:00
|
|
|
1. Drivers we support
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
The default driver on windows we support is sec2 driver. However, stdio
|
2007-04-14 23:46:08 +08:00
|
|
|
driver is also supported. If you want to use stdio driver in your
|
2005-06-11 03:04:33 +08:00
|
|
|
application, you may set environment variable HDF5_DRIVER to "stdio".
|
2003-04-30 03:28:40 +08:00
|
|
|
|
2005-06-11 03:04:33 +08:00
|
|
|
On windows XP, the following steps should be followed to set the
|
|
|
|
environment variable,
|
2003-04-30 03:28:40 +08:00
|
|
|
|
|
|
|
a) Go to Control panel and find "system",
|
|
|
|
b) Click "system" and choose "advanced",
|
|
|
|
c) Choose Environment Variables
|
|
|
|
d) Add new variable "HDF5_DRIVER"
|
|
|
|
e) set the "HDF5_DRIVER" to "stdio"
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
Reminder: if you don't want to use stdio driver, please remember to
|
|
|
|
delete the environment variable "HDF5_DRIVER" or change the variable
|
2005-06-11 03:04:33 +08:00
|
|
|
value to "sec2".
|
2003-04-30 03:28:40 +08:00
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
2. Helpful Pointers
|
|
|
|
|
|
|
|
Here are some helpful notes if you are not familiar with
|
|
|
|
using the Visual C++ Development Environment.
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
2.1 Project name and location issues:
|
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
If you must install all.dsw and all.dsp in another directory,
|
2007-04-14 23:46:08 +08:00
|
|
|
relative to hdf5 directory, you will be asked to locate the
|
2006-03-17 00:20:29 +08:00
|
|
|
sub-project files, when you open the project all.dsw.
|
|
|
|
|
|
|
|
If you want to rename all (the entire project), you will need to
|
|
|
|
modify two files all.dsw and all.dsp as text (contrary to the
|
|
|
|
explicit warnings in the files).
|
|
|
|
|
|
|
|
You can also modify all.dsw and all.dsp as text, to allow these 2
|
|
|
|
files to be installed in another directory.
|
|
|
|
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
2.2 Settings... details:
|
|
|
|
|
|
|
|
If you create your own project, the necessary settings can be read
|
|
|
|
from the all.dsp file(as text), or from the Project Settings in the
|
|
|
|
Developer Studio project settings dialog.
|
|
|
|
|
|
|
|
Project
|
|
|
|
Settings
|
|
|
|
C/C++
|
|
|
|
Category
|
|
|
|
Code Generation
|
|
|
|
Use run-time Library
|
|
|
|
These are all set to use Single-Threaded
|
|
|
|
|
|
|
|
2.3 DLL... hints:
|
2007-04-14 23:46:08 +08:00
|
|
|
|
|
|
|
If you want to use DLL versions of HDF5 library in your application,
|
|
|
|
you should
|
2006-03-17 00:20:29 +08:00
|
|
|
1) put HDF5 DLL into windows system directory
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
2) add HDF5 DLL export library into your project
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
3) Follow "Settings... details" into the last line:
|
2007-04-14 23:46:08 +08:00
|
|
|
change Single-Threaded into Multithreaded DLL or
|
2006-03-17 00:20:29 +08:00
|
|
|
Debug Multithreaded DLL
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
4) Follow "Settings.. details" into PreProcessor:
|
|
|
|
Project
|
|
|
|
Settings
|
|
|
|
C/C++
|
|
|
|
Category
|
|
|
|
PreProcessor
|
|
|
|
|
|
|
|
Find PreProcessor definations and Add _HDF5USEDLL_ at the
|
|
|
|
end of the PreProcessor definitions to use HDF5 C DLL.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
5)(optional) repeat 4), add HDF5CPP_USEDLL at the
|
|
|
|
end of the PreProcessor definitions to use HDF5 C++ DLL.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
6) (optional) repeat 4), add _HDF5USEHLDLL_ at the
|
2007-04-14 23:46:08 +08:00
|
|
|
end of the PreProcessor definitions to use HDF5 high level
|
2006-03-17 00:20:29 +08:00
|
|
|
DLL.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
7) (optional) repeat 4), add HDF5USE_HLCPPDLL at the
|
|
|
|
end of the PreProcessor definitions to use HDF5 high level C++
|
|
|
|
DLL.
|
2007-04-14 23:46:08 +08:00
|
|
|
|
2006-03-17 00:20:29 +08:00
|
|
|
8) (optional) Follow Project->Settings->Fortran->Category->
|
2007-04-14 23:46:08 +08:00
|
|
|
General->Predefined Preprocess or Symbols, and add
|
2006-03-17 00:20:29 +08:00
|
|
|
"HDF5F90_WINDOWS" to use HDF5 Fortran DLL.
|
|
|
|
|
2007-01-13 02:15:32 +08:00
|
|
|
3. Backward compatibility with 1.6
|
|
|
|
If you are going to use 1.6 APIs with 1.8 branch, you may do the following two things:
|
|
|
|
3.1 Uncomment out /*#define H5_WANT_H5_V1_6_COMPAT 1*/ inside h5pubconf.h under windows\src.
|
|
|
|
3.2 Set up an environment variable H5_WANT_H5_V1_6_COMPAT to 1, this will be used to test compatibility
|
|
|
|
of error APIs.
|
|
|
|
Remember to undo 1 and 2 after you test if you are not going to use 1.6 backward compatibility option.
|
2007-04-14 23:46:08 +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.
|