summaryrefslogtreecommitdiffstats
path: root/release_docs/INSTALL_Windows.txt
blob: 505152fb4a3f2ee4ad931caab80415a0ae018565 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
HDF5 Build and Install Instructions for Windows 2000/XP (Full Version)
------------------------------------------------------------------------

The following instructions assume that the HDF5 source code package from
HDF website (http://hdf.ncsa.uiuc.edu) is used.


***************************WARNINGS*************************************
Please read CAREFULLY about the following preconditions and notes first

Preconditions 

   1. Installed Microsoft Visual C++ 6.0 or Intel C compiler and WinZip.
       
      1.1 Installed DEC Visual Fortran compiler(6.0 or higher version), 
          or Intel Fortran compiler if you want to build HDF5 Fortran
          libraries.    

      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.
 
            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.

   2. Set up a directory structure to unpack the library.  For example:

	        c:\                              (any drive)
	        MyHDFstuff\                      (any folder name)

   3. Download the hdf5-1.6.3 source code package and use WinZip to 
      extract the HDF5 package into c:\MyHDFstuff.  This creates a 
      directory called 'hdf5-1.6.3' under MyHDFstuff which contains 
      several files and directories.  Rename "hdf5-1.6.3" to "hdf5".  

   4. HDF5 provide options to do in-memory compress within HDF5
      library.  Currently, two external compression libraries zlib and
      szlib can be used with HDF5.

      4.1 HDF5 uses zlib version 1.1.4 for compression and zlib is NOT
          distributed with HDF5 lib in 1.6.3 release. To use zlib 
          library, you have to install your own zlib library or go to
          HDF web site
          (ftp://ftp.ncsa.uiuc.edu/HDF/gzip/bin/windows/zlib114/) 
          to download the zlib library.
      
      4.2 HDF5 uses szlib(szip) for compression and szlib is 
          distributed with HDF5 lib starting from 1.6.2 binary
          release.  You can also download szlib source codes and 
          binaries from ftp://ftp.ncsa.uiuc.edu/HDF/szip/bin/windows.
          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.

      Compression feature inside HDF5 is optional. 
      
   5. Define the following environment variables: 

        HDF5_EXT_ZLIB
        HDF5_EXT_SZIP
        HDF5_SZIP_ENCODE
        HDF5_EXT_ZLIB_DLL
        HDF5_EXT_SZIP_DLL
      
      In this section, zlib and szip are assumed to be used.  Please 
      read section V as well as this section if you do not want to use
      compression feature inside HDF5.
      
      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 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 zlib.lib, then click OK.
      
      Similarly, you can set:

      HDF5_EXT_SZIP environment variable as szlib.lib
      HDF5_SZIP_ENCODE environment variable as 1
      HDF5_EXT_ZLIB_DLL environment variable as c:\zlib114\dll\zlib.lib
      HDF5_EXT_SZIP_DLL environment variable as szlibdll.lib.

      Notes:

         a. When setting environment variables, only include path for
            the zlib DLL library, as the zlib static and DLL libraries
            share the same name --  zlib.lib.  For all other
            environment variables, you MUST NOT include the path.
            Otherwise, some of HDF5 tools tests will get unexpected
            results.

         b. If the zlib DLL library path is not C:\zlib114\dll, replace
            it with the correct path in the HDF5_EXT_ZLIB_DLL
            environment variable.

         c. You might have to close and reopen running programs for
            the new environment variable settings to take effect. 

         d. By default, c:\zlib114\dll\zlib.dll and 
            c:\szlib\dll\szibdll.dll should be copied into the location
            that the application can find, one suggestion is to use the 
            C:\WINNT\system or C:\WINDOWS\system directory before
            using DLLs.
      
   6. 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 is you want to only use gzip or szip.
      You also need to read section V.

      Invoke Microsoft Visual C++ and go to "Tools" and select
      "Options", find "Directories";
      
      6.1 Find the box "Show directories for", choose 
          "Include files",
          If you cannot find your zlib and szlib header path
          (for example, C:\zlib114\include, C:\szlib\include)
          from the directory list, add the header path
          (C:\zlib114\include, C:\szlib\include) to the 
          included directories.
      
      6.2 Find the box "Show directories for", choose "Library files",
          If you cannot find your zlib and szlib library path
          (for example, C:\zlib114\lib, C:\szlib\lib, C:\szlib\dll)
          from the directory list, add the library path
          (C:\zlib114\lib, C:\szlib\lib, C:\szlib\dll) to the
          library directories.
      
Notes

   1. To build HDF5 C++ and FORTRAN libraries, please read through
      this document.
   
   2. 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.

   3. For users who would like to build and test HDF5 package on 
      command line, please read INSATLL_Windows_From_Command_Line.txt.
   
   4. HDF4-related tools are not built and released with HDF5 library
      packages any more. To obtain HDF4-related tools, please check
      http://hdf.ncsa.uiuc.edu/h4toh5/ and 
      ftp://hdf.ncsa.uiuc.edu/HDF5/h4toh5/

   5. For DLL users, please do read and follow "DLL hints"
      at Section IV.

   6. For .NET users, please read section VI.

   7. For users who would like to build, test and use HDF5 snapshot
      release, please read Section VII.

------------------------------------------------------------------------

The following sections discuss installation procedures in detail:

   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 in HDF5 in VS 7.0(.NET) 
   Section VII:  How to build and test HDF5 snapshot release
   Section VIII: Misc. 

************************************************************************

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 libraries for DLL

      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 programs:
           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 examples

************************************************************************


Section II: How to build and test HDF5 libraries and tools 
========================================================================
STEP 1: Building HDF5 libraries and tools
    
   1. Unpack all.zip
    
      Unpack all.zip in c:\MyHDFstuff\hdf5\windows directory.  Files in 
      all.zip has path hdf5\....  Make sure that you extract files into
      the C:\myHDFstuff directory. 

   2. Invoke Microsoft Visual C++ compiler
    
      Invoke Microsoft Visual C++.  From the main menu, go to "File"
      and select the "Open Workspace" option. Then open the
      c:\myHDFstuff\hdf5\proj\all\all.dsw workspace. 

      You should find windows project files listed as "all files, 
      big files etc." on the left.        

   3. (Optional) HDF5 C++, Fortran libraries and Intel compiler
    
      3.1 Skip this step if you do not want to build HDF5 C++ libraries
        
          Go to "Project" and select "dependencies";
          Select "all" in the "Select project to modify:" box,
          then enable the desired projects:
      
             dsets_cpp
             dsets_cppdll
             hdf5_cpp
             hdf5_cppdll
             testhdf5_cpp
             testhdf5_cppdll

      3.2 Skip this step if you do not want to build HDF5 Fortran
          libraries
        
          Go to "Project" and select "dependencies";
          Select "all" in the "Select project to modify:" box,
              
             flush1_fortran
             flush2_fortran
             hdf5_f90cstub
             hdf5_fortran
             libtest_fortran
             testhdf5_fortran
          
          Note: HDF5 Fortran DLL currently does not work with
                DEC Fortran 6.0 and Intel compiler.
          
      3.3 Skip this step if you are not using Intel compilers
    
          a. Intel C Compiler
             Go to Tools-->Select Compiler
             Check Intel box and click OK button.
          
          b. Intel Fortran Compiler
             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
           
          Note: 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/bin/windows.
                The szip library and header path should also be 
                set up accordingly (refer to precondition 6).
               
   4. Select "Build", then Select "Set Active Configuration".

      In "Project configurations", select the active configuration

	        "all -- Win32 Debug" to build debug versions of
	                single-threaded static libraries, Debug 
                        multithreaded DLLs and tests. 
                
                        or

	        "all -- Win32 Release" to build release versions of
                        single-threaded static libraries, 
                        multithreaded DLLs and tests.

       Then build project "all".
       
       Warning messages can be ignored. 

       When the debug or release build is done the directories 
       listed below will contain the following files:

            c:\MyHDFstuff\hdf5\proj\hdf5\debug - 

               hdf5d.lib- the hdf5 static library

            c:\MyHDFstuff\hdf5\proj\hdf5\release - 

               hdf5.lib- the hdf5 static library

            c:\MyHDFstuff\hdf5\proj\hdf5dll\debug - 

               hdf5ddll.dll- DLL
               hdf5ddll.lib- the DLL export library                  

            c:\MyHDFstuff\hdf5\proj\hdf5dll\release - 

               hdf5dll.dll- DLL
               hdf5dll.lib- the DLL export library

            c:\MyHDFstuff\hdf5\test\libtest\debug - 
        and c:\MyHDFstuff\hdf5\test\libtest\release -
            
               libtest.lib - the internal library for test

            c:\MyHDFstuff\hdf5\test\libtestD\debug -

               libtestD.dll - the internal DLL for test
               libtestD.lib - the internal DLL export library for test

            c:\MyHDFstuff\hdf5\test\libtestD\release -

               libtestD.dll - the internal DLL for test
               libtestD.lib - the internal DLL export library for test

            c:\MyHDFstuff\hdf5\tools\toolslib\debug -
        and c:\MyHDFstuff\hdf5\tools\toolslib\release -

               toolslib.lib- the internal tools library

            c:\MyHDFstuff\hdf5\tools\toolslibD\debug -
        and c:\MyHDFstuff\hdf5\tools\toolslibD\release -

               toolslibD.dll- DLL
               toolslibD.lib- the internal DLL export library for tools 

            c:\MyHDFstuff\hdf5\tools\"tools directory"-
            where tools are located		

       The directories listed below will contain the following files
       ONLY when you choose to build HDF5 c++ libraries:
       
            c:\MyHDFstuff\hdf5\proj\hdf5_cpp\debug - 
               
               hdf5_cppd.lib- the HDF5 C++ API static library

            c:\MyHDFstuff\hdf5\proj\hdf5_cpp\release - 
               
               hdf5_cpp.lib- the HDF5 C++ API static library

            c:\MyHDFstuff\hdf5\proj\hdf5_cppdll\debug - 
               
               hdf5_cppddll.dll- the HDF5 C++ API DLL
               hdf5_cppddll.lib- the C++ API DLL export library
               
            c:\MyHDFstuff\hdf5\proj\hdf5_cppdll\release - 
               
               hdf5_cppdll.dll- the HDF5 C++ API DLL
               hdf5_cppdll.lib- the C++ API DLL export library
            
       The directories listed below will contain the following files
       ONLY when you choose to build HDF5 Fortran libraries:

            c:\MyHDFstuff\hdf5\proj\hdf5_fortran\debug - 
       
               hdf5_fortran.lib- the HDF5 Fortran API static library
               
            c:\MyHDFstuff\hdf5\proj\hdf5_fortran\release - 
       
               hdf5_fortran.lib- the HDF5 Fortran API static library
               
            c:\MyHDFstuff\hdf5\proj\hdf5_f90sctub\debug - 

               hdf5_f90cstubd.lib- the HDF5 C and Fortran stub static
                                   library

            c:\MyHDFstuff\hdf5\proj\hdf5_f90cstub\release - 

               hdf5_f90cstub.lib- the HDF5 C and Fortran stub static
                                  library

            c:\MyHDFstuff\hdf5\proj\libtest_fortran\debug - 
          
               libtest_fortrand.lib- the HDF5 Fortran test static
                                     library

            c:\MyHDFstuff\hdf5\proj\libtest_fortran\release - 
          
               libtest_fortran.lib- the HDF5 Fortran test static
                                    library
       

STEP 2: Testing HDF5 libraries and tools

HDF5 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.  

   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:
   
      hdf5check                  test HDF5 C library and tools only
      
      hdf5check enablecpp        test HDF5 C/C++ libraries and tools
                                 To use this option, HDF5 C++ 
                                 libraries must have been built 
                                 in step I.
      
      hdf5check enablefortran    test HDF5 C/FORTRAN libraries and
                                 tools
                                 To use this option, HDF5 Fortran
                                 libraries must have been built 
                                 in step I.      
      
      hdf5check enableall        test HDF5 C/C++/FORTRAN libraries
                                 and tools
                                 To use this option, HDF5 C++ and 
                                 Fortran libraries must have been
                                 built in step I.      

   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

   You can also test HDF5 libraries and tools one by one.  There are
   possibly four versions of HDF5 libraries and tools testings. 

   They are:

	 release version
	 release dll version
	 debug version
	 debug dll version

   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
   processor to check the results.  For the purpose of printing,  
   please choose font less than 14 for better alignment of the text.

   DLLs listed below should be placed into the Windows system
   directory.  A batch file named install_dll.bat is included in 
   c:\MyHDFstuff\hdf5 directory.  Run this batch file and the 
   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

   1. HDF5 library testing 

      cd into the hdf5\test directory. 

         (1) basic tests
            
             Go to a) b) c) or d) to test your chosen version

             a) release static version
             type:             
                hdf5test release >"Your output filename" 

             b) release dll version
             type:
                hdf5test release dll > "Your output filename"
				
             c) debug static version
             type: 
                hdf5test debug >"Your output filename"

             d) debug dll version
             type:
                hdf5test debug dll >"Your output filename"
            
         (2) timing tests

             Go to a) b) c) or d) to test your chosen version
 
             a) release static version
             type:             
                hdf5timingtest release >"Your output filename" 

             b) release dll version
             type:
                hdf5timingtest release dll >"Your output filename"
				
             c) debug static version
             type: 
                hdf5timingtest debug >"Your output filename"

             d) debug dll version
             type:
                hdf5timingtest debug dll >"Your output filename"


      Use Notepad or WordPad to check results. You should 
      not find any FAILED marks in your output files.

   2. HDF5 tools testing
 
      To test HDF5 tools, cd back into hdf5 directory and then cd into 
      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
         type:             
            testhdf5tools release
         output file: toolstest_release.txt 

         b) release dll version
         type:
            testhdf5tools release dll
         output file: toolstest_releasedll.txt 
				
         c) debug static version
         type: 
            testhdf5tools debug
         output file: toolstest_debug.txt 

         d) debug dll version
         type:
            testhdf5tools debug dll
         output file: toolstest_debugdll.txt 
               
      Use Notepad or WordPad to check results. You should 
      not find any FAILED marks in your output files.
    
   3. HDF5 C++ library test
  
      Skip this step UNLESS you have built HDF5 C++ libraries
      and want to test them.
     
      DLLs listed below should be placed into to the Windows system
      directory.  A batch file named install_cppdll.bat is included in 
      c:\MyHDFstuff\hdf5 directory.  Run this batch file and the 
      following HDF5 C++ DLLs will be copied to the system directory.
       
         hdf5\proj\hdf5_cppdll\release\hdf5_cppdll.dll
         hdf5\proj\hdf5_cppdll\debug\hdf5_cppddll.dll

      Run hdf5cpptest.bat in the hdf5\c++\test directory at the 
      command prompt as below:
     
         hdf5cpptest release >"Your output filename"
         hdf5cpptest release dll >"Your output filename"
         hdf5cpptest debug >"Your output filename"
         hdf5cpptest debug dll >"Your output filename"

      Use Notepad or WordPad to check results. You should 
      not find any FAILED marks in your output files.
     
     
   4. HDF5 Fortran library test
  
      Skip this step UNLESS you have built HDF5 Fortran libraries     
      and want to test them.

      Run testhdf5_fortran.bat at the command prompt as below:

         testhdf5_fortran release >"Your output filename"
         testhdf5_fortran debug >"Your output filename"

      Use Notepad or WordPad to check results. You should 
      not find any FAILED marks in your output files.
     
      Note: Now we only support Fortran static libraries.


