HDF指导书.docx

上传人:yyf 文档编号:5014754 上传时间:2020-01-28 格式:DOCX 页数:51 大小:79.58KB
返回 下载 相关 举报
HDF指导书.docx_第1页
第1页 / 共51页
HDF指导书.docx_第2页
第2页 / 共51页
HDF指导书.docx_第3页
第3页 / 共51页
HDF指导书.docx_第4页
第4页 / 共51页
HDF指导书.docx_第5页
第5页 / 共51页
点击查看更多>>
资源描述

《HDF指导书.docx》由会员分享,可在线阅读,更多相关《HDF指导书.docx(51页珍藏版)》请在三一文库上搜索。

1、Win7 64工程修改合入* HDF5 Build and Install Instructions for Windows XP/VISTA * (Full Version) *The following instructions assume that the HDF5 source code package fromHDF website (http:/hdfgroup.org) is used.Warnings:Please read CAREFULLY about the following preconditions and notes first.Contents: Sectio

2、n : 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 examples (optional) Section IV : How to build an application using the HDF5 library or DLL Section V : How to disable Gzip(Zlib)/Szip compressio

3、n Section VI : How to build HDF5 with Fortran Support Section VII : How to build Multi-threaded version of HDF5 library Section VIII : How to build HDF5 with Thread-Safe Feature Section IX : How to build HDF5 for 64-bit Windows Section X : How to build HDF5 on Windows Vista Section XI : How to build

4、 HDF5 using Visual Studio 2008 Section XII : Backwards Compatibility with HDF5 1.6 Section XIII : Misc.= Preconditions and Notes=Preconditions: 1. Installed Microsoft Visual Studio. This document is written for Visual Studio 2008. We no longer support building HDF5 using Microsoft Visual Studio .NET

5、 2003 or 2005. 2. (Optional) Installed Intel Compiler 10.1 or 11.1 if you want to build HDF5 Fortran libraries. We no longer support Intel Fortran Compiler 9.1. 3. Install Winzip or 7-zip for extracting source tarball. Note: 1. 7zip is an open-source alternative to WinZip. Some of the advanced funct

6、ionality is disabled in WinZip unless you buy the software. With 7zip, most of this functionality is included for free. 2. By default, WinZip will convert the Unix end of line format when extracting .tar file. This conversion will cause false failure in some HDF5 tools testings. Please uncheck the T

7、AR 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 cl

8、ick OK. 4. CMake is available for this release on a experimental basis. CMake 2.8.1 can be downloaded from the KitWare website at http:/. Note: We have attempted to mirror our Autoconf configuration files for maintainence reasons. We are still working out the problems with some issues like fortran s

9、hared libraries and tools testing. We will maintain the current VS2008 project files for the 1.8 product. 5. Set up a directory structure to unpack the library. For example: c: (any drive) MyHDFstuff (any folder name) 6. Download the hdf5-1.8.x source code package and use 7zip or WinZip to extract t

10、he 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. 7. HDF5 provide options to do in-memory compression within HDF5 library. Currently, two external compression libraries Zlib and Szip

11、 can be used with HDF5. 7.1 HDF5 uses Zlib version 1.2.5 for compression and Zlib is NOT distributed with HDF5 library in 1.8.x release. To use Zlib library, you have to install your own Zlib DLL library or go to http:/ to download the Zlib library. 7.2 HDF5 uses Szip version 2.1 for compression and

12、 Szip compression software is provided with HDF5 products in 1.8.x release. To use Szip 2.1 library, you can download Szip source codes and binaries from ftp:/ftp.hdfgroup.org/lib-external/szip/2.1/bin/windows Please note that Szip is not a totally open-source free software. For licensing issue of S

13、zip, please check Licensing terms at http:/hdfgroup.org/doc_resource/SZIP/index.html. Szip compression feature inside HDF5 is optional. 8. Define the following environment variables: HDF5_EXT_ZLIB HDF5_EXT_SZIP In this section, Zlib and Szip compression packages are assumed to be used. Please read S

14、ection 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 Variables. If you are logged on as administrator to the local comp

15、uter 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 zlib1.lib, then click OK. Similarly, you can set: HDF5_E

16、XT_SZIP environment variable as szip.lib Notes: a. You will have to close and reopen running programs for the new environment variable settings to take effect. b. c:zlibzlib1.dll and c:szipdllszip.dll should be copied into a location that the application can find. 9. Set up path for external librari

17、es and headers Skip this part if you dont 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 Studio and go to Tools and select Options, find Pr

18、ojects, and then VC+ Directories. 9.1 If you are building on 64-bit Windows, find the Platform dropdown and select x64. 9.2 Find the box Show directories for, choose Include files, if you can not find your Zlib and Szip header path (for example, c:zlibinclude, c:szipinclude) from the directory list,

19、 add the header path (c:zlibinclude, c:szipinclude) to the included directories. 9.3 Find the box Show directories for, choose Library files. If you cannot find your Zlib and Szip library path (for example, c:zlibdll, c:szipdll) from the directory list, add the library path (c:zlibdll, c:szipdll) to

20、 the library directories. 9.4 If building Fortran libraries, you will also need to setup the path for the Intel Fortran compiler. Please see Section VI.Notes: 1. As of 1.8.0, all.zip is deprecated. Users should go to hdf5/windows directory, run copy_hdf.bat first and then open all.sln under hdf5/win

21、dows/proj/all to start building process. 2. Visual Studio 6.0 is no longer supported in HDF5 1.8 or later releases. Visual Studio .NET is no longer support in HDF5 1.8.4 or later releases. Visual Studio 2005 is no longer support in HDF5 1.8.5 or later releases. Intel Fortran 9.1 is no longer support

