2005-08-02 01:00:55 +08:00
|
|
|
************************************************************************
|
|
|
|
* Instructions for Building and Testing HDF5 on Windows XP *
|
|
|
|
* (From Command Line) *
|
2004-11-04 03:57:49 +08:00
|
|
|
************************************************************************
|
|
|
|
Note: This instruction is written for users who would like to build HDF5
|
|
|
|
libraries and tools from the HDF5 source code package on command
|
|
|
|
line.
|
|
|
|
|
2005-06-11 03:06:06 +08:00
|
|
|
Currently, we support
|
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
1. Building and testing HDF5 C/C++/Fortran libraries on command line with
|
2008-05-15 22:21:11 +08:00
|
|
|
Microsoft Visual Studio 2005 for 32- or 64-bit Windows.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
For all other Windows development tools, HDF5 should be built in
|
|
|
|
the development environment. Please refer to INSTALL_Windows.txt
|
|
|
|
for detailed HDF5 building and installation information, or
|
2007-10-02 00:08:11 +08:00
|
|
|
INSTALL_Windows_Short.txt for quick HDF5 building and installation
|
2004-11-04 03:57:49 +08:00
|
|
|
instructions.
|
2007-08-03 04:06:31 +08:00
|
|
|
|
2005-08-02 01:00:55 +08:00
|
|
|
WARNINGS:
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
Please read CAREFULLY about HDF5 build and install preconditions and
|
|
|
|
notes in INSTALL_Windows.txt before starting below procedures.
|
|
|
|
|
|
|
|
|
2005-08-02 01:00:55 +08:00
|
|
|
========================================================================
|
|
|
|
Section I: Building and testing HDF5 on command line with Microsoft
|
2007-10-02 00:08:11 +08:00
|
|
|
Visual Studio 2005
|
2005-08-02 01:00:55 +08:00
|
|
|
========================================================================
|
2005-06-11 03:06:06 +08:00
|
|
|
|
2007-02-27 04:43:21 +08:00
|
|
|
1. Preconditions:
|
2005-06-11 03:06:06 +08:00
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
1.1 Verify environment for Visual Studio 2005
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-08-03 04:06:31 +08:00
|
|
|
Building from the command line requires environment variables for Visual
|
|
|
|
Studio. These are generally setup when Visual Studio is installed, but you
|
|
|
|
can verify by running the command:
|
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
echo %vs80comntools%
|
2007-08-03 04:06:31 +08:00
|
|
|
|
|
|
|
This should output a path similar to:
|
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
|
2005-06-11 03:06:06 +08:00
|
|
|
|
|
|
|
1.2 Run batch file copy_hdf.bat.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
Go to c:\MyHDFstuff\hdf5\windows and run copy_hdf.bat.
|
|
|
|
|
|
|
|
1.3 Setup evironment for external libraries
|
|
|
|
|
|
|
|
Similarly to building from within Visual Studio, HDF5 requires environment
|
|
|
|
variables for szip and zlib library names. To define these environment
|
|
|
|
variables:
|
|
|
|
|
|
|
|
From the command prompt that you will be building HDF5 from, issue the
|
|
|
|
following command:
|
|
|
|
|
|
|
|
set HDF5_EXT_ZLIB=zdll.lib
|
|
|
|
|
|
|
|
replacing "zdll.lib" with the name of the zlib library on your system.
|
|
|
|
Similarly, set HDF5_EXT_SZIP to the name of the szip library on your system.
|
|
|
|
|
|
|
|
(Optional) If you will be building using the /useenv switch, you must also
|
2008-05-15 22:21:11 +08:00
|
|
|
define variables INCLUDE and LIB with a semi-colon deliminated list of
|
|
|
|
paths for szip and zlib include files and libraries, respectively. Set
|
2007-10-02 00:08:11 +08:00
|
|
|
these variables in the same way you set HDF5_EXT_ZLIB and HDF5_EXT_SZIP.
|
|
|
|
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2005-06-11 03:06:06 +08:00
|
|
|
2. Building and testing HDF5 libraries and tools
|
|
|
|
|
2005-08-02 01:00:55 +08:00
|
|
|
We provide 2 options for users to build and test HDF5 libraries
|
2005-06-11 03:06:06 +08:00
|
|
|
and tools.
|
|
|
|
|
|
|
|
2.1 Options A: Build and test in one step
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-08-03 04:06:31 +08:00
|
|
|
A batch file named hdf5bt.bat in c:\MyHDFstuff\hdf5 directory is
|
|
|
|
provided for users to build and test HDF5 library and tools together
|
|
|
|
from command line.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
hdf5bt file takes the following options:
|
2008-07-01 03:13:27 +08:00
|
|
|
/vs7 Build HDF5 using Visual Studio .NET 2003
|
|
|
|
Note: Default is Visual Studio 2005
|
2007-10-02 00:08:11 +08:00
|
|
|
/fort Build and test HDF5 with Fortran libraries
|
2008-07-01 03:13:27 +08:00
|
|
|
/ivf101 Build HDF5 Fortran using Intel Visual Fortran 10.1
|
|
|
|
Note: Default is Intel Visual Fortran 9.1
|
2007-10-02 00:08:11 +08:00
|
|
|
/useenv Build HDF5 using compiler settings defined
|
|
|
|
in the environment, rather than the IDE.
|
|
|
|
/? Help information
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
If you specify the "/useenv" option, then include and library
|
|
|
|
directories for szip and zlib must have been set in the
|
|
|
|
Preconditions above.
|
|
|
|
|
|
|
|
Invoke a command prompt window and run hdf5bt. Users are
|
|
|
|
encouraged to pipe the test output into a file. You should find no
|
|
|
|
compilation errors or "*FAILED*" marks.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2005-06-11 03:06:06 +08:00
|
|
|
2.2 Options B: Build and test in two steps
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-08-03 04:06:31 +08:00
|
|
|
We also provide users with the option to build and test HDF5 libraries
|
|
|
|
and tools seperately.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
Step 1) Build HDF5 Libraries and Tools
|
|
|
|
|
|
|
|
A batch file named hdf5build.bat in c:\MyHDFstuff\hdf5
|
|
|
|
directory is provided for users to build HDF5 library and
|
|
|
|
tools from command line.
|
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
hdf55build takes the following options:
|
2008-07-01 03:13:27 +08:00
|
|
|
/vs7 Build HDF5 using Visual Studio .NET 2003
|
|
|
|
Note: Default is Visual Studio 2005
|
2007-10-02 00:08:11 +08:00
|
|
|
/fort Build HDF5 with Fortran libraries
|
2008-07-01 03:13:27 +08:00
|
|
|
/ivf101 Build HDF5 Fortran using Intel Visual Fortran 10.1
|
|
|
|
Note: Default is Intel Visual Fortran 9.1
|
2007-10-02 00:08:11 +08:00
|
|
|
/useenv Build HDF5 using compiler settings defined
|
|
|
|
in the environment, rather than the IDE.
|
|
|
|
/? Help information
|
|
|
|
|
|
|
|
If you specify the "/useenv" option, then include and library
|
|
|
|
directories for szip and zlib must have been set in the
|
|
|
|
Preconditions above.
|
|
|
|
|
|
|
|
Invoke a command prompt window and run hdf5build. Users are
|
|
|
|
encouraged to pipe the test output into a file. You can check
|
2007-08-03 04:06:31 +08:00
|
|
|
the file to find out whether there are any compilation errors.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
Step 2) Test HDF5 Libraries and Tools
|
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
HDF5 comes with various test suites, all of which can be tested with
|
|
|
|
hdf5check.bat batch file in c:\MyHDFstuff\hdf5 directory.
|
2005-08-02 01:00:55 +08:00
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
hdf5check batch file can be run with one of the following four options:
|
2005-08-02 01:00:55 +08:00
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
hdf5check Test HDF5 C library and tools only.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
hdf5check enablecpp Test HDF5 C/C++ libraries and tools.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
hdf5check enablefortran Test HDF5 C/Fortran libraries and
|
|
|
|
tools. To use this option, HDF5
|
|
|
|
Fortran libraries must have been built.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
hdf5check enableall Test HDF5 C/Fortran libraries and
|
|
|
|
tools. To use this option, HDF5
|
|
|
|
Fortran libraries must have been built.
|
2005-08-02 01:00:55 +08:00
|
|
|
|
2007-10-02 00:08:11 +08:00
|
|
|
Invoke a command prompt window and run hdf5check with appropriate
|
|
|
|
option. Users are encouraged to pipe the test output into a file.
|
|
|
|
You should find no "*FAILED*" marks.
|
2004-11-04 03:57:49 +08:00
|
|
|
|
2005-06-11 03:06:06 +08:00
|
|
|
3. Installing HDF5 Libraries
|
2004-11-04 03:57:49 +08:00
|
|
|
|
|
|
|
Run the batch file c:\MyHDFstuff\hdf5\installhdf5lib.bat to install all
|
|
|
|
HDF5 libraries and tools into c:\MyHDFstuff\hdf5\hdf5lib directory.
|
|
|
|
|
2005-06-11 03:06:06 +08:00
|
|
|
For further information, please refer to INSTALL_WINDOWS.txt.
|
|
|
|
|
2005-08-02 01:00:55 +08:00
|
|
|
|
|
|
|
***********************************************************************
|
2005-04-06 03:55:20 +08:00
|
|
|
For further information, please refer to INSTALL_WINDOWS.txt.
|
2005-06-11 03:06:06 +08:00
|
|
|
|
2007-02-27 04:43:21 +08:00
|
|
|
Please send email to help@hdfgroup.org for further assistance.
|