STEP 3: Installing HDF5 Libraries

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 1).  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.  
    
The <release> layout of <hdf5lib> should be:
    
   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
       
You may also find the similar layout for the <debug>.


STEP 4: Building HDF5 C/C++/Fortran examples (Optional)

Several simple examples have been provided for users to test
HDF5 C/C++/Fprtran library and tools.

To build and test HDF5 C example:

   1. Invoke Microsoft Visual C++, go to "File" and select
      the "Open Workspace" option. 
      
      Then open the workspace
      c:\myHDFstuff\hdf5\examples\allexamples\allexamples.dsw.

   2. Select "Build", then Select "Set Active Configuration".

      In "Project configurations", select the active configuration

	 "allexamples -- Win32 Debug" to build debug versions of the
                                      examples.

             or
	
	 "allexamples -- Win32 Release" to build release versions the 
                                        examples.

      When the debug build or release build is done, there should be the 
      following subdirectories in C:\myHDFstuff\hdf5\examples\

          attributetest
 
          chunkread

          compoundtest 

          extendwritetest 

          grouptest 

          readtest 

          selecttest 

          writetest 

   3. Invoke a command prompt window and run the batch file 
      "InstallExamples.bat" which resides in the top level directory
      (C:\MyHDFstuff\hdf5).  This file creates 2 new directories, 
      examplesREL and examplesDBG, in the C:\MyHDFstuff\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 the
      examples.
      
      testExamples.bat batch file has two options:

         testExamples release -- test release version of the examples

         testExamples debug   -- test debug version of the examples

      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.

