From 5768e60693deeb65b5aad0c2296715ac8e46965b Mon Sep 17 00:00:00 2001
From: Fang Guo Notes: The following instructions assume that the HDF5 source code package from
+ The following instructions assume that the HDF5 source code package from
HDF website (http://hdf.ncsa.uiuc.edu) is used. Please read CAREFULLY about the following preconditions and notes first. Installed Compaq Visual Fortran compiler(6.0 or higher version), or Intel Fortran
compiler if you want to build HDF5 Fortran libraries. Notes: By default, WinZip will convert the Unix end of line format when extracting .tar
+ 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. Please
uncheck the "TAR file smart CR/LF conversion" option in your WinZip to prevent the
conversion when extracting .tar file. To uncheck the "TAR file smart CR/LF conversion"
option: Invoke WinZip, go to "Options", select "Configuration..." Click the "Miscellaneous"
tab and uncheck "TAR file smart CR/LF conversion" option, then click OK. For example: c:\ (any drive) MyHDFstuff\ (any folder name) c:\ (any drive) MyHDFstuff\ (any folder name) 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". Currently, two external compression libraries Zlib and Szip can be used with
HDF5. HDF5 Build and Install Instructions for Windows XP (Full Version)
Table of Contents:
-Preconditions
-Section I : What do we build and
-install
-Section II : How to build and test HDF5
-libraries and tools
-Section III : How to build an application using
-the HDF5 library or DLL
-Section IV : Helpful pointers
-Section V : How to disable Gzip(Zlib)/Szip
-compression
-Section VI : How to build HDF5 in VS 7.0(.NET)
-Section VII : How to build HDF5 with INTEL Compiler
-Section VIII: How to build Multi-threaded version
-of HDF5 library
-Section IX : How to build and test HDF5 snapshot
-release
-Section X : Misc.
+
+
+
+
+ Preconditions
+
+
+
+ Section I
+
+
+ What do we build and install
+
+
+
+
+ Section II
+
+
+ How to build and test HDF5 libraries and tools
+
+
+
+
+ Section III
+
+
+ How to Build Examples (Optional)
+
+
+
+
+ Section IV
+
+
+ How to build an application using the HDF5
+library or DLL
+
+
+
+
+ Section V
+
+
+ How to disable Gzip(Zlib)/Szip compression
+
+
+
+
+ Section VI
+
+
+ How to build HDF5 in VS 7.0(.NET)
+
+
+
+
+ Section VII
+
+
+ How to build HDF5 with INTEL Compiler
+
+
+
+
+ Section VIII
+
+
+ How to build Multi-threaded version of HDF5
+library
+
+
+
+
+ Section IX
+
+
+ How to build and test HDF5 snapshot release
+
+
+
+
+ Section X
+
+
+ How to build HDF5 with Thread-Safe Feature
+
+
+
+
+ Section XI
+
+
+ Misc.
+
Preconditions
1. Installed Microsoft Visual C++ 6.0 or Intel C compiler and WinZip.
+1. Installed Microsoft Visual C++ 6.0 or Intel C compiler and WinZip.
+
+2. Set up a directory structure to unpack the library.
+2. Set up a directory structure to unpack the library.
3. Download the hdf5-1.8.x source code package
+
+
+
+
+
+
+
+
+
+
+
+
+3. Download the hdf5-1.8.x source code package
4. HDF5 provide options to do in-memory compress within HDF5 library.
+4. HDF5 provide options to do in-memory compress within HDF5 library.
@@ -204,44 +303,42 @@ HDF5.
Notes:
-Zlib 1.2.2 DLL library can also be downloaded from
-http://www.zlib.net/zlib122-dll.zip
+ 1. Zlib 1.2.2 DLL library can also be downloaded from http://www.zlib.net/zlib122-dll.zip
2. HDF5 uses Szip version 2.0 for compression and Szip compression software
+ 2. HDF5 uses Szip version 2.0 for compression and Szip compression software
is provided with HDF5 products in 1.8.0 release. To use Szip 2.0 library, you
- can download Szip source codes and binaries from
+ can download Szip source codes and binaries from
ftp://hdf.ncsa.uiuc.edu/lib-external/szip/2.0/bin/windows Notes: Please note that Szip is not a totally open-source free software. For licensing
+ 3. Please note that Szip is not a totally open-source free software. For licensing
issue of Szip, please check "Licensing terms" at
http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/index.html. Szip compression feature inside HDF5 is optional. Szip compression feature inside HDF5 is optional. In this section, Zlib and Szip compression packages are assumed to be used. Please
-read Section V as well as this section if
+read Section V as well as this section if
you do not want to use compression feature inside HDF5. To define these environment variables: Click "Start", click "Control
-Panel", and then double-click "System". On
-the "Advanced" tab, click "Environment
+ Click "Start" -> "Control
+Panel" -> "System" -> "Advanced"
+-> "Environment
Variables". 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. In the New Variable window,
-set "Variable name" as HDF5_EXT_ZLIB
-and "Variable value" as zdll.lib,
+set "Variable name" as HDF5_EXT_ZLIB "Variable value" as zdll.lib,
then click OK. Similarly, you can set: HDF5_EXT_SZIP environment variable as
@@ -249,21 +346,21 @@ then click OK. Notes: a. You might have to close and reopen running programs for the new environment
+ a. You might have to close and reopen running programs for the new environment
variable settings to take effect. b. c:\zlib122\zlib1.dll and
+ b. c:\zlib122\zlib1.dll and
c:\szip\dll\szlibdll.dll should be copied into the
location that the application can find, one suggestion is to use the
c:\WINDOWS\system. 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. 5. Define the following environment variables:
+5. Define the following environment variables:
-6. Set up path for external libraries and headers
+6. Set up path for external libraries and headers
Invoke Microsoft Visual C++ and go to "Tools" and select "Options", find "Directories";
Notes:
1. In release 1.8.0, all.zip is deprecated. Users +
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 all.dsw under hdf5/windows/proj/all to start building process.
2. To build HDF5 C++ and FORTRAN libraries, please read through this document. +
2. To build HDF5 C++ and FORTRAN libraries, please read through this document.
3. For users who want to quickly build HDF5 library or do not want to know +
3. For users who want to quickly build HDF5 library or do not want to know HDF5 building and installation details, please read INSATLL_Windows_Short.txt.
4. For users who would like to build and test HDF5 package from the command +
4. For users who would like to build and test HDF5 package from the command line, please read INSATLL_Windows_From_Command_Line.txt.
5. HDF4-related tools are not built and released with HDF5 library packages +
5. HDF4-related tools are not built and released with HDF5 library packages any more . To obtain HDF4-releated tools, please check
-http://hdf.ncsa.uiuc.edu/h4toh5/
-ftp://hdf.ncsa.uiuc.edu/HDF5/h4toh5/ +
+6. For DLL users, please do read and follow - "DLL Hints" Section IV.
+6. For DLL users, please do read and follow + "DLL Hints" Section IV.
7. For .NET users, please read Section
+ 7. For .NET users, please read Section
VI.
8. For users who would like to build, test and use HDF5 snapshot release, please - read Section VIII.
+8. For users who would like to build, test and use HDF5 snapshot release, please + read Section VIII.
9. For Intel Compiler users, Intel 7.x works with MSVS 6.0 and Intel 8.1 only +
9. For Intel Compiler users, Intel 7.x works with MSVS 6.0 and Intel 8.1 only works with MSVS .net 2003 when you build HDF5-1.8.x.
STEP 1: Building HDF5 libraries and tools
+STEP 2: Testing HDF5 libraries and tools
+STEP 3: Installing HDF5 Libraries
++
Invoke Microsoft Visual C++. From the main menu, go to "File" and select the "Open Workspace" option. Then open the c:\MyHDFstuff\hdf5\windows\proj\all\all.dsw @@ -471,7 +574,7 @@ need to read Section V.
"dependencies"; Select "all" in the "Select project to modify:" box, then enable all of the project files listed in - Section II, Step 1(3.1) and the + Section II, Step 1(3.1) and the following desired projects:Notes:
-Both debug and release versions must be built.
-Warning messages can be ignored.
-1. Both debug and release versions must be built.
+2. Warning messages can be ignored.
When the debug or release build is done the directories listed below will contain @@ -578,8 +675,8 @@ need to read Section V.
c:\MyHDFstuff\hdf5\test\libtest\debug
-c:\MyHDFstuff\hdf5\test\libtest\release
+ c:\MyHDFstuff\hdf5\test\libtest\debug + c:\MyHDFstuff\hdf5\test\libtest\releasec:\MyHDFstuff\hdf5\tools\toolslib\debug
-c:\MyHDFstuff\hdf5\tools\toolslib\release
+ c:\MyHDFstuff\hdf5\tools\toolslib\debug + c:\MyHDFstuff\hdf5\tools\toolslib\releasec:\MyHDFstuff\hdf5\tools\toolslibD\debug
-c:\MyHDFstuff\hdf5\tools\toolslibD\release
+ c:\MyHDFstuff\hdf5\tools\toolslibD\debug + c:\MyHDFstuff\hdf5\tools\toolslibD\releaseHDF5 libraries and tools should be tested to make sure that they were built correctly.
We provide 2 options for users to test HDF5 libraries and tools.
test HDF5 C/C++ libraries and tools.
To use this option, HDF5 C++ libraries must have been built in - step I.
+ step I.test HDF5 C/FORTRAN libraries and tools
To use this option, HDF5 Fortran libraries must have been built in - step I.
+ step I.You can also test HDF5 libraries and tools one by one. There are possibly four -versions of HDF5 libraries and tools testings. They are:
+You can also test HDF5 libraries and tools one by one. There are four +versions of HDF5 libraries and tools testing. They are:
release version
@@ -1072,13 +1169,12 @@ and the following HDF5 DLLs will be copied to the system directory.Notes:
-Use Notepad or WordPad to check results. You should not find any FAILED marks +
Use Notepad or WordPad to check results. You should not find any FAILED marks in your output files.
To test HDF5 tools, cd back into hdf5 directory - and then cd into tools directory (c:\MyHDFstuff\hdf5\tools). +
To test HDF5 tools, go to 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
@@ -1109,7 +1205,7 @@ and the following HDF5 DLLs will be copied to the system directory.Notes:
-Use Notepad or WordPad to check results. You should not find any FAILED marks +
Use Notepad or WordPad to check results. You should not find any FAILED marks in your output files.
Notes:
-Use Notepad or WordPad to check results. You should not find any FAILED marks +
Use Notepad or WordPad to check results. You should not find any FAILED marks in your output files.
Notes:
-Use Notepad or WordPad to check results. You should not find any FAILED marks +
Use Notepad or WordPad to check results. You should not find any FAILED marks in your output files.
Skip this step UNLESS you have built HDF5 High-Level libraries and want to test them.
DLLs listed below should be placed into the Windows system directory. A batch @@ -1190,7 +1286,7 @@ and the following HDF5 DLLs will be copied to the system directory.
Notes:
-Use Notepad or WordPad to check results. You should not find any FAILED marks +
Use Notepad or WordPad to check results. You should not find any FAILED marks in your output files.
Notes:
-Use Notepad or WordPad to check results. You should not find any FAILED marks +
Use Notepad or WordPad to check results. You should not find any FAILED marks in your output files.
Notes:
-Use Notepad or WordPad to check results. You should not find any FAILED marks +
Use Notepad or WordPad to check results. You should not find any FAILED marks in your output files.
-We provide a batch file for users to relocate all HDF5 libraries in one folder
(C++ and Fortran libraries will also be copied into this folder if they have been
built in step I). The file is called installhdf5lib.bat
@@ -1262,47 +1358,60 @@ file, you may see a folder called hdf5lib under c:\MyHDFs
You may also find the similar layout for the <debug>. Simple examples have been provided for users to test HDF5 C/C++/Fortran library
-and tools. This section include: How to build and test C examples How to build and test C++ examples How to build and test Fortran examples How to build and test High Level C examples How to build and test High Level Fortran examples Notes: 1. To build HDF5 C++ examples, HDF5 C++ library must have been built in step
+ 1. To build HDF5 C++ examples, HDF5 C++ library must have been built in
+ Section III, step
I. 2. To build HDF5 Fortran examples, HDF5 Fortran library must have been built
- in step I. 2. To build HDF5 Fortran examples, HDF5 Fortran library must have been built
+ in Section III, step I. 3. To build HDF5 High Level C examples, HDF5 High Level C library must have
- been built in step I. 3. To build HDF5 High Level C examples, HDF5 High Level C library must have
+ been built in Section III, step I. 4. By default, the debug versions of HDF5 C/C++/Fortran/HL examples are linked
+ 4. By default, the debug versions of HDF5 C/C++/Fortran/HL examples are linked
with the debug versions of HDF5 C/C++/Fortran/HL libraries and DLLs. The debug
- versions of HDF5 C/C++/Fortran/HL examples will fail if they are linked with HDF5
+ versions of HDF5 C/C++/Fortran/HL examples will fail if they are linked with HDF5
binary distribution, which only includes the release versions of HDF5 C/C++/Fortran
libraries and DLLs. 1. Invoke Microsoft Visual C++, go to "File"
+ 1. Open C Examples Workspace Invoke Microsoft Visual C++, go to "File"
and select the "Open Workspace" option. Then open the workspace c:\MyHDFstuff\hdf5\windows\examples\allexamples\allexamples.dsw. 2. Select "Build", then Select
+ 2. Compile/Build C Examples Select "Build", then Select
"Set Active Configuration". To build debug versions of C examples, In "Project configurations", select
"allexamples -- Win32 Debug", select
"ok". Select "Build"
@@ -1310,8 +1419,7 @@ and tools.STEP 4: Building HDF5 C/C++/Fortran and High Level
-C Examples (Optional)
-
+Section III: How to build Examples
+(Optional)
+
+
+
To build and test HDF5 C examples:
+ How to build and test C examples:
To build debug versions of C examples.
+
In "Project configurations", select +
To build release versions of C examples,
In "Project configurations", select "allexamples -- Win32 Release", select "ok". Select "Build" -> "Build" or "Rebuild All" to build release version of project @@ -1339,7 +1447,10 @@ and tools.
3. Invoke a command prompt window and run the batch file +
3. Install C Examples
+Invoke a command prompt window and run the batch file InstallExamples.bat which resides in the top level directory (c:\MyHDFstuff\hdf5). This file creates 4 new directories, examplesREL, examplesRELDLL, examplesDBG, @@ -1348,7 +1459,8 @@ and tools.
of the examples should be built before this step is done.4. We provide a batch file named testExamples.bat +
4.Test C examples
+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.
@@ -1367,20 +1479,22 @@ and tools.1. Invoke Microsoft Visual C++, go to "File" +
1. Open C++ Examples Workspace
+Invoke Microsoft Visual C++, go to "File" and select the "Open Workspace" option.
Then open the workspace
c:\myHDFstuff\hdf5\windows\c++\examples\allcppexamples\allcppexamples.dsw.
2. Select "Build", then Select +
2. Compile/Build C++ Examples
+Select "Build", then Select "Set Active Configuration".
To build debug versions of C++ examples,
In "Project configurations", select "allcppexamples -- Win32 Debug", select "ok". Select "Build" @@ -1388,7 +1502,7 @@ and tools.
"allcppexamples".To build release versions of C++ examples,
In "Project configurations", select "allcppexamples -- Win32 Release", select "ok". Select "Build" @@ -1416,7 +1530,10 @@ and tools.
3. Invoke a command prompt window and run the batch file +
3. Install C++ Examples
+Invoke a command prompt window and run the batch file InstallcppExamples.bat which resides in the top level directory (c:\MyHDFstuff\hdf5). This file creates 4 new directories, cppexamplesREL, cppexamplesRELDLL, @@ -1426,7 +1543,8 @@ and tools.
this step is done.4. We provide a batch file named testcppExamples.bat +
4. Test C++ Examples
+We provide a batch file named testcppExamples.bat in c:\MyHDFstuff\hdf5\c++\examples directory for you to test HDF5 C++ examples.
testcppExamples.bat batch file has 4 options:
@@ -1440,25 +1558,26 @@ and tools. 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. -
1. Invoke Compaq Visual Fortran or intel Fortran under Microsoft Visual studio +
1. Open Fortran Examples Workspace
+Invoke Compaq Visual Fortran or intel Fortran 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. Compile/Build Fortran Examples
+Select "Build", then Select "Set Active Configuration".
To build debug versions of Fortran examples,
In "Project configurations", select "allf90examples -- Win32 Debug", select "ok". Select "Build" @@ -1466,7 +1585,7 @@ and tools.
"allf90examples".To build release versions of Fortran examples,
In "Project configurations", select "allf90examples -- Win32 Release", select "ok". Select "Build" @@ -1509,7 +1628,10 @@ and tools.
3. Invoke a command prompt window and run the batch file +
3. Install Fortran Examples
+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, @@ -1519,25 +1641,30 @@ and tools.
this step is done.+
4. Test Fortran Examples
+The batch file is not available for the time being.
1. Invoke Microsoft Visual C++ 6.0, go to "File" +
1. Open HL C Examples Workspace.
+Invoke Microsoft Visual C++ 6.0, go to "File" and select the "Open Workspace" option.
Then open the workspace
c:\MyHDFstuff\hdf5\windows\hl\hl_c_examples\hl_c_examples.dsw.
2. Select "Build", then Select +
2. Compile/Build HL C Examples
+Select "Build", then Select "Set Active Configuration".
To build debug versions of High Level C examples,
In "Project configurations", select "hl_c_examples -- Win32 Debug", select "ok". Select "Build" @@ -1545,7 +1672,7 @@ and tools.
"hl_c_examples".To build release versions of High Level C examples,
In "Project configurations", select "hl_c_examples -- Win32 Release", select "ok". Select "Build" @@ -1566,7 +1693,10 @@ and tools.
3. Invoke a command prompt window and run the batch file +
3. Install HL C examples
+Invoke a command prompt window and run the batch file Install_hlcexamples.bat which resides in the top level directory (c:\MyHDFstuff\hdf5). This file creates 4 new directories, HLCexamplesRELEASE, HLCexamplesRELEASEDLL, @@ -1576,7 +1706,8 @@ and tools.
should be built before this step is done.4. We provide a batch file named test_hl_cexamples.bat +
4. Test HL C examples
+We provide a batch file named test_hl_cexamples.bat in c:\MyHDFstuff\hdf5\hl\hl_c_examples\ directory for you to test HDF5 High Level C examples.
test_hl_cexamples.bat batch file has 4 options:
@@ -1590,9 +1721,7 @@ and tools. with appropriate options. When you run "test_hl_cexamples release", the output will look like:Similar messages should be generated with the other three options if the - high level C examples are built successfully
- + high level C examples are built successfully. +1. Open HL Fortran Examples Workspace
+Invoke Compaq Visual Fortran 6.6c, open the workspace c:\MyHDFstuff\hdf5\windows\hl\fortran\examples\allhlf90examples\allhlf90examples.dsw +
+2. Compile/Build HL Fortran Examples
+Select "Build", then Select "Set Active Configuration"
+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". +
+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
+3. Install HL Fortran Examples
+Invoke a command prompt window and run the batch fileInstall_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 directory + c:\MyHDFstuff\hdf5\hl\fortran\examples 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. Test HL Fortran Examples
+We provide a batch file named test_hl_f90examples.bat in directory + c:\MyHDFstuff\hdf5\hl\fortran\examples for you to test HDF5 high level fortran examples.
+test_hl_f90examples.bat batch file has 4 options:
+Invoke a command prompt window and run test_hl_f90examples.bat with appropriate options.
+When you run "test_hl_f90examples release", the output will look like:
+Similar messages should be generated with another three options If the high level Fortran examples are built successfully.
+Warnings:
-The instructions below will only describe how to build an application using the +
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 build an application using HDF5 Static Library, the following locations +
To build an application using HDF5 Static Library, the following locations will need to be specified for locating header files and linking with the HDF static library, for example:
If you have installed HDF5 library in - Section II, step 3, 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 +
If you have installed HDF5 library in + Section II, step 3, 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.
In a text-area labeled with "Additional include directories:", add HDF5, Zlib, and Szip header files directories. For example:
Then click OK.
+
Go to Tools->Options->Directories,
@@ -1723,12 +1922,12 @@ DLL with the debug version.Insert the correct HDF5, Zlib, Szip paths for both headers (include) and libraries. For example,
-
- c:\MyHDFstuff\hdf5\hdf5lib\release\include
-- c:\MyHDFstuff\hdf5\hdf5lib\release\lib
-- c:\zlib122\include
-- c:\zlib122\lib
-- c:\szip\include
-- c:\szip\dll
+- c:\MyHDFstuff\hdf5\hdf5lib\release\include
+- c:\MyHDFstuff\hdf5\hdf5lib\release\lib
+- c:\zlib122\include
+- c:\zlib122\lib
+- c:\szip\include
+- c:\szip\dll
- @@ -1749,19 +1948,23 @@ DLL with the debug version. if you want to use HDF5 Fortran static library.
Follow the steps for specifying the location of the header files as shown - in Method One.
+ in Method One.Follow the steps for linking the HDF5 library as shown in - Method One. except now link the export + Method One. except now link the export library that is created with the DLL. The export library is called hdf5dll.lib for HDF5 C libray, hdf5_cppdll.lib for HDF5 C++ library, and @@ -1785,223 +1988,136 @@ DLL with the debug version.
To modify your own application settings, please DO FOLLOW the - "DLL Hints" at section IV "HELPFUL POINTERS".
+To modify your own application settings, please DO FOLLOW the + "DLL Hints" at Section XI "HELPFUL POINTERS".
Here are some notes that may be of help if you are not familiar with using the -Visual C++ Development Environment.
-If you must install all.dsw and -all.dsp in another directory, relative to -hdf5 directory, you will be asked to locate the 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 two files to be installed -in another directory.
-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
-If you want to use DLL versions of HDF5 library in your application, you should
-Put HDF5 DLL into windows system directory
-Add HDF5 DLL export library into your project
-Follow "Settings... details" into the last line: - change Single-Threaded into - Multithreaded DLL or Debug - Multithreaded DLL
-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.
-(optional) Repeat 4), add HDF5CPP_USEDLL at the - end of the PreProcessor definitions to use HDF5 C++ DLL.
-(optional) Follow Project->Settings->Fortran->Category->General->Predefined - Preprocess or Symbols, and add "HDF5F90_WINDOWS" - to use HDF5 Fortran DLL.
-Warnings:
-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 +
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.
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:
+If you would like to remove Gzip compression from the HDF5 library, follow + the steps below.
#define H5_HAVE_ZLIB_H 1
#define H5_HAVE_FILTER_DEFLATE 1
then save the file.
-1.2 Delete HDF5_EXT_ZLIB environment variable if you have set it in preconditions.
-1.3 Run-compile HDF5 library according to - Section II.
+ then save the file.When you disable Gzip, you may get the following message when building HDF5 +
When you disable Gzip, you may get the following message when building HDF5 libraries:
This message can be ignored.
+This message can be ignored.
If you would like to remove Szip compression from the HDF5 library, follow +
If you would like to remove Szip compression from the HDF5 library, follow the steps below.
2.1 Open the H5pubconf.h file from the c:\MyHDFstuff\hdf5\src - directory and remove (or comment out) the following two lines:
+#define H5_HAVE_SZLIB_H 1
#define H5_HAVE_FILTER_SZIP 1
then save the file.
2.2 Delete HDF5_EXT_SZIP environment variable - if you have set it in preconditions.
+2.3 Run-compile HDF5 library according to - Section II.
+When you disable Szip, you may get the following message when building HDF5 libraries:
This message can be ignored.
+ +This message can be ignored.
+Notes:
-To disable Gzip and Szip at the same time, just follow 1.1~1.3 and 2.1~2.3
- and run-compile HDF5 library according to
+ To disable Gzip and Szip at the same time, just follow 1.1~1.3 and 2.1~2.3
+ and run-compile HDF5 library according to
Section II.
If you would like to just disable Szip encoder from the HDF5 library while keeping Szip decoder enabled, follow the steps below.
+-
+- -
3.1 Download Szip library without encoder
-Szip library is different if you want to disable Szip encoder. Download +
- 3.1 Download Szip library without encoder
+- Szip library is different if you want to disable Szip encoder. Download szip_noencoder binaries from ftp://ftp.ncsa.uiuc.edu/HDF/szip/2.0/bin/windows. The Szip library and header path should also be set up accordingly (refer to - Precondition 6.) -
-- -
+3.2 Run-compile HDF5 library according to - Section II.
+ Precondition 6.)- 3.2 Run-compile HDF5 library according to + Section II.
We just briefly introduce you how to build HDF5 in VS 7.1(.NET)2003;
1. Open the old workspace file with the "Open solution" - option, .NET will automatically convert the data space file to solution file.
-2. Then find "Build" and go to - "Configuration Manager"; choose - "release" or "debug", - then choose "build all".
-3. If you want to change some project setting, select the project and right - click the button to choose Properties; find the similar menu there as in Microsoft - Visual Studio 6.0.
-4. You need to specify the zlib and - szip include header files and libraries under - Tools ->Options->Projects->VC++ Directories and choose Include and libraries - under the category of "show directories for" to - add the corresponding path if you want to use compression feature inside HDF5. -
-Notes:
+1. Please read Section V if you do - not want to use compression feature inside HDF5.
+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. Since Microsoft Visual Studio .NET will automatically enable all project - files in the "Configuration Manager", you have to - manually disable those project files you don't want to build.
-2.1 If you don't want to build HDF5 C++ Libraries, Go to +
Users can choose the desirable libraries to be built according to the + following description.
Go to "Build" and select "Configuration Manager". Choose "Release" or "Debug" under "Active Solution - Configuration"
-Disable the following projects:
-2.2 If you don't want to build HDF5 Fortran Libraries, Go to +
Go to "Build" and select "Configuration Manager". Choose "Release" or "Debug" under "Active Solution - Configuration"
-Disable the following projects:
-2.3 If you don't want to build HDF5 High-Level Libraries, Go to +
Go to "Build" and select "Configuration Manager". Choose "Release" or "Debug" under "Active Solution - Configuration"
-Disable the following projects:
-2.4 If you want to build HDF5 C++ libarty without High-Level C++ Libraries, - Go to "Build" and select +
Go to "Build" and select "Configuration Manager". Choose "Release" or "Debug" - under "Active Solution Configuration"
-Disable the following projects:
-2.5 If you want to build HDF5 Fortran Libraries without High-Level Fortran - Libraries, Go to "Build" and select +
Go to "Build" and select "Configuration Manager". Choose "Release" or "Debug" - under "Active Solution Configuration"
-Disable the following projects:
-+
Find "Build" and go to + "Configuration Manager"; choose + "release" or "debug", + then choose "build all" to build HDF5 + with desired options.
+Notes:
+1. You need to specify the zlib and + szip include header files and libraries under + Tools ->Options->Projects->VC++ Directories and choose Include and libraries + under the category of "show directories for" to + add the corresponding path if you want to use compression feature inside HDF5.
+2. Please read Section V if you do + not want to use compression feature inside HDF5.
+3. Since Microsoft Visual Studio .NET will automatically enable all project + files in the "Configuration Manager", you have to + manually disable those project files you don't want to build.
+4. If you want to change some project setting, select the + project and right click the button to choose Properties; find the similar menu + there as in Microsoft Visual Studio 6.0.
+Go to Tools-->Select Compiler
-Check Intel box and click OK button.
+Go to Tools-->Select Compiler
-Check Intel box and click OK button.
-Go to Tools-->Customize-->Add-ins and Macro Files and check Intel Fortran - Compiler Build Tool
+ +Notes:
-Szip library is different when using Intel compiler. You should build Szip +
Szip library is different when using Intel compiler. You should build Szip source codes with Intel compiler or download binaries for Intel compiler from ftp://ftp.ncsa.uiuc.edu/HDF/szip/2.0/bin/windows/. The Szip library and header path should also be set up accordingly (refer to - Precondition 6.)
+ Precondition 6.)Intel compilers use different Szip library from other compilers. Szip source - codes or binaries for Intel compiler can be downloaded from the following - address:
-- - ftp://ftp.ncsa.uiuc.edu/HDF/szip/2.0/bin/windows/.
-The Szip library and header path should also be set up accordingly (refer - to Precondition 6.)
-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++ and go to "Tools" - and select "Options", find - "Directories";
-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.
-Notes:
-1. This step will build ONLY HDF5 Static and DLL C and C++ Library using - Intel C++ Compiler.
-2. If you want to build HDF5 Static and DLL C and C++ Library using Intel - C++ 8.1 Compiler as well as HDF5 Static Fortran Library using Intel - Fortran 8.1 Compiler, Please go to 2.2 - directly!
+ +Notes:
1. This step will build ONLY HDF5 Static and DLL C and C++ Library using + Intel C++ Compiler.
2. If you want to build HDF5 Static and DLL C and C++ Library using Intel + C++ 8.1 Compiler as well as HDF5 Static Fortran Library using Intel + Fortran 8.1 Compiler, Please go to 2.2 + directly!
2.1.1 Invoke Microsoft Visual C++ .Net 2003. From the main menu, go to
+
2.1.2 Right click on the solution name "all.sln" - in the "Solution Explorer". From the pop-up + convert all project files to Visual C++ .Net project format.
2.1.3 Go to Tools > Options > Intel C++. - In the left pane, Click "General".
-a. In the right pane, under "Compiler selection", choose Intel C++ 8.1. -
-b. Click on "Intel C++ 8.1" to set the - directories and default options. In "Include", - Add Zlib and Szip header path (c:\zlib122\include - c:\szip\include). In "Library", Add - Zlib and Szip Library Path (c:\zlib122\lib, c:\szip\dll).
-c. Then click "OK".
-2.1.4 Select "Build", then Select - "Set Active Configuration".
-Select "all -- Win32 Debug" or - "all -- Win32 Release"
-Disable all Fortran project files listed below:
-Select "ok". Select
+
2.1.5 Go back to Section II,
+
+ 2.1.5 Go back to Section II,
continue with STEP 2(Testing HDF5 libraries and tools) to test HDF5 C and
- C++ Libraries.
Notes:
-1. This step will build HDF5 Static and DLL C and C++ Library using Intel - C++ 8.1 Compiler as well as HDF5 Static and High Level Fortran Library using - Intel Fortran 8.1 Compiler.
-2. Users who want to build ONLY HDF5 Static and DLL C and C++ LibraryPlease - go to 2.1.
+ +Notes:
1. This step will build HDF5 Static and DLL C and C++ Library using Intel + C++ 8.1 Compiler as well as HDF5 Static and High Level Fortran Library using + Intel Fortran 8.1 Compiler.
2. Users who want to build ONLY HDF5 Static and DLL C and C++ LibraryPlease + go to 2.1.
2.2.1 Invoke Microsoft Visual C++ .Net 2003. From the main menu, go to +
2.2.2 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:
-2.2.3 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".
-2.2.4 Change project dependencies of "libtest_fortran"
-Highlight project "libtest_fortran", choose - "Project"-> "Project - Dependencies", uncheck "libtest".
-2.2.5 Right click on the solution name "all.sln" - in the "Solution Explorer". From the pop-up - menu select "Convert to use Intel C++ Project System" - to convert all .Net C++ project files to Intel C++ project formats.
-2.2.6 Select "Build", then Select - "Set Active Configuration".
-Select "all -- Win32 Debug" or - "all -- Win32 Release"
-Disable all Fortran DLL project files listed below:
-Select "ok". Select - "Build" -> "Build" or - "Rebuild All" to build Debug or Release version of HDF5 C, C++ Static - and DLL Library using Intel C++ 8.1 Compiler and HDF5 Static and High Level - Fortran Library using Intel Fortran 8.1 compiler.
-2.2.7 Test HDF5 Static and High Level Fortran Library
-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
-Check your output files, there should be no "failures" at all.
-b. Test HDF5 High Level Fortran Library
+Check your output files, there should be no "failures" at all.
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
-Check your output files, there should be no "failures" at all.
Check your output files, there should be no "failures" at all.
- - - + + + + + + + +Notes:
-Preconditions and Section I also apply to this section. Users who want +
Preconditions and Section I also apply to this section. Users who want to build Multi-threaded version of HDF5 library, please read those two sections carefully before go to the following part.
Notes:
-1. All of the dll project files have "dll" at the end of their file names. -
2. Static project files don't have "dll" at the end of their file names. +
1. All of the dll project files have "dll" at the end of their file names. +
2. Static project files don't have "dll" at the end of their file names.
Notes:
-This section is only for users who would like to build and test HDF5 snapshot +
This section is only for users who would like to build and test HDF5 snapshot release.
+For users who would like to build and test HDF5 C and C++ library, 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 H5Tinit.c can be sucesessfully created by other compilers.
-Notes:
-The users who don't want to build fortran library can skip this step.
-For users who would like to build and test HDF5 with Fortran library. +
The users who don't want to build fortran library can skip this step.
+For users who would like to build and test HDF5 with Fortran library. It is necessary to manually generate H5f90i_gen.h and H5fortran_types.f90 - except H5Tinit.c before going to + except H5Tinit.c before going to section II, step1(3.2). Follow the steps below to generate these three files. Use Microsoft Visual C++ 6.0 to generate H5Tinit.c and Compaq Fortran 6.6c to generate H5f90i_gen.h and H5fortran_types.f90. We don't guarantee @@ -2478,88 +2658,416 @@ lines.
1) Previous step: section - II, step 1(1)
-2) Follow the steps in Step - I to generate H5Tinit.c.
-3) Open H5fortran_detect_gen.dsw under +
4) Invoke command prompt and go to c:\myHDFstuff\hdf5\fortran\src.
-type
-H5fortran_detect_gen.exe > - H5fortran_detect.f90
-5) Open c:\myHDFstuff\hdf5\windows\misc\fortrantypegen\fortrantypegen.dsw. - Build the project file.
-6) Invoke command prompt and go to c:\myHDFstuff\hdf5\fortran\src.
-type
-H5fortran_detect.exe > H5fort_type_defines.h
-7) Open c:\myHDFstuff\hdf5\windows\misc\matchtypegen\matchtypegen.dsw. - Build the project file.
-8) Invoke command prompt and go to c:\myHDFstuff\hdf5\fortran\src.
-type
-H5match_types.exe
-This step will generate H5f90i_gen.h - and H5fortran_types.f90 automatically.
-9) Go back to section II, step1(3.2)
-
The default driver on windows we support is sec2 driver. However, stdio +
Posix Threads for Windows is a open source free software. Users can download it from + http://sources.redhat.com/pthreads-win32/.
+/*Users want to build and test hdf5 library with thread safe enabled,
+ Make the following block active
+ */
/* <----
+#if defined _DLL
+#define H5_HAVE_THREADSAFE 1
+#define H5_HAVE_SYSTEM_SCOPE_THREADS 1
+#if defined TTSAFE_H
+#define sleep Sleep
+#endif
+#endif
+*/ <----
+ +For help use: ttsafedll.exe -help
+Linked with hdf5 version 1.7 release 51 +
Testing -- multi-dataset creation (dcreate) +
Testing -- per-thread error stacks (error) +
Testing -- thread cancellation safety test (cancel) +
Testing -- multi-attribute creation (acreate)
All tests were successful.
Cleaning Up temp files...
+
The default driver on windows we support is sec2 driver. However, stdio driver is also supported. If you want to use stdio driver in your application, you may set environment variable HDF5_DRIVER - to "stdio".
-On windows XP, the following steps should be followed to set the environment - variable,
+ to "stdio".On windows XP, the following steps should be followed to set the environment + variable.
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"
+Reminder:
-If you don't want to use stdio driver, please remember to delete the environment +
If you don't want to use stdio driver, please remember to delete the environment variable "HDF5_DRIVER" or change the variable value to "sec2".
Here are some notes that may be of help if you are not familiar with using the +Visual C++ Development Environment.
Put HDF5 DLL into windows system directory
+Add HDF5 DLL export library into your project
+Follow "Settings... details" into the last line: + change Single-Threaded into + Multithreaded DLL or Debug + Multithreaded DLL
+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.
+(optional) Repeat 4), add HDF5CPP_USEDLL at the + end of the PreProcessor definitions to use HDF5 C++ DLL.
+(optional) Follow Project->Settings->Fortran->Category->General->Predefined + Preprocess or Symbols, and add "HDF5F90_WINDOWS" + to use HDF5 Fortran DLL.
+Go to directory c:\MYHDFstuff\hdf5\windows\src, open + H5pubconf.h and define the following debug macro:
+#define H5S_DEBUG 1
+Save H5pubconf.h.
+diff --git a/release_docs/INSTALL_Windows.txt b/release_docs/INSTALL_Windows.txt index 98ad2d0..6f109cc 100644 --- a/release_docs/INSTALL_Windows.txt +++ b/release_docs/INSTALL_Windows.txt @@ -14,9 +14,8 @@ Contents: Section : Preconditions and Notes Section I : What do we build and install Section II : How to build and test HDF5 libraries and tools - Section III : How to build an application using the HDF5 library - or DLL - Section IV : Helpful pointers + Section III : How to build an application using the HDF5 library or DLL + Section IV : How to build examples (optional) Section V : How to disable Gzip(Zlib)/Szip compression Section VI : How to build HDF5 in VS 7.0(.NET) Section VII : How to build HDF5 with INTEL Compiler @@ -27,7 +26,7 @@ Contents: ======================================================================== - Preconditions and Notes + Preconditions and Notes ======================================================================== Preconditions: @@ -192,7 +191,7 @@ Notes: ======================================================================== - Section I: What do we build and install? + Section I: What do we build and install? ======================================================================== 1. Build and Install @@ -892,8 +891,7 @@ The