22、 in HDF5 1.8.5 or later releases. 3. For users who want to quickly build HDF5 library or do not want to know HDF5 building and installation details, please read the INSTALL_Windows_Short_2008.txt relating to your compiler. 4. For users who would like to build and test HDF5 package from the command l

23、ine, please read INSTALL_Windows_From_Command_Line.txt. 5. For users who would like to build and test HDF5 package using CMake, please read CMake.txt. 6. HDF4-related tools are not built and released with HDF5 library packages any more. To obtain HDF4 related tools, please check http:/hdfgroup.org/h

24、4toh5/ and ftp:/ftp.hdfgroup.org/HDF5/h4toh5 7. For Fortran users, Intel Fortran Compiler 10.1 is currently supported - please see Section VI. Intel Compiler verion 7.x, 8.x and 9.x are no longer supported. Intel Compiler 11.1 can be used but the project files must be upgraded within the Visual Stud

25、io IDE. 8. Visual Studio now only builds muti-threaded versions of HDF5 library, please read Section VII. = Section I: What do we build and install?= 1. Build and Install HDF5 static library: debug and release version HDF5 Dynamic Link Library(DLL): debug and release version as well as export librar

26、ies for DLL HDF5 High-Level Library (Optional): HDF5 C+ Library HDF5 HL-Fortran Library HDF5 tools: HDF5 tools 2. Build Only (Not included in the binary distribution) HDF5 tool library: debug and release version HDF5 tool export library for DLL: debug and release version HDF5 library testing program

27、s: HDF5 library comprehensive tests HDF5 related tools testing programs: HDF5 tools comprehensive tests 3. Examples (Not included in the binary distribution) HDF5 examples: Simple HDF5 C/C+/Fortran and High level C/Fortran examples= Section II: How to build and test HDF5 libraries and tools=Note: To

28、 build and test HDF5 with Fortran support, please read over Section VI. STEP 1: Building HDF5 Libraries and Tools 1. Run batch file copy_hdf.bat Go to c:MyHDFstuffhdf5windows and run copy_hdf.bat. This process will copy all the necessary batch files, Windows-specific source code and text files saved

29、 under c:MyHDFstuffhdf5windows directory to the corresponding directories under hdf5. 2. Open the HDF5 library project in Visual Studio Invoke Microsoft Visual Studio. From the main menu, go to File and select the Open Solution option. Then open the c:MyHDFstuffhdf5windowsprojallall.sln solution. Yo

30、u should find Windows project files listed as all, big, etc. on the left. 3. (Optional) Disable HDF5 C+ and High level C+ In HDF5 1.8, C+ and HL C+ libraries are built by default. To opt-out, you must explicitly disable them. 3.1 Skip this step if you do want to build HDF5 High-Level C+ libraries Go

31、 to Project and select Project Dependencies. Select all, and disable all of the following projects: hdf5_hl_cpp hdf5_hl_cppdll hl_test_table_cpp hl_test_table_cppdll 3.2 Skip this step if you do want to build HDF5 High-Level libraries Go to Project and select Project Dependencies. Select all, and di

32、sable all of the project files listed in the previous step, as well as the following projects: hdf5_hl hdf5_hldll hl_test_image hl_test_imagedll hl_test_lite hl_test_litedll hl_test_table hl_test_tabledll hl_test_ds hl_test_dsdll hl_test_packet hl_test_packetdll Note: Disabling some projects will li

33、kely produce false errors in the testing script. Check the output carefully to ensure that the errors are related to the disabled projects, and then safely ignore them. 4. Select Build, then Select Configuration Manager. 4.1 To build debug static libraries, debug multithreaded DLLs, and tests: In Ac

34、tive Solution Configuration, select Debug. Select Close. Select Build - Build Solution or Rebuild Solution to build debug version of project all. 4.2 To build release static libraries, multithreaded DLLs and tests: In Active Solution Configuration, select Release. Select Close. Select Build - Build

35、Solution or Rebuild Solution to build release version of project all. Release version must be built for testing, debug version is optional. Warning messages can be ignored. When the debug or release build is done the directories listed below will contain the following files: c:MyHDFstuffhdf5projhdf5

36、debug - hdf5d.lib- the hdf5 static library c:MyHDFstuffhdf5projhdf5release - hdf5.lib- the hdf5 static library c:MyHDFstuffhdf5projhdf5dlldebug - hdf5ddll.dll- DLL hdf5ddll.lib- the DLL export library c:MyHDFstuffhdf5projhdf5dllrelease - hdf5dll.dll- DLL hdf5dll.lib- the DLL export library c:MyHDFst

37、uffhdf5testlibtestdebug - and c:MyHDFstuffhdf5testlibtestrelease - libtest.lib - the internal library for test c:MyHDFstuffhdf5testlibtestdlldebug - libtestddll.dll - the internal DLL for test libtestddll.lib - the internal DLL export library for test c:MyHDFstuffhdf5testlibtestdllrelease - libtestd

38、ll.dll - the internal DLL for test libtestdll.lib - the internal DLL export library for test c:MyHDFstuffhdf5toolstoolslibdebug - and c:MyHDFstuffhdf5toolstoolslibrelease - toolslib.lib- the internal tools library c:MyHDFstuffhdf5toolstoolslibDdebug - and c:MyHDFstuffhdf5toolstoolslibDrelease - toolslibD.dll- DLL toolslibD.lib- the internal DLL

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 研究报告 > 商业贸易


经营许可证编号:宁ICP备18001539号-1