To build and test HDF5 C++ example:

   1. Invoke Microsoft Visual C++, go to "File" and select
      the "Open Workspace" option. 

      Then open the workspace
      c:\myHDFstuff\hdf5\c++\examples\allcppexamples\allcppexamples.dsw.

   2. Select "Build", then Select "Set Active Configuration".

      In "Project configurations", select the active configuration

	 "allcppexamples -- Win32 Debug" to build debug versions of the
                                         examples.

             or
	
	 "allcppexamples -- Win32 Release" to build release versions the 
                                           examples.

      When the debug build or release build is done, there should be the 
      following subdirectories in C:\myHDFstuff\hdf5\c++\examples\

          chunkstest
 
          compoundtest 

          createtest 

          extend_dstest 

          h5grouptest 

          readdatatest 

          writedatatest 

   3. 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 2 new directories, 
      cppexamplesREL and cppexamplesDBG, in the
      C:\MyHDFstuff\c++\examples directory and places all the
      executables in it.  Both the release and debug versions of the
      examples should be built before this step is done.


   4. We provide a batch file named testcppExamples.bat in
      c:\MyHDFstuff\hdf5\examples directory for you to test the
      examples.
      
      testcppExamples.bat batch file has two options:

         testcppExamples release -- test release version of the examples

         testcppExamples debug   -- test debug version of the examples 

      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.

To build and test HDF5 C++ example:

   1. Invoke Microsoft Visual C++, go to "File" and select
      the "Open Workspace" option. 

      Then open the workspace
      c:\myHDFstuff\hdf5\fortran\examples\allf90examples\allf90examples.dsw.

   2. Select "Build", then Select "Set Active Configuration".

      In "Project configurations", select the active configuration

	 "allf90cppexamples -- Win32 Debug" to build debug versions of the
                                            examples.

             or
	
	 "allf90cppexamples -- Win32 Release" to build release versions the 
                                              examples.

      When the debug build or release build is done, there should be the 
      following subdirectories in C:\myHDFstuff\hdf5\fortran\examples\

          attreexampletest
 
          compoundtest 

          dsetexampletest

          fileexampletest

          groupexampletest

          grpdsetexampletest

          grpittest

          grpsexampletest

          hyperslabtest

          mountexampletest

          refobjexampletest

          refregexampletest

          rwdsetexampletest

          selecteletest

   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 2 new directories, 
      f90examplesREL and f90examplesDBG, 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.

************************************************************************


Section III: Building an application using the HDF5 library or DLL
========================================================================

If you are building an application that uses the HDF5 library the
following locations will need to be specified for locating header files
and linking in the HDF libraries:

   <top-level HDF5 directory>\src

where <top-level HDF5 directory> may be 

   C:\MyHDFstuff\hdf5\

We assume that you will use gzip and szip compression with HDF5 library.

To specify this location in the settings for your VC++ project, you may
choose one of the following two methods.

   1) 
    To insert the path that specifics HDF5 and zlib, szlib header files:

    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. Chose the build configuration you would like to modify in the
       drop down menu labeled with 'Settings For:'

    4. Chose the C/C++ tab

    5. At the bottom of the window, there should be a text-area labeled
       with 'Project Options:'. In this text-area, scroll until you
       reach the end and type /I "<top-level HDF5 directory>\src" and
       then click OK.

   
    To link the HDF5 library with your application:

    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 'Add to Project' option and
       then 'Files' option.

    3. Change the 'Files of type:' to 'Library Files (.lib)'

    4. Navigate through the directories until you find the location of 
       the hdf5.lib. 

    5. Select hdf5.lib and click OK.

    6. repeat 1-5, to select zlib.lib and szlib.lib.

   2)
    Go to tools/options/directories,

    1. Insert the correct HDF5,zlib,szlib paths for both headers(include)
       and libraries.
    2. Go to the Project menu and choose the 'Settings' option.
    3. Find the "link" option and "Input" category, insert 
       "zlib.lib, szlib.lib, hdf5.lib".

To use the DLL:

    1. Follow the steps for specifying the location of the header files
       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.
       The export library is called hdf5dll.lib or hdf5ddll.lib for
       debug version.

    3. Place the DLL in a location that Windows will be able to locate 
       it. The searched path and order for DLL's is

       a) The directory where the executable module for the current
          process is located.
       b) The current directory. 
       c} The Windows system directory. The GetSystemDirectory function 
          retrieves the path of this directory. 
       d) The Windows directory. The GetWindowsDirectory function
          retrieves the path of this directory.
       e) The directories listed in the PATH environment variable.
 
    4. To modify your own application settings, please DO FOLLOW the 
       "DLL Hints" at section IV "HELPFUL POINTERS".

************************************************************************


Section IV: HELPFUL POINTERS
========================================================================

Here are some notes that may be of help if you are not familiar with
using the Visual C++ Development Environment.

Project name and location issues: 
       
    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 2
    files to be installed in another directory.

  
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

DLL... hints:
  
   If you want to use DLL versions of HDF5 library in your application, 
   you should  
      1) put HDF5 DLL into windows system directory
      2) add HDF5 DLL export library into your project
      3) Follow "Settings... details" into the last line:
         change Single-Threaded into Multithreaded DLL or 
         Debug Multithreaded DLL
      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.

************************************************************************


Section V: How to disable gzip(zlib)/szip compression

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.
         
   1. Disable gzip compression 

      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:

             #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 Delete HDF5_EXT_ZLIB_DLL environment variable if you have
          set it in preconditions.
   
      1.4 Run-compile HDF5 library according to section II.

      When you disable gzip, you may get the following message
      when building HDF5 libraries:

      The following environment variables were not found
      $(HDF5_EXT_ZLIB)
      $(HDF5_EXT_ZLIB_DLL)

      This message can be ignored.

   2. Disable szip compression (both encoder and decoder)

      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 three
          lines: 

             #define H5_HAVE_SZLIB_H 1
             #define H5_HAVE_FILTER_SZIP 1
             #define H5_SZIP_CAN_ENCODE 1
		   
          then save the file.
	
      2.2 Delete HDF5_EXT_SZIP environment variable if you have
          set it in preconditions.
   
      2.3 Delete HDF5_EXT_SZIP_DLL environment variable if you have
          set it in preconditions. 
   
      2.4 Delete HDF5_SZIP_ENCODE environment variable if you have
          set it in preconditions.

      2.5 Run-compile HDF5 library according to section II.

      When you disable szip, you may get the following message 
      when building HDF5 libraries:

      The following environment variables were not found
      $(HDF5_EXT_SZIP)
      $(HDF5_EXT_SZIP_DLL)

      This message can be ignored.

   Note:   

   To disable gzip and szip at the same time, just follow 1.1~1.3
   and 2.1~2.4 and run-compile HDF5 library according to section II.

   3. Disable szip encoder

      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 szip_noencoder binaries from
          ftp://ftp.ncsa.uiuc.edu/HDF/szip/bin/windows.
          The szip library and header path should also be set up
          accordingly (refer to precondition 6).
   
      3.2 Open the H5pubconf.h file from the c:\MyHDFstuff\hdf5\src
          directory and remove (or comment out) the following line: 

             #define H5_SZIP_CAN_ENCODE 1
		   
          then save the file.
	
      3.3 Delete HDF5_SZIP_ENCODE environment variable if you have
          set it in preconditions.

      3.4 Run-compile HDF5 library according to section II.

************************************************************************


Section VI: How to build HDF5 in VS 7.0(.NET)    
========================================================================

We just briefly introduce you how to build HDF5 in VS 7.0(.NET);

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 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.

NOTE: Please read section V if you do not want to use compression
      feature inside HDF5.
 
************************************************************************


Section VII: Building and testing HDF5 snapshot release
========================================================================

Note: This section is only for users who would like to build and test 
      HDF5 snapshot release.

If you want to test and build HDF5 snapshot release, you need extra 
steps to automatically generate H5Tinit.c before going to section II
step 1(2).

Previous step: section II, step 1(1).
Extra steps:
1) After extracting all.zip to the correct path, open the 
   c:\myHDFstuff\hdf5\misc\typegen\typegen.dsw.
2) Build the project file.
3) Invoke command prompt and go to c:\myHDFstuff\hdf5\src.
4) type H5Tinit.exe >H5Tinit.c
5) Go back to section II, continue with step 1(2).

************************************************************************


Section VIII: Misc.
========================================================================

1) drivers we support
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 2000/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 variable "HDF5_DRIVER" or change the variable 
value to "sec2".


Please send email to hdfhelp@ncsa.uiuc.edu for further assistance.