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
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
|
<html>
<!--
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* *
* This file is part of HDF5. The full HDF5 copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
* the files COPYING and Copyright.html. COPYING can be found at the root *
* of the source code distribution tree; Copyright.html can be found at the *
* root level of an installed copy of the electronic HDF5 document set and *
* is linked from the top-level documents page. It can also be found at *
* http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-->
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>HDF5 Build and Install Instructions for Windows XP (Full Version)</title>
<style type="text/css">
a {text-decoration:none}
a:link {color:#0000FF;}
a:visited {color:purple;}
a:hover {background-color:#FAEBD7;}
body {
margin-left:5%;
margin-right:5%
}
h1 {
font-family:font-family:times, arial, 'lucida console', sans-serif;
font-size: 160%;
font-style:bold;
color:#0000FF;
text-align:center;
text-transform:capitalize;
margin-top:30
}
h2 {
font-family:font-family:times, arial, 'lucida console', sans-serif;
font-size: 140%;
font-style:bold;
color:#0000FF;
text-align:center;
text-transform:capitalize;
margin-top:20
}
h3 {
font-family:font-family:times, arial, 'lucida console', sans-serif;
font-size: 120%;
font-style:bold;
color:#0000FF;
text-transform:capitalize;
}
h4 {
font-family:font-family:times, arial, 'lucida console', sans-serif;
font-size: 110%;
font-style:bold;
color:#0000FF;
margin-top:12
}
h5 {
font-family:font-family:times, arial, 'lucida console', sans-serif;
font-size: 100%;
font-style:bold;
color:#0000FF;
margin-top:10
}
hr.first {color:#0000FF; height:4px;width:100%;magin-top:10px;margin-bottom:10px;border:thick double blue;}
hr.second{color:#0000FF;height:2px; width:100%;magin-top:5px;margin-bottom:5px;border:thin dotted;}
li{
margin-top:12;
font-size: 98%;
text-align:left;
}
p.right {
text-align:right;
color:#A52A2A;
font-size: 90%;}
p {
font-family:font-family:times, arial, 'lucida console', sans-serif;
font-size: 110%;
text-align:left;
}
p.center {text-align:center}
p.note{
font-family:font-family:times, arial, 'lucida console', sans-serif;
font-size: 80%;
text-align:left;
color:#FF0000
}
p.insmes{
font-family:font-family:times, arial, 'lucida console', sans-serif;
font-size: 80%;
text-align:left;
}
p.filename
{
font-family:font-family:times, arial, 'lucida console', sans-serif;
font-size: 100%;
font-style:italic;
text-align:center;
}
span.filename
{
font-family:font-family:times, arial, 'lucida console', sans-serif;
font-size: 95%;
font-style:italic;
}
table {
font-family:font-family:times, arial, 'lucida console', sans-serif;
font-size: 100%;
text-align:left;
border:thin solid blue;
}
td {
font-family:font-family:times, arial, 'lucida console', sans-serif;
font-size: 85%;
text-align:left;
}
ul.normal
{
margin-left:10%;
list-style-type:none;
margin-bottom:15px;
}
ul.intable
{
text-align: left;
list-style-type:none;
}
</style>
</head>
<body>
<h1>HDF5 Build and Install Instructions for Windows XP (Full Version)</h1>
<hr class="first">
<p class="note">Notes:</p>
<p class="note">The following instructions assume that the HDF5 source code package from<a href="http://hdf.ncsa.uiuc.edu" target="_blank">
HDF website (http://hdf.ncsa.uiuc.edu)</a> is used. </p>
<h3 style="COLOR: #a52a2a"><a name="content_table">Table of Contents:</a></h3>
</td>
<table style="border-width:0; border-collapse: collapse">
<tr>
<td colspan="2"><h3><a href="#preconditions">Preconditions</a></h3></td>
</tr>
<tr>
<td>
<h3><a href="#section1">Section I </a></h3>
</td>
<td>
<h3><a href="#section1"> What do we build and install</a></h3>
</td>
</tr>
<tr>
<td>
<h3><a href="#section2">Section II </a></h3>
</td>
<td>
<h3><a href="#section2"> How to build and test HDF5 libraries and tools</a></h3>
</td>
</tr>
<tr>
<td>
<h3><a href="#section3_examples">Section III </a></h3>
</td>
<td>
<h3><a href="#section3_examples"> How to Build Examples (Optional)</a></h3>
</td>
</tr>
<tr>
<td>
<h3><a href="#section4">Section IV </a></h3>
</td>
<td>
<h3><a href="#section4"> How to build an application using the HDF5
library or DLL</a></h3>
</td>
</tr>
<tr>
<td>
<h3><a href="#section5">Section V </a></h3>
</td>
<td>
<h3><a href="#section5"> How to disable Gzip(Zlib)/Szip compression </a></h3>
</td>
</tr>
<tr>
<td>
<h3><a href="#section6">Section VI </a></h3>
</td>
<td>
<h3><a href="#section6"> How to build HDF5 in .NET 2003</a></h3>
</td>
</tr>
<tr>
<td>
<h3><a href="#section7">Section VII </a></h3>
</td>
<td>
<h3><a href="#section7"> How to build HDF5 with INTEL Compiler</a></h3>
</td>
</tr>
<tr>
<td>
<h3><a href="#section8">Section VIII</a></h3>
</td>
<td>
<h3><a href="#section8"> How to build Multi-threaded version of HDF5
library</a></h3>
</td>
</tr>
<tr>
<td>
<h3><a href="#section9">Section IX </a></h3>
</td>
<td>
<h3><a href="#section9"> How to build and test HDF5 snapshot release</a></h3>
</td>
</tr>
<tr>
<td>
<h3><a href="#section10">Section X </a></h3>
</td>
<td>
<h3><a href="#section10"> How to build HDF5 with Thread-Safe Feature</a></h3>
</td>
</tr>
<tr>
<td>
<h3><a href="#section11">Section XI </a></h3>
</td>
<td >
<h3><a href="#section11"> Misc.</a></h3>
</td>
</tr>
</table>
<hr class="second">
<h2><a name="preconditions">Preconditions</a> </h2>
<hr class="second">
<p>Please read CAREFULLY about the following preconditions and notes first.</p>
<h4><u>1. Installed Microsoft Visual C++ 6.0 or Intel C compiler and WinZip.</u></h4>
<blockquote>
<p>Installed Compaq Visual Fortran compiler(6.0 or higher version), or Intel Fortran
compiler if you want to build HDF5 Fortran libraries. </p>
<p class="note">Notes:</p>
<p class="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. </p>
</blockquote>
<h4><u>2. Set up a directory structure to unpack the library.</u></h4>
<p>For example:</p>
<table style="border-collapse: collapse; border-width: 0" bordercolor="#111111" cellpadding="0" cellspacing="0">
<tr>
<td><p class="filename" style="text-align: left">c:\ (any drive)</p></td>
</tr>
<tr>
<td>
<p class="filename" style="text-align: left">MyHDFstuff\ (any folder name)</p>
</td>
</tr>
</table>
<h4> </h4>
<h4><u>3. Download the hdf5-1.8.x source code package </u> </h4>
<p>Use WinZip to extract the HDF5 package into <span class="filename">c:\MyHDFstuff</span>.
This creates a directory called 'hdf5-1.8.x' under <span class="filename">MyHDFstuff</span>
which contains several files and directories. Rename <span class="filename">"hdf5-1.8.x"</span>
to<span class="filename"> "hdf5"</span>. </p>
<h4><u>4. HDF5 provide options to do in-memory compress within HDF5 library.</u></h4>
<p>Currently, two external compression libraries Zlib and Szip can be used with
HDF5. </p>
<ul class="intable">
<li>
<p>1. HDF5 uses Zlib version 1.2.2 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
<a href="ftp://hdf.ncsa.uiuc.edu/lib-external/zlib/1.2/bin" target="_blank">ftp://hdf.ncsa.uiuc.edu/lib-external/zlib/1.2/bin
</a>to download the Zlib library.</p>
<p class="note">Notes:</p>
<p class="note">1. Zlib 1.2.2 DLL library can also be downloaded from <a href="http://www.zlib.net/zlib122-dll.zip" target="_blank">http://www.zlib.net/zlib122-dll.zip
</a></p>
</li>
<li>
<p class="note">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
<a href="ftp://hdf.ncsa.uiuc.edu/lib-external/szip/2.0/bin/windows" target="_blank">
ftp://hdf.ncsa.uiuc.edu/lib-external/szip/2.0/bin/windows </a></p>
<p class="note">3. Please note that Szip is not a totally open-source free software. For licensing
issue of Szip, please check "Licensing terms" at
<a href="http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/index.html" target="_blank">
http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/index.html.</a> </p>
<p class="note">Szip compression feature inside HDF5 is optional.</p>
</li>
</ul>
<h4><u>5. Define the following environment variables: </u> </h4>
<ul class="normal">
<li>HDF5_EXT_ZLIB </li>
<li>HDF5_EXT_SZIP</li>
</ul>
<p>In this section, Zlib and Szip compression packages are assumed to be used. Please
read <a href="#section5">Section V</a> as well as this section if
you do not want to use compression feature inside HDF5. </p>
<p>To define these environment variables:</p>
<p>Click <span class="filename">"Start"</span> -> <span class="filename">"Control
Panel"</span> -> <span class="filename">"System"</span> -> <span class="filename">"Advanced"</span>
-> <span class="filename">"Environment
Variables"</span>. If you are logged on as administrator to the local computer AND
want to let all other users use these two environment variables, click
<span class="filename">"New"</span> under <span class="filename">"System Variables"</span>
box; otherwise, click <span class="filename">"New"</span> under
<span class="filename">"User Variables"</span> box. In the New Variable window,
set </p>
<p> <span class="filename">"Variable name"</span> as <span class="filename">HDF5_EXT_ZLIB</span> </p>
<p> <span class="filename">"Variable value"</span> as <span class="filename">zdll.lib</span>,
then click OK. </p>
<p>Similarly, you can set:</p>
<p><span class="filename">HDF5_EXT_SZIP</span> environment variable as
<span class="filename">szlibdll.lib</span></p>
<p class="note">Notes:</p>
<ul class="intable">
<li>
<p class="note">a. You might have to close and reopen running programs for the new environment
variable settings to take effect. </p>
</li>
<li>
<p class="note">b. <span class="filename">c:\zlib122\zlib1.dll </span>and
<span class="filename">c:\szip\dll\szlibdll.dll</span> should be copied into the
location that the application can find, one suggestion is to use the
<span class="filename">c:\WINDOWS\system</span>. </p>
</li>
</ul>
<h4><a name="precondition6"><u>6. Set up path for external libraries and headers</u></a></h4>
<p>Skip this part if you don't want to use ANY compression features provided by
HDF5. Please do read <a href="#section5">Section V</a>.</p>
<p>You have to read this part even if you want to only use Zlib or Szip. You also
need to read <a href="#section5">Section V</a>. </p>
<p>Invoke Microsoft Visual C++ and go to "Tools" and select "Options", find "Directories";
</p>
<ul class="intable">
<li>
<p>1. Find the box <span class="filename">"Show directories for"</span>, choose
<span class="filename">"Include files"</span>, if you can not find your Zlib and
Szip header path (for example, <span class="filename">c:\zlib122\include, c:\szip\include</span>)
from the directory list, add the header path (<span class="filename">c:\zlib122\include,
c:\szip\include</span>) to the included directories. </p>
</li>
<li>
<p>2. Find the box <span class="filename">"Show directories for"</span>, choose
<span class="filename">"Library files"</span>, If you cannot find your Zlib and
Szip library path (for example, <span class="filename">c:\zlib122\lib, c:\szip\dll</span>)
from the directory list, add the library path (<span class="filename">c:\zlib122\lib,
c:\szip\dll</span>) to the library directories. </p>
</li>
</ul>
<p class="note">Notes:</p>
<ul class="intable">
<li>
<p class="note">1. In release 1.8.0, <span class="filename">all.zip</span> is deprecated. Users
should go to <span class="filename">hdf5/windows</span> directory, run
<span class="filename">copy_hdf.bat</span> first and then open
<span class="filename">all.dsw</span> under <span class="filename">hdf5/windows/proj/all</span>
to start building process. </p>
</li>
<li>
<p class="note">2. To build HDF5 C++ and FORTRAN libraries, please read through this document.
</p>
</li>
<li>
<p class="note">3. For users who want to quickly build HDF5 library or do not want to know
HDF5 building and installation details, please read <span class="filename">INSATLL_Windows_Short.txt.
</span></p>
</li>
<li>
<p class="note">4. For users who would like to build and test HDF5 package from the command
line, please read <span class="filename">INSATLL_Windows_From_Command_Line.txt.
</span></p>
</li>
<li>
<p class="note">5. HDF4-related tools are not built and released with HDF5 library packages
any more . To obtain HDF4-releated tools, please check</p>
<p class="note"><a href="http://hdf.ncsa.uiuc.edu/h4toh5/" target="blank" ,>http://hdf.ncsa.uiuc.edu/h4toh5/</a></p>
<p class="note"><a href="ftp://hdf.ncsa.uiuc.edu/HDF5/h4toh5/" target="blank" ,>ftp://hdf.ncsa.uiuc.edu/HDF5/h4toh5/</a>
</p>
</li>
<li>
<p class="note">6. For DLL users, please do read and follow
<a href="#dll_hints_section4">"DLL Hints" Section IV.</a> </p>
</li>
<li>
<p class="note">7. For .NET users, please read <a href="#section6">Section
VI.</a> </p>
</li>
<li>
<p class="note">8. For users who would like to build, test and use HDF5 snapshot release, please
read <a href="#section8">Section VIII.</a> </p>
</li>
<li>
<p class="note">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. </p>
</li>
<li><p class="note">10. For .Net and Intel users, if you are not in
<a href="#section10">Section X How to build HDF5 with Thread-Safe Feature</a>,
ttsafedll.dsp should be turned off always.</p> </li>
</ul>
<p class="right"><a href="#preconditions">Go to TOP Preconditions</a></p>
<p class="right"><a href="#content_table">Go to Table of Contents</a></p>
<hr class="second">
<h2><a name="section1">Section I: What do we build and install? </a></h2>
<hr class="second">
<ul class="intable">
<li>
<h4>1. Build and Install</h4>
<ul class="normal">
<li>
<p>HDF5 Static Library: debug and release version</p>
</li>
<li>
<p>HDF5 Dynamic Link Library(DLL): debug and release version as well as export
libraries for DLL</p>
</li>
<li>
<p>HDF5 High-Level Library (Optional):HDF5 C++ Library and HDF5 HL-Fortran Library</p>
</li>
<li>
<p>HDF5 Tools: HDF5 tools </p>
</li>
</ul>
</li>
<li>
<h4>2. Build Only (Not included in the binary distribution)</h4>
<ul class="normal">
<li>
<p>HDF5 tool library: debug and release version</p>
</li>
<li>
<p>HDF5 tool export library for DLL: debug and release version</p>
</li>
<li>
<p>HDF5 library testing programs: HDF5 library comprehensive tests</p>
</li>
<li>
<p>HDF5 related tools testing programs: HDF5 tools comprehensive tests</p>
</li>
</ul>
</li>
<li>
<h4>3. Examples (Not included in the binary distribution)</h4>
<ul class="normal">
<li>
<p>HDF5 examples: simple HDF5 C/C++/Fortran and high level C examples</p>
</li>
</ul>
</li>
</ul>
<p class="right"><a href="#content_table">Go to Table of Contents</a></p>
<hr class="second">
<h2><a name="section2">Section II: How to build and test HDF5 libraries and tools
</a></h2>
<hr class="second">
<h3>This section includes:</h3>
<p><a href="##step1_section2">STEP 1: Building HDF5 libraries and tools</a></p>
<p><a href="#step2_section2">STEP 2: Testing HDF5 libraries and tools</a></p>
<p><a href="#step3_section2">STEP 3: Installing HDF5 Libraries</a></p>
<p> </p>
<h3><a name="#step1_section2"><u>STEP 1: Building HDF5 libraries and tools</u></a></h3>
<ul class="intable">
<li>
<h4>1. Run batch file copy_hdf.bat.</h4>
<p>Go to <span class="filename">c:\MyHDFstuff\hdf5\windows</span> and run
<span class="filename">copy_hdf.bat</span>. This process will copy all the necessary
batch files, windows specific source codes and text files saved under
<span class="filename">c:\MyHDFstuff\hdf5\windows</span> directory to the corresponding
directories under <span class="filename">hdf5</span>. </p>
</li>
<li>
<h4><a name="step1_2_section2">2. Invoke Microsoft Visual C++ compiler</a></h4>
<p>Invoke Microsoft Visual C++. From the main menu, go to
<span class="filename">"File" </span>and select the <span class="filename">"Open
Workspace" </span>option. Then open the <span class="filename">c:\MyHDFstuff\hdf5\windows\proj\all\all.dsw</span>
workspace. </p>
<p>You should find windows project files listed as "all files, big files etc."
on the left. </p>
</li>
<li>
<h4>3. (Optional)HDF5 C++, Fortran libraries, HL-CPP, HL-Fortran and Intel compiler</h4>
<ul class="intable">
<li>
<h5><a name="section1_3.1">3.1 Skip this step if you do not want to build HDF5
C++ libraries</a></h5>
<p>Go to <span class="filename">"Project"</span> and select
<span class="filename">"dependencies"</span>; Select <span class="filename">
"all"</span> in the <span class="filename">"Select project to modify:"</span>
box, then enable the desired projects: </p>
<ul class="normal">
<li>dsets_cpp </li>
<li>dsets_cppdll </li>
<li>hdf5_cpp </li>
<li>hdf5_cppdll </li>
<li>testhdf5_cpp </li>
<li>testhdf5_cppdll</li>
</ul>
</li>
<li>
<h5><a name="section1_3.2">3.2 Skip this step if you do not want to build HDF5
Fortran libraries</a></h5>
<p>Go to <span class="filename">"Project"</span> and select
<span class="filename">"dependencies"</span>; Select <span class="filename">
"all"</span> in the <span class="filename">"Select project to modify:"</span>
box, then enable the desired projects: </p>
<ul class="normal">
<li>flush1_fortran </li>
<li>flush1_fortrandll </li>
<li>flush2_fortran </li>
<li>flush2_fortrandll </li>
<li>hdf5_f90cstub </li>
<li>hdf5_f90cstubdll </li>
<li>hdf5_fortran </li>
<li>hdf5_fortrandll </li>
<li>libtest_cstubdll </li>
<li>libtest_fortran </li>
<li>libtest_fortrandll </li>
<li>testhdf5_fortran </li>
<li>testhdf5_fortrandll</li>
</ul>
</li>
<li>
<h5>3.3 Skip this step if you do not want to build HDF5 High-Level libraries</h5>
<p>Go to <span class="filename">"Project"</span> and select
<span class="filename">"dependencies"</span>; Select <span class="filename">
"all"</span> in the <span class="filename">"Select project to modify:"</span>
box, then enable the desired projects: </p>
<ul class="normal">
<li>hdf5_hl </li>
<li>hdf5_hldll </li>
<li>hl_test_image </li>
<li>hl_test_imagedll </li>
<li>hl_test_lite </li>
<li>hl_test_litedll </li>
<li>hl_test_table </li>
<li>hl_test_tabledll </li>
<li>hl_test_ds </li>
<li>hl_test_dsdll </li>
<li>hl_test_packet</li>
<li>hl_test_packetdll</li>
</ul>
</li>
<li>
<h5>3.4 Skip this step if you do not want to build HDF5 High-Level C++ libraries</h5>
<p>Go to <span class="filename">"Project"</span> and select
<span class="filename">"dependencies"</span>; Select <span class="filename">
"all"</span> in the <span class="filename">"Select project to modify:"</span>
box, then enable all of the project files listed in
<a href="#section1_3.1">Section II, Step 1(3.1)</a> and the
following desired projects: </p>
<ul class="normal">
<li>hdf5_hl_cpp </li>
<li>hdf5_hl_cppdll </li>
<li>hl_test_table_cpp</li>
<li>hl_test_table_cppdll</li>
</ul>
</li>
<li>
<h5>3.5 Skip this step if you do not want to build HDF5 High-Level Fortran libraries</h5>
<p>Go to <span class="filename">"Project"</span> and select
<span class="filename">"dependencies"</span>; Select <span class="filename">
"all"</span> in the <span class="filename">"Select project to modify:"</span>
box, then enable all of the project files listed in
<a href="#section1_3.2">Section II, Step 1(3.2)</a> and the
following desired projects: </p>
<ul class="normal">
<li>hdf5_hl_f90cstubdll </li>
<li>hdf5_hl_fortran </li>
<li>hdf5_hl_fortrandll </li>
<li>hl_test_image_fortran </li>
<li>hl_test_image_fortrandll </li>
<li>hl_test_lite_fortran </li>
<li>hl_test_lite_fortrandll </li>
<li>hl_test_table_fortran </li>
<li>hl_test_table_fortrandll</li>
</ul>
</li>
<li>
<h5>3.6 If you are using Intel compilers, please read
<a href="#section7">Section VII.</a></h5>
</li>
</ul>
</li>
<li>
<h4><a name="step1_4_section2">4. Select "Build", then Select "Set Active Configuration".</a></h4>
<ul class="intable">
<li>
<h5>4.1 To build debug versions of single-threaded static libraries, Debug multithreaded
DLLs and tests</h5>
<p>In <span class="filename">"Project configurations"</span>, select
<span class="filename">"all -- Win32 Debug"</span>, select
<span class="filename">"ok"</span>. Select <span class="filename">"Build" ->
"Build" or "Rebuild All"</span> to build debug version of project
<span class="filename">"all"</span>. </p>
</li>
<li>
<h5>4.2 To build release versions of single-threaded static libraries, multithreaded
DLLs and tests</h5>
<p>In <span class="filename">"Project configurations"</span>, select
<span class="filename">"all -- Win32 Release"</span>, select
<span class="filename">"ok"</span>. Select <span class="filename">"Build" ->
"Build" or "Rebuild All"</span> to build release version of project
<span class="filename">"all"</span>. </p>
<ol>
</ol>
<p class="note">Notes:</p>
<p class="note">1. Both debug and release versions must be built.</p>
<p class="note">2. Warning messages can be ignored. </p>
</li>
</ul>
<p>When the debug or release build is done the directories listed below will contain
the following files:</p>
<div style="TEXT-ALIGN: center">
<table border="1" style="BORDER-RIGHT: blue thin solid; BORDER-TOP: blue thin solid; BORDER-LEFT: blue thin solid; BORDER-BOTTOM: blue thin solid">
<tr>
<th>Location</th>
<th>File Name</th>
<th>Illustration</th>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5\debug</td>
<td>hdf5d.lib</td>
<td>the hdf5 static library</td>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5\release</td>
<td>hdf5.lib</td>
<td>the hdf5 static library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5dll\debug</td>
<td>hdf5ddll.dll</td>
<td>DLL</td>
</tr>
<tr>
<td>hdf5ddll.lib</td>
<td>the DLL export library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5dll\release</td>
<td>hdf5dll.dll</td>
<td>DLL</td>
</tr>
<tr>
<td>hdf5dll.lib</td>
<td>the DLL export library</td>
</tr>
<tr>
<td>
c:\MyHDFstuff\hdf5\test\libtest\debug
c:\MyHDFstuff\hdf5\test\libtest\release
</td>
<td>libtest.lib</td>
<td>the internal library for test</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\test\libtestD\debug</td>
<td>libtestD.dll</td>
<td>the internal DLL for test</td>
</tr>
<tr>
<td>libtestD.lib</td>
<td>the internal DLL export library for test</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\test\libtestD\release</td>
<td>libtestD.dll</td>
<td>the internal DLL for test</td>
</tr>
<tr>
<td>libtestD.lib</td>
<td>the internal DLL export library for test</td>
</tr>
<tr>
<td>
c:\MyHDFstuff\hdf5\tools\toolslib\debug
c:\MyHDFstuff\hdf5\tools\toolslib\release
</td>
<td>toolslib.lib</td>
<td>the internal tools library</td>
</tr>
<tr>
<td rowspan="2">
c:\MyHDFstuff\hdf5\tools\toolslibD\debug
c:\MyHDFstuff\hdf5\tools\toolslibD\release
</td>
<td>toolslibD.dll</td>
<td>DLL</td>
</tr>
<tr>
<td>toolslibD.lib</td>
<td>the internal DLL export library for tools</td>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\tools\"tools directory"</td>
<td> </td>
<td>where tools are located</td>
</tr>
</table>
</div>
<p>The directories listed below will contain the following files ONLY when you
choose to build HDF5 C++ libraries:</p>
<div style="TEXT-ALIGN: center">
<table border="1" style="BORDER-RIGHT: blue thin solid; BORDER-TOP: blue thin solid; BORDER-LEFT: blue thin solid; BORDER-BOTTOM: blue thin solid">
<tr>
<th>Location</th>
<th>File Name</th>
<th>Illustration</th>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5_cpp\debug</td>
<td>hdf5_cppd.lib</td>
<td>the HDF5 C++ API static library</td>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5_cpp\release</td>
<td>hdf5_cpp.lib</td>
<td>the HDF5 C++ API static library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_cppdll\debug</td>
<td>hdf5_cppddll.dll</td>
<td>the HDF5 C++ API DLL</td>
</tr>
<tr>
<td>hdf5_cppddll.lib</td>
<td>the C++ API DLL export library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_cppdll\release</td>
<td>hdf5_cppdll.dll</td>
<td>the HDF5 C++ API DLL</td>
</tr>
<tr>
<td>hdf5_cppdll.lib</td>
<td>the C++ API DLL export library</td>
</tr>
</table>
</div>
<p>The directories listed below will contain the following files ONLY when you
choose to build HDF5 Fortran libraries:</p>
<div style="TEXT-ALIGN: center">
<table border="1" style="BORDER-RIGHT: blue thin solid; BORDER-TOP: blue thin solid; BORDER-LEFT: blue thin solid; BORDER-BOTTOM: blue thin solid">
<tr>
<th>Location</th>
<th>File Name</th>
<th>Illustration</th>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5_fortran\debug</td>
<td>hdf5_fortrand.lib</td>
<td>the HDF5 Fortran API static library</td>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5_fortran\release</td>
<td>hdf5_fortran.lib</td>
<td>the HDF5 Fortran API static library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_fortrandll\debug</td>
<td>hdf5_fortranddll.dll</td>
<td>the HDF5 Fortran API DLL</td>
</tr>
<tr>
<td>hdf5_fortranddll.lib</td>
<td>the HDF5 Fortran API DLL export library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_fortrandll\release</td>
<td>hdf5_fortrandll.dll</td>
<td>the HDF5 Fortran API DLL</td>
</tr>
<tr>
<td>hdf5_fortrandll.lib</td>
<td>the HDF5 Fortran API DLL export library </td>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5_f90sctub\debug</td>
<td>hdf5_f90cstubd.lib</td>
<td>the HDF5 C and Fortran stub static library</td>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5_f90cstub\release</td>
<td>hdf5_f90cstub.lib</td>
<td>the HDF5 C and Fortran stub static library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_f90cstubdll\debug</td>
<td>hdf5_f90cstubddll.dll</td>
<td>the HDF5 C and Fortran stub DLL</td>
</tr>
<tr>
<td>hdf5_f90cstubddll.lib</td>
<td>the HDF5 C and Fortran stub DLL export library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_f90cstubdll\release</td>
<td>hdf5_f90cstubdll.dll</td>
<td>the HDF5 C and Fortran stub DLL</td>
</tr>
<tr>
<td>hdf5_f90cstubdll.lib</td>
<td>the HDF5 C and Fortran stub DLL export library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\fortran\test\libtest_cstubdll\debug</td>
<td>libtest_cstubddll.dll</td>
<td>the HDF5 Fortran test C and Fortran stub DLL</td>
</tr>
<tr>
<td>libtest_cstubddll.lib</td>
<td>the HDF5 Fortran test C and Fortran stub DLL export library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\fortran\test\libtest_cstubdll\release</td>
<td>libtest_cstubdll.dll</td>
<td>the HDF5 Fortran test C and Fortran stub DLL</td>
</tr>
<tr>
<td>libtest_cstubdll.lib</td>
<td>the HDF5 Fortran test C and Fortran stub DLL export library</td>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\fortran\test\libtest_fortran\debug</td>
<td>libtest_fortrand.lib</td>
<td>the HDF5 Fortran test static library</td>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\fortran\test\libtest_fortran\release</td>
<td>libtest_fortran.lib</td>
<td>the HDF5 Fortran test static library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\fortran\test\libtest_fortrandll\debug</td>
<td>libtest_fortranddll.dll</td>
<td>the HDF5 Fortran test DLL</td>
</tr>
<tr>
<td>libtest_fortranddll.lib</td>
<td>the HDF5 Fortran test DLL export library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\fortran\test\libtest_fortran\release</td>
<td>libtest_fortrandll.dll</td>
<td>the HDF5 Fortran test DLL</td>
</tr>
<tr>
<td>libtest_fortrandll.lib</td>
<td>the HDF5 Fortran test DLL export library</td>
</tr>
</table>
<div>
<p>The directories listed below will contain the following files ONLY when
you choose to build HDF5 High Level libraries:</p>
<div style="TEXT-ALIGN: center">
<table border="1" style="BORDER-RIGHT: blue thin solid; BORDER-TOP: blue thin solid; BORDER-LEFT: blue thin solid; BORDER-BOTTOM: blue thin solid">
<tr>
<th>Location</th>
<th>File Name</th>
<th>Illustration</th>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5_hl\Release</td>
<td>hdf5_hl.lib</td>
<td>HDF5 High Level Static Library</td>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5_hl\Debug</td>
<td>hdf5_hld.lib</td>
<td>HDF5 High Level Static Library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_hldll\Release</td>
<td>hdf5_hldll.lib</td>
<td>HDF5 High Level export Library</td>
</tr>
<tr>
<td>hdf5_hldll.dll</td>
<td>HDF5 High Level DLL</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_hldll\Debug</td>
<td>hdf5_hldlld.lib</td>
<td>HDF5 High Level export Library</td>
</tr>
<tr>
<td>hdf5_hldlld.dll</td>
<td>HDF5 High Level DLL</td>
</tr>
</table>
</div>
<p>The directories listed below will contain the following files ONLY when
you choose to build HDF5 High Level C++ libraries:</p>
<div style="TEXT-ALIGN: center">
<table border="1" style="BORDER-RIGHT: blue thin solid; BORDER-TOP: blue thin solid; BORDER-LEFT: blue thin solid; BORDER-BOTTOM: blue thin solid">
<tr>
<th>Location</th>
<th>File Name</th>
<th>Illustration</th>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5_hl_cpp\Release</td>
<td>hdf5_hl_cpp.lib</td>
<td>HDF5 High Level Static Library</td>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5_hl_cpp\Debug</td>
<td>hdf5_hl_cpp.lib</td>
<td>HDF5 High Level Static Library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_hl_cppdll\Release</td>
<td>hdf5_hl_cppdll.lib</td>
<td>HDF5 High Level C++ export Library</td>
</tr>
<tr>
<td>hdf5_hl_cppdll.dll</td>
<td>HDF5 High Level C++ DLL</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_hl_cppdll\Debug</td>
<td>hdf5_hl_cppdlld.lib</td>
<td>HDF5 High Level C++ export Library</td>
</tr>
<tr>
<td>hdf5_hl_cppdlld.dll</td>
<td>HDF5 High Level C++ DLL</td>
</tr>
</table>
</div>
<p>The directories listed below will contain the following files ONLY when
you choose to build HDF5 High Level Fortran libraries:</p>
<div style="TEXT-ALIGN: center">
<table border="1" style="BORDER-RIGHT: blue thin solid; BORDER-TOP: blue thin solid; BORDER-LEFT: blue thin solid; BORDER-BOTTOM: blue thin solid">
<tr>
<th>Location</th>
<th>File Name</th>
<th>Illustration</th>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5_hl_fortran\Release</td>
<td>hdf5_hl_fortranr.lib</td>
<td>HDF5 High Level Fortran Static Library</td>
</tr>
<tr>
<td>c:\MyHDFstuff\hdf5\proj\hdf5_hl_fortran\Debug</td>
<td>hdf5_hl_fortrand.lib</td>
<td>HDF5 High-Level Fortran Static Library</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_hl_fortrandll\Release</td>
<td>hdf5_hl_fortrandll.lib</td>
<td>HDF5 High Level Fortran export Library</td>
</tr>
<tr>
<td>hdf5_hl_fortrandll.dll</td>
<td>HDF5 High Level Fortran DLL</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_hl_fortrandll\Debug</td>
<td>hdf5_hl_fortrandlld.lib</td>
<td>HDF5 High Level Fortran export Library</td>
</tr>
<tr>
<td>hdf5_hl_fortrandlld.dll</td>
<td>HDF5 High Level Fortran DLL</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_hl_f90cstubdll\Release</td>
<td>hdf5_hl_f90cstubdll.lib</td>
<td>HDF5 High Level Fortran C stub export Library</td>
</tr>
<tr>
<td>hdf5_hl_f90cstubdll.dll</td>
<td>HDF5 High Level Fortran C stub DLL</td>
</tr>
<tr>
<td rowspan="2">c:\MyHDFstuff\hdf5\proj\hdf5_hl_f90cstubdll\Debug</td>
<td>hdf5_hl_f90cstubdlld.lib</td>
<td>HDF5 High Level Fortran C stub export Library</td>
</tr>
<tr>
<td>hdf5_hl_f90cstubdlld.dll</td>
<td>HDF5 High Level Fortran C stub DLL</td>
</tr>
</table>
</div>
</div>
</div>
</li>
</ul>
<h3><a name="step2_section2"><u>STEP 2: Testing HDF5 libraries and tools</u></a></h3>
<p>HDF5 libraries and tools should be tested to make sure that they were built correctly.</p>
<p>We provide 2 options for users to test HDF5 libraries and tools.</p>
<h4>Option 1: Automatic Testings</h4>
<p>HDF5 comes with various test suites, all of which can be tested with hdf5check.bat
batch file in c:\MyHDFstuff\hdf5 directory. </p>
<p>hdf5check batch file can be run with one of the following four options: </p>
<div style="TEXT-ALIGN: center">
<table border="1" style="BORDER-RIGHT: blue thin solid; BORDER-TOP: blue thin solid; BORDER-LEFT: blue thin solid; BORDER-BOTTOM: blue thin solid">
<tr>
<th>Options</th>
<th>Illustration</th>
</tr>
<tr>
<td>
<p>hdf5check</p>
</td>
<td>
<p>test HDF5 C library and tools only</p>
</td>
</tr>
<tr>
<td>
<p>hdf5check enablecpp</p>
</td>
<td>
<p>test HDF5 C/C++ libraries and tools.</p>
<p>To use this option, HDF5 C++ libraries must have been built in
<a href="#section1_3.1">step I.</a></p>
</td>
</tr>
<tr>
<td>
<p>hdf5check enablefortran</p>
</td>
<td>
<p>test HDF5 C/FORTRAN libraries and tools</p>
<p>To use this option, HDF5 Fortran libraries must have been built in
<a href="#section1_3.2">step I.</a></p>
</td>
</tr>
<tr>
<td>
<p>hdf5check enableall</p>
</td>
<td>
<p>test HDF5 C/C++/FORTRAN libraries and tools</p>
<p>To use this option, HDF5 C++ and Fortran libraries must have been built
in step I.</p>
</td>
</tr>
</table>
</div>
<p>Invoke a command prompt window and run hdf5check with appropriate option.</p>
<p>Test results are saved in two files:</p>
<p class="filename">c:\MyHDFstuff\hdf5\check_results.txt</p>
<p class="filename">c:\MyHDFstuff\hdf5\tests_results.txt.</p>
<p>In general, you only need to check<span class="filename"> tests_results.txt</span>.
If all the tests passed, then you do not have to check <span class="filename">check_results.txt</span>.
If some tests failed, check <span class="filename">check_results.txt</span> can
help you figure out what was wrong. </p>
<h4>Option 2: Step-by-step HDF5 libraries and tools testings</h4>
<p>You can also test HDF5 libraries and tools one by one. There are four
versions of HDF5 libraries and tools testing. They are: </p>
<ul class="normal">
<li>
<p>release version</p>
</li>
<li>
<p>release dll version</p>
</li>
<li>
<p>debug version</p>
</li>
<li>
<p>debug dll version</p>
</li>
</ul>
<p>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.
</p>
<p>DLLs listed below should be placed into the Windows system directory. A batch
file named <span class="filename">install_dll.bat</span> is included in
<span class="filename">c:\MyHDFstuff\hdf5</span> directory. Run this batch file
and the following HDF5 DLLs will be copied to the system directory. </p>
<ul class="normal">
<li>hdf5\proj\hdf5dll\release\hdf5dll.dll </li>
<li>hdf5\proj\hdf5dll\debug\hdf5ddll.dll </li>
<li>hdf5\test\libtestD\release\libtestD.dll </li>
<li>hdf5\test\libtestD\debug\libtestDd.dll</li>
</ul>
<ul class="intable">
<li>
<h5>1. HDF5 library testing</h5>
<p>cd into the hdf5\test directory.</p>
<ul class="intable">
<li>
<h5>(1) Basic Tests</h5>
<p>Go to a, b, c, or d to test your chosen version</p>
<ul class="intable">
<li>
<h5>a. release static version</h5>
<p>type:</p>
<p>hdf5test release >"Your output filename" </p>
</li>
<li>
<h5>b. release dll version</h5>
<p>type:</p>
<p>hdf5test release dll > "Your output filename"</p>
</li>
<li>
<h5>c. debug static version</h5>
<p>type:</p>
<p>hdf5test debug >"Your output filename"</p>
</li>
<li>
<h5>d. debug dll version</h5>
<p>type:</p>
<p>hdf5test debug dll >"Your output filename"</p>
</li>
</ul>
</li>
<li>
<h5>(2) Timing tests</h5>
<p>Go to a, b, c, or d to test your chosen version</p>
<ul class="intable">
<li>
<h5>a. release static version</h5>
<p>type:</p>
<p>hdf5timingtest release >"Your output filename" </p>
</li>
<li>
<h5>b. release dll version</h5>
<p>type:</p>
<p>hdf5timingtest release dll >"Your output filename" </p>
</li>
<li>
<h5>c. debug static version</h5>
<p>type:</p>
<p>hdf5timingtest debug >"Your output filename" </p>
</li>
<li>
<h5>d. debug dll version</h5>
<p>type:</p>
<p>hdf5timingtest debug dll >"Your output filename" </p>
</li>
</ul>
</li>
</ul>
<p class="note">Notes:</p>
<p class="note">Use Notepad or WordPad to check results. You should not find any FAILED marks
in your output files.</p>
</li>
<li>
<h5>2. HDF5 tools testing</h5>
<p>To test HDF5 tools, go to directory <span class="filename">c:\MyHDFstuff\hdf5\tools</span>.
The HDF5 tools testing results are saved into output files in tools directory
by the <span class="filename">testhdf5tools.bat</span> as described below. </p>
<p>Go to a, b, c, or d to test your chosen version</p>
<ul class="intable">
<li>
<h5>a. release static version</h5>
<p>type:</p>
<p>testhdf5tools release</p>
<p>output file: <span class="filename">toolstest_release.txt</span></p>
</li>
<li>
<h5>b. release dll version</h5>
<p>type:</p>
<p>testhdf5tools release dll</p>
<p>output file: <span class="filename">toolstest_releasedll.txt</span></p>
</li>
<li>
<h5>c. debug static version</h5>
<p>type:</p>
<p>testhdf5tools debug</p>
<p>output file: <span class="filename">toolstest_debug.txt</span></p>
</li>
<li>
<h5>d. debug dll version</h5>
<p>type:</p>
<p>testhdf5tools debug dll</p>
<p>output file: <span class="filename">toolstest_debugdll.txt</span></p>
</li>
</ul>
<p class="note">Notes:</p>
<p class="note">Use Notepad or WordPad to check results. You should not find any FAILED marks
in your output files.</p>
</li>
<li>
<h5>3. HDF5 C++ library test</h5>
<p>Skip this step UNLESS you have built HDF5 C++ libraries and want to test them.</p>
<p>DLLs listed below should be placed into to the Windows system directory. A
batch file named <span class="filename">install_cppdll.bat</span> is included
in <span class="filename">c:\MyHDFstuff\hdf5</span> directory. Run this batch
file and the following HDF5 C++ DLLs will be copied to the system directory.
</p>
<ul class="normal">
<li>hdf5\proj\hdf5_cppdll\release\hdf5_cppdll.dll </li>
<li>hdf5\proj\hdf5_cppdll\debug\hdf5_cppddll.dll</li>
</ul>
<p>Run <span class="filename">hdf5cpptest.bat</span> in the
<span class="filename">hdf5\c++\test </span>directory at the command prompt as
below:</p>
<ul class="normal">
<li>hdf5cpptest release >"Your output filename" </li>
<li>hdf5cpptest release dll >"Your output filename" </li>
<li>hdf5cpptest debug >"Your output filename" </li>
<li>hdf5cpptest debug dll >"Your output filename"</li>
</ul>
<p class="note">Notes:</p>
<p class="note">Use Notepad or WordPad to check results. You should not find any FAILED marks
in your output files. </p>
</li>
<li>
<h5>4. HDF5 Fortran library test</h5>
<p>Skip this step UNLESS you have built HDF5 Fortran libraries and want to test
them.</p>
<p>DLLs listed below should be placed into to the Windows system directory. A
batch file named <span class="filename">install_f90dll.bat</span> is included
in <span class="filename">c:\MyHDFstuff\hdf5</span> directory. Run this batch
file and the following HDF5 Fortran DLLs will be copied to the system directory.
</p>
<ul class="normal">
<li>hdf5\proj\hdf5_f90cstubdll\release\hdf5_f90cstubdll.dll </li>
<li>hdf5\proj\hdf5_f90cstubdll\debug\hdf5_f90cstubddll.dll </li>
<li>hdf5\proj\hdf5_fortrandll\release\hdf5_fortrandll.dll </li>
<li>hdf5\proj\hdf5_fortrandll\debug\hdf5_fortranddll.dll </li>
<li>hdf5\fortran\test\libtest_cstubdll\release\libtest_cstubdll.dll </li>
<li>hdf5\fortran\test\libtest_cstubdll\debug\libtest_cstubddll.dll </li>
<li>hdf5\fortran\test\libtest_fortrandll\release\libtest_fortrandll.dll </li>
<li>hdf5\fortran\test\libtest_fortrandll\debug\libtest_fortranddll.dll</li>
</ul>
<p>Run <span class="filename">testhdf5_fortran.bat</span> at the command prompt
as below:</p>
<ul class="normal">
<li>testhdf5_fortran release > "Your output filename" </li>
<li>testhdf5_fortran release dll > "Your output filename" </li>
<li>testhdf5_fortran debug > "Your output filename" </li>
<li>testhdf5_fortran debug dll > "Your output filename"</li>
</ul>
<p class="note">Notes:</p>
<p class="note">Use Notepad or WordPad to check results. You should not find any FAILED marks
in your output files.</p>
</li>
<li>
<h5>5. HDF5 High-Level C library test</h5>
<p>Skip this step UNLESS you have built HDF5 High-Level libraries and want to
test them.</p>
<p>DLLs listed below should be placed into the Windows system directory. A batch
file named <span class="filename">install_hldll.bat</span> is included in
<span class="filename">c:\MyHDFstuff\hdf5</span> directory. Run this batch file
and the following HDF5 high level DLLs will be copied to the system directory.</p>
<ul class="normal">
<li>c:\MyHDFstuff\hdf5\proj\hdf5_hldll\Release\hdf5_hldll.dll</li>
<li>c:\MyHDFstuff\hdf5\proj\hdf5_hldll\Debug\hdf5_hldlld.dll</li>
</ul>
<p>Run <span class="filename">test_hdf5_hl.bat</span> in the
<span class="filename">hdf5\hl\test</span> directory at the command prompt as
below:</p>
<ul class="normal">
<li>test_hdf5_hl release >"Your output filename" </li>
<li>test_hdf5_hl release dll >"Your output filename" </li>
<li>test_hdf5_hl debug >"Your output filename" </li>
<li>test_hdf5_hl debug dll >"Your output filename"</li>
</ul>
<p class="note">Notes:</p>
<p class="note">Use Notepad or WordPad to check results. You should not find any FAILED marks
in your output files.</p>
</li>
<li>
<h5>6. HDF5 High-Level C++ library test</h5>
<p>Skip this step UNLESS you have built HDF5 High-Level C++ libraries and want
to test them.</p>
<p>DLLs listed below should be placed into the Windows system directory. A batch
file named <span class="filename">install_hlcppdll.bat</span> is included in
<span class="filename">c:\MyHDFstuff\hdf5</span> directory. Run this batch file
and the following HDF5 high level DLLs will be copied to the system directory.</p>
<ul class="normal">
<li>c:\MyHDFstuff\hdf5\proj\hdf5_hl_cppdll\Release\hdf5_hl_cppdll.dll</li>
<li>c:\MyHDFstuff\hdf5\proj\hdf5_hl_cppdll\Debug\hdf5_hl_cppdlld.dll</li>
</ul>
<p>Run <span class="filename">test_hdf5_hl_cpp.bat</span> in the
<span class="filename">hdf5\hl\c++\test</span> directory at the command prompt
as below:</p>
<ul class="normal">
<li>test_hdf5_hl_cpp release >"Your output filename" </li>
<li>test_hdf5_hl_cpp release dll >"Your output filename" </li>
<li>test_hdf5_hl_cpp debug >"Your output filename" </li>
<li>test_hdf5_hl_cpp debug dll >"Your output filename"</li>
</ul>
<p class="note">Notes:</p>
<p class="note">Use Notepad or WordPad to check results. You should not find any FAILED marks
in your output files.</p>
</li>
<li>
<h5>7. HDF5 High-Level Fortran library test</h5>
<p>Skip this step UNLESS you have built HDF5 High-Level Fortran libraries and
want to test them.</p>
<p>DLLs listed below should be placed into the Windows system directory. A batch
file named <span class="filename">install_hlf90dll.bat</span> is included in
<span class="filename">c:\MyHDFstuff\hdf5</span> directory. Run this batch file
and the following HDF5 high level DLLs will be copied to the system directory.</p>
<ul class="normal">
<li>c:\MyHDFstuff\hdf5\proj\hdf5_hl_f90cstubdll\Release\hdf5_hl_f90cstubdll.dll</li>
<li>c:\MyHDFstuff\hdf5\proj\hdf5_hl_f90cstubdll\Debug\hdf5_hl_f90cstubdlld.dll</li>
<li>c:\MyHDFstuff\hdf5\proj\hdf5_hl_fortrandll\Release\hdf5_hl_fortrandll.dll</li>
<li>c:\MyHDFstuff\hdf5\proj\hdf5_hl_fortrandll\Debug\hdf5_hl_fortrandlld.dll</li>
</ul>
<p>Run <span class="filename">test_hdf5_hl_fortran.bat</span> in the
<span class="filename">hdf5\hl\fortran\test</span> directory at the command prompt
as below:</p>
<ul class="normal">
<li>test_hdf5_hl_fortran release >"Your output filename" </li>
<li>test_hdf5_hl_fortran release dll >"Your output filename" </li>
<li>test_hdf5_hl_fortran debug >"Your output filename" </li>
<li>test_hdf5_hl_fortran debug dll >"Your output filename"</li>
</ul>
<p class="note">Notes:</p>
<p class="note">Use Notepad or WordPad to check results. You should not find any FAILED marks
in your output files.</p>
</li>
</ul>
<h3><a name="step3_section2"><u>STEP 3: Installing HDF5 Libraries</u></a></h3>
<p>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 <span class="filename">installhdf5lib.bat</span>
under <span class="filename">c:\MyHDFstuff\hdf5</span> directory. Run the batch
file, you may see a folder called hdf5lib under <span class="filename">c:\MyHDFstuff\hdf5</span>.
</p>
<p>The <release> layout of <hdf5lib> should be:</p>
<ul class="normal">
<li>release\include -- HDF5 header files </li>
<li>release\bin -- HDF5 static tool executables </li>
<li>release\bindll -- HDF5 DLL tool executables </li>
<li>release\lib -- HDF5 static libraries </li>
<li>release\dll -- HDF5 DLLs</li>
</ul>
<p>You may also find the similar layout for the <debug>. </p>
<p class="right"><a href="#section2">Go to TOP Section II</a></p>
<p class="right"><a href="#content_table">Go to Table of Contents</a></p>
<hr class="second">
<h2><a name="section3_examples">Section III: How to build Examples
(Optional)</a></h2>
<hr class="second">
<p>This section include:</p>
<p><a href="#cexamples">How to build and test C examples</a></p>
<p><a href="#cppexamples">How to build and test C++ examples</a></p>
<p><a href="#f90examples">How to build and test Fortran examples</a></p>
<p><a href="#hlcexamples">How to build and test High Level C examples</a></p>
<p><a href="#hlf90examples">How to build and test High Level Fortran examples</a></p>
<p class="note">Notes:</p>
<ul class="intable">
<li>
<p class="note">1. To build HDF5 C++ examples, HDF5 C++ library must have been built in
Section III, step
I. </p>
</li>
<li>
<p class="note">2. To build HDF5 Fortran examples, HDF5 Fortran library must have been built
in Section III, step I. </p>
</li>
<li>
<p class="note">3. To build HDF5 High Level C examples, HDF5 High Level C library must have
been built in Section III, step I.</p>
</li>
<li>
<p class="note">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 <span style="font-size: 100%">HDF5</span> 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. </p>
</li>
</ul>
<p> </p>
<hr />
<ul class="intable">
<li>
<h3><a name="cexamples"><u>How to build and test C examples:</u></a></h3>
<ul class="intable">
<li>
<p>1. Open C Examples Workspace</p>
<p>Invoke Microsoft Visual C++, go to <span class="filename">"File"</span>
and select the <span class="filename">"Open Workspace"</span> option.</p>
<p>Then open the workspace <span class="filename">c:\MyHDFstuff\hdf5\windows\examples\allexamples\allexamples.dsw.</span></p>
</li>
<li>
<p>2. Compile/Build C Examples</p>
<p>Select <span class="filename">"Build"</span>, then Select
<span class="filename">"Set Active Configuration"</span>. </p>
<ul class="intable">
<li>
<p>To build debug versions of C examples,</p>
<p>In <span class="filename">"Project configurations"</span>, select
<span class="filename">"allexamples -- Win32 Debug"</span>, select
<span class="filename">"ok"</span>. Select <span class="filename">"Build"
-> "Build" or "Rebuild All"</span> to build debug version of project
<span class="filename">"allexamples"</span>. </p>
</li>
<li>
<p>To build release versions of C examples,</p><p>In <span class="filename">"Project configurations"</span>, select
<span class="filename">"allexamples -- Win32 Release"</span>, select
<span class="filename">"ok".</span> Select <span class="filename">"Build"
-> "Build" or "Rebuild All"</span> to build release version of project
<span class="filename">"allexamples"</span>. </p>
</li>
</ul>
<p>When the debug build or release build is done, there should be the following
subdirectories in c:\MyHDFstuff\hdf5\examples\</p>
<ul class="normal">
<li>attributetest </li>
<li>attributetestdll </li>
<li>chunkread </li>
<li>chunkreaddll </li>
<li>compoundtest </li>
<li>compoundtestdll </li>
<li>extendwritetest </li>
<li>extendwritetestdll </li>
<li>grouptest </li>
<li>grouptestdll </li>
<li>readtestdll </li>
<li>selectest </li>
<li>selectestdll </li>
<li>writetest </li>
<li>writetestdll</li>
</ul>
</li>
<li>
<p>3. Install C Examples</p>
</li>
<li>
<p>Invoke a command prompt window and run the batch file
<span class="filename">InstallExamples.bat</span> which resides in the top level
directory (<span class="filename">c:\MyHDFstuff\hdf5</span>). This file creates
4 new directories, <span class="filename">examplesREL, examplesRELDLL, examplesDBG,
and examplesDBGDLL</span>, in the <span class="filename">c:\MyHDFstuff\hdf5\examples</span>
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. </p>
</li>
<li>
<p>4.Test C examples</p>
<p>We provide a batch file named <span class="filename">testExamples.bat</span>
and an expected examples tests output file named <span class="filename">testExamples_exp_output.txt</span>
in <span class="filename">c:\MyHDFstuff\hdf5\examples</span> directory for you
to test HDF5 C examples.</p>
<p>testExamples.bat batch file has 4 options:</p>
<ul class="normal">
<li>testExamples release -- for release version </li>
<li>testExamples release dll -- for release DLL version </li>
<li>testExamples debug -- for debug version </li>
<li>testExamples debug dll -- for debug DLL version</li>
</ul>
<p>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 wil be given. </p>
</li>
</ul>
</li>
<li>
<h3><a name="cppexamples"><u>How to build and test C++ examples</u></a></h3>
<ul class="intable">
<li>
<p>1. Open C++ Examples Workspace</p>
<p>Invoke Microsoft Visual C++, go to <span class="filename">"File"</span>
and select the <span class="filename">"Open Workspace"</span> option.</p>
<p>Then open the workspace</p>
<p class="filename">c:\myHDFstuff\hdf5\windows\c++\examples\allcppexamples\allcppexamples.dsw.</p>
</li>
<li>
<p>2. Compile/Build C++ Examples</p>
<p>Select <span class="filename">"Build"</span>, then Select
<span class="filename">"Set Active Configuration"</span>.</p>
<ul class="intable">
<li>
<p>To build debug versions of C++ examples,</p>
<p>In <span class="filename">"Project configurations"</span>, select
<span class="filename">"allcppexamples -- Win32 Debug"</span>, select
<span class="filename">"ok"</span>. Select <span class="filename">"Build"
-> "Build" or "Rebuild All"</span> to build debug version of project
<span class="filename">"allcppexamples".</span> </p>
</li>
<li>
<p>To build release versions of C++ examples,</p>
<p>In <span class="filename">"Project configurations"</span>, select
<span class="filename">"allcppexamples -- Win32 Release"</span>, select
<span class="filename">"ok"</span>. Select <span class="filename">"Build"
-> "Build" or "Rebuild All"</span> to build release version of project
<span class="filename">"allcppexamples".</span> </p>
</li>
</ul>
<p>When the debug build or release build is done, there should be the following
subdirectories in <span class="filename">c:\MyHDFstuff\hdf5\c++\examples\</span></p>
<ul class="normal">
<li>chunkstest </li>
<li>chunkstestdll </li>
<li>compoundtest </li>
<li>compoundtestdll </li>
<li>createtest </li>
<li>createtestdll </li>
<li>extend_dstest </li>
<li>extend_dstestdll </li>
<li>h5grouptest </li>
<li>h5grouptestdll </li>
<li>readdatatest </li>
<li>readdatatestdll </li>
<li>writedatatest </li>
<li>writedatatestdll </li>
</ul>
</li>
<li>
<p>3. Install C++ Examples</p>
</li>
<li>
<p>Invoke a command prompt window and run the batch file
<span class="filename">InstallcppExamples.bat</span> which resides in the top
level directory (<span class="filename">c:\MyHDFstuff\hdf5</span>). This file
creates 4 new directories, <span class="filename">cppexamplesREL, cppexamplesRELDLL,
cppexamplesDBG, and cppexamplesDBGDLL</span>, in the <span class="filename">
c:\MyHDFstuff\c++\examples</span> 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. </p>
</li>
<li>
<p>4. Test C++ Examples</p>
<p>We provide a batch file named <span class="filename">testcppExamples.bat</span>
in <span class="filename">c:\MyHDFstuff\hdf5\c++\examples</span> directory for
you to test HDF5 C++ examples. </p>
<p><span class="filename">testcppExamples.bat</span> batch file has 4 options:</p>
<ul class="normal">
<li>testcppExamples release -- for release version </li>
<li>testcppExamples release dll -- for release DLL version </li>
<li>testcppExamples debug -- for debug version </li>
<li>testcppExamples debug dll -- for debug DLL version</li>
</ul>
<p>Invoke a command prompt window and run testcppExamples with appropriate options.
You should get <span class="filename">"All HDF5 C++ examples tests passed."</span>
when the C++ examples are built successfully. Otherwise, the difference between
the expected outputs and actual outputs will be given. </p>
</li>
</ul>
</li>
<li>
<h3><a name="f90examples"><u>How to Build and test HDF5 Fortran examples:</u></a></h3>
<ul class="intable">
<li>
<p>1. Open Fortran Examples Workspace</p>
<p>Invoke Compaq Visual Fortran or intel Fortran under Microsoft Visual studio
development environment, go to <span class="filename">"File"</span> and select
the <span class="filename">"Open Workspace" </span>option. </p>
<p>Then open the workspace</p>
<p class="filename">c:\MyHDFstuff\hdf5\windows\fortran\examples\allf90examples\allf90examples.dsw.</p>
</li>
<li>
<p>2. Compile/Build Fortran Examples</p>
<p>Select "Build", then Select "Set Active Configuration".</p>
<ul class="intable">
<li>
<p>To build debug versions of Fortran examples,</p>
<p>In <span class="filename">"Project configurations"</span>, select
<span class="filename">"allf90examples -- Win32 Debug"</span>, select
<span class="filename">"ok"</span>. Select <span class="filename">"Build"
-> "Build" or "Rebuild All"</span> to build debug version of project
<span class="filename">"allf90examples".</span> </p>
</li>
<li>
<p>To build release versions of Fortran examples,</p>
<p>In <span class="filename">"Project configurations"</span>, select
<span class="filename">"allf90examples -- Win32 Release"</span>, select
<span class="filename">"ok"</span>. Select <span class="filename">"Build"
-> "Build" or "Rebuild All"</span> to build release version of project
<span class="filename">"allf90examples".</span> </p>
</li>
</ul>
<p>When the debug build or release build is done, there should be the following
subdirectories in <span class="filename">c:\MyHDFstuff\hdf5\fortran\examples\
</span></p>
<ul class="normal">
<li>attreexampletest </li>
<li>attreexampletestdll </li>
<li>compoundtest </li>
<li>compoundtestdll </li>
<li>dsetexampletest </li>
<li>dsetexampletestdll </li>
<li>fileexampletest </li>
<li>fileexampletestdll </li>
<li>groupexampletest </li>
<li>groupexampletestdll </li>
<li>grpdsetexampletest </li>
<li>grpdsetexampletestdll </li>
<li>grpittest </li>
<li>grpittestdll </li>
<li>grpsexampletest </li>
<li>grpsexampletestdll </li>
<li>hyperslabtest </li>
<li>hyperslabtestdll </li>
<li>mountexampletest </li>
<li>mountexampletest </li>
<li>refobjexampletest </li>
<li>refobjexampletestdll </li>
<li>refregexampletest </li>
<li>refregexampletestdll </li>
<li>rwdsetexampletest </li>
<li>rwdsetexampletestdll </li>
<li>selecteletest </li>
<li>selecteletestdll</li>
</ul>
</li>
<li>
<p>3. Install Fortran Examples</p>
</li>
<li>
<p>Invoke a command prompt window and run the batch file
<span class="filename">Installf90Examples.bat</span> which resides in the top
level directory (<span class="filename">c:\MyHDFstuff\hdf5</span>). This file
creates 4 new directories, <span class="filename">f90examplesREL, f90examplesRELDLL,
f90examplesDBG, and f90examplesDBGDLL</span>, in the <span class="filename">
c:\MyHDFstuff\fortran\examples</span> 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. </p>
</li>
<li>
<p>4. Test Fortran Examples</p>
</li>
<li>
<p>The batch file is not available for the time being.</p>
</li>
</ul>
</li>
<li>
<h3><a name="hlcexamples"><u>How to build and test HDF5 High Level C examples</u></a></h3>
<ul class="intable">
<li>
<p>1. Open HL C Examples Workspace.</p>
<p>Invoke Microsoft Visual C++ 6.0, go to <span class="filename">"File"</span>
and select the <span class="filename">"Open Workspace" </span>option.</p>
<p>Then open the workspace</p>
<p class="filename">c:\MyHDFstuff\hdf5\windows\hl\hl_c_examples\hl_c_examples.dsw.</p>
</li>
<li>
<p>2. Compile/Build HL C Examples</p>
<p>Select <span class="filename">"Build"</span>, then Select
<span class="filename">"Set Active Configuration".</span></p>
<ul class="intable">
<li>
<p>To build debug versions of High Level C examples,</p>
<p>In <span class="filename">"Project configurations"</span>, select
<span class="filename">"hl_c_examples -- Win32 Debug"</span>, select
<span class="filename">"ok"</span>. Select <span class="filename">"Build"
-> "Build" or "Rebuild All"</span> to build debug version of project
<span class="filename">"hl_c_examples"</span>. </p>
</li>
<li>
<p>To build release versions of High Level C examples,</p>
<p>In <span class="filename">"Project configurations"</span>, select
<span class="filename">"hl_c_examples -- Win32 Release"</span>, select
<span class="filename">"ok"</span>. Select <span class="filename">"Build"
-> "Build" or "Rebuild All"</span> to build release version of project
<span class="filename">"hl_c_examples"</span>. </p>
</li>
</ul>
<p>When the debug build or release build is done, there should be the following
subdirectories in <span class="filename">c:\MyHDFstuff\hdf5\hl\hl_c_examples.
</span></p>
<ul class="normal">
<li>ex_images </li>
<li>ex_imagesdll </li>
<li>ex_lite </li>
<li>ex_litedll </li>
<li>ex_table </li>
<li>ex_tabledll</li>
<li>ex_ds</li>
<li>ex_dsdll</li>
<li>ex_packet</li>
<li>ex_packetdll</li>
</ul>
</li>
<li>
<p>3. Install HL C examples</p>
</li>
<li>
<p>Invoke a command prompt window and run the batch file
<span class="filename">Install_hlcexamples.bat</span> which resides in the top
level directory (<span class="filename">c:\MyHDFstuff\hdf5</span>). This file
creates 4 new directories, <span class="filename">HLCexamplesRELEASE, HLCexamplesRELEASEDLL,
HLCexamplesDEBUG, and HLCexamplesDEBUGDLL</span> in the
<span class="filename">c:\MyHDFstuff\hl\hl_c_examples</span> 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. </p>
</li>
<li>
<p>4. Test HL C examples</p>
<p>We provide a batch file named <span class="filename">test_hl_cexamples.bat</span>
in <span class="filename">c:\MyHDFstuff\hdf5\hl\hl_c_examples\</span> directory
for you to test HDF5 High Level C examples. </p>
<p><span class="filename">test_hl_cexamples.bat</span> batch file has 4 options:</p>
<ul class="normal">
<li>test_hl_cexamples release -- for release version </li>
<li>ttest_hl_cexamples release dll -- for release DLL version </li>
<li>test_hl_cexamples debug -- for debug version </li>
<li>test_hl_cexamples debug dll -- for debug DLL version</li>
</ul>
<p>Invoke a command prompt window and run <span class="filename">test_hl_cexamples.bat</span>
with appropriate options. When you run <span class="filename">"test_hl_cexamples
release"</span>, When you run "test_hl_cexamples.bat" with each option, if you see the
following messages at the end: </p>
<p class="insmes"> All of the HL C Examples Passed!</p>
<p>You have built HL C examples successfully. Otherwise, HL C examples Failed to build.</p>
<h3><a name="hlf90examples"><u>How to build and test HDF5 High Level Fortran examples:</u></a></h3>
<ul class="intable">
<li>
<p>1. Open HL Fortran Examples Workspace</p>
</li>
<li>
<p>Invoke Compaq Visual Fortran 6.6c, open the workspace <span class="filename">c:\MyHDFstuff\hdf5\windows\hl\fortran\examples\allhlf90examples\allhlf90examples.dsw</span>
</p>
</li>
<li>
<p>2. Compile/Build HL Fortran Examples</p>
<p>Select "Build", then Select "Set Active Configuration"</p>
<ul class="intable">
<li>
<p>To build debug versions of High Level Fortran examples,</p>
<p>In "Project configurations", select "allhlf90examples -- Win32 Debug", select "ok". Select
"Build" -> "Build" or "Rebuild All" to build debug version of project "allhlf90examples".
</p>
</li>
<li>
<p>To build release versions of Fortran examples.</p>
<p>In "Project configurations", select "allhlf90examples -- Win32 Release", select "ok". Select
"Build" -> "Build" or "Rebuild All" to build release version
of project "allhlf90examples".
</p>
</li>
</ul>
<p> When the debug build or release build is done, there should be the following subdirectories in <span class="filename">c:\MyHDFstuff\hdf5\hl\fortran\examples</span></p>
<ul class="normal">
<li>ex_lite</li>
<li>ex_litedll</li>
</ul>
</li>
<li>
<p>3. Install HL Fortran Examples</P>
<p>Invoke a command prompt window and run the batch file<span class="filename">Install_hlf90examples.bat</span>
which resides in the top level directory <span class="filename">(c:\MyHDFstuff\hdf5)</span>. This file creates 4 new directories,
<span class="filename">HLf90examplesRELEASE, HLf90examplesRELEASEDLL, HLf90examplesDEBUG,and HLf90examplesDEBUGDLL,</span> in the directory
<span class="filename">c:\MyHDFstuff\hdf5\hl\fortran\examples </span> and places all the executables in it. Both the release
and debug versions of the examples should be built before this step is done.</p>
</li>
<li>
<p>4. Test HL Fortran Examples</p>
<p>We provide a batch file named <span class="filename">test_hl_f90examples.bat</span> in directory <span class="filename">
c:\MyHDFstuff\hdf5\hl\fortran\examples </span>for you to test HDF5 high level fortran examples.</p>
<p><span class="filename"> test_hl_f90examples.bat</span> batch file has 4 options:</p>
<ul class="normal">
<li>test_hl_f90examples release -- for release version</li>
<li>test_hl_f90examples release dll -- for release DLL version</li>
<li>test_hl_f90examples debug -- for debug version</li>
<li>test_hl_f90examples debug dll -- for debug DLL version</li>
</ul>
<p>Invoke a command prompt window and run <span class="filename">test_hl_f90examples.bat</span> with appropriate options.</p>
<p>When you run "test_hl_f90examples release", the output will look like:</p>
<ul class="normal">
<li>release version of High Level Fortran examples PASSED</li>
</ul>
<p>Similar messages should be generated with another three options If the high level Fortran examples are built successfully.</p>
</li>
</ul>
</ul>
<p class="right"><a href="#section3_examples">Go to TOP Section III</a></p>
<p class="right"><a href="#content_table">Go to Table of Contents</a></p>
<hr class="second" />
<h2><a name="section4">Section IV: Building an application using the HDF5 library
or DLL</a></h2>
<hr class="second">
<p class="note">Warnings:</p>
<p class="note">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. </p>
<ul class="intable">
<li>
<h3>1. To use HDF5 static library</h3>
<ul class="intable">
<li><p>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: </p>
<ul class="normal">
<li><span class="filename">c:\MyHDFstuff\hdf5\hdf5lib\release\include</span></li>
<li><span class="filename">c:\MyHDFstuff\hdf5\hdf5lib\release\lib</span></li>
</ul>
</li>
<li><p>If you have installed HDF5 library in
<a href="#step3_section2">Section II, step 3</a>, We assume that
you will use Zlib and Szip compression with HDF5 library. </p></li>
<li><p>To specify these locations in the settings for your VC++ project, you may choose
one of the following two methods.</p>
<ul class="intable">
<li>
<h4><u>Method One</u></h4>
<ul class="intable">
<li>
<h4><a name="method1_header">To insert the path that specifies HDF5 and Zlib,
Szip header files:</a></h4>
<ol style="LIST-STYLE-TYPE: lower-roman">
<li>
<p>Open your VC++ project in Microsoft Visual C++ and make sure it is the
active project. </p>
</li>
<li>
<p>Go to the <span class="filename">Project</span> menu and chose the
<span class="filename">"Settings"</span> option.</p>
</li>
<li>
<p>Choose the build configuration you would like to modify in the drop down
menu labeled with <span class="filename">"Settings For:"</span></p>
</li>
<li>
<p>Choose the <span class="filename">C/C++</span> tab</p>
</li>
<li>
<p>Choose <span class="filename">"Preprocessor</span>" in the drop down menu
labeled with <span class="filename">"Category:"</span></p>
</li>
<li>
<p>In a text-area labeled with "Additional include directories:", add HDF5,
Zlib, and Szip header files directories. For example:</p>
<ul class="normal">
<li><span class="filename">c:\MyHDFstuff\hdf5\hdf5lib\release\include </span> </li>
<li><span class="filename">c:\zlib122\include </span> </li>
<li><span class="filename">c:\szip\include</span></li>
</ul>
<p>Then click OK.</p>
</li>
<li>
<p>(optional) to use HDF5 Fortran static library, the location of Fortran
module files should be specified by following<span class="filename"> Project->Settings->Fortran->Preprocessor</span>,
and in a test-area labeled with <span class="filename">"INCLUDE and USE Paths:"</span>,
add HDF5 Fortran module files directories. For example: </p>
<ul class="normal">
<li><span class="filename">c:\MyHDFstuff\hdf5\hdf5lib\release\include</span></li>
</ul>
</li>
</ol>
</li>
<li>
<h4><a name="link_hdf5">To link the HDF5 library with your application:</a></h4>
<ol style="LIST-STYLE-TYPE: lower-roman">
<li>
<p>Open your VC++ project in Microsoft Visual C++ and make sure it is the
active project.</p>
</li>
<li>
<p>Go to the <span class="filename">Project</span> menu and chose the
<span class="filename">"Add to Project"</span> option and then
<span class="filename">"Files"</span> option.</p>
</li>
<li>
<p>Change the <span class="filename">"Files of type:"</span> to
<span class="filename">"Library Files (.lib)".</span></p>
</li>
<li>
<p>Navigate through the directories until you find the location of the
<span class="filename">hdf5.lib</span>. </p>
</li>
<li>
<p>Select <span class="filename">hdf5.lib</span> and click
<span class="filename">OK</span>.</p>
</li>
<li>
<p>repeat step i-v, to select<span class="filename"> zdll.lib and szlibdll.lib</span>.</p>
</li>
<li>
<p>(optional) repeat step i-v, to select <span class="filename">hdf5_cpp.lib</span>
to link with HDF5 C++ static library.</p>
</li>
<li>
<p>(optional) repeat step i-v5, to select <span class="filename">hdf5_fortran.lib</span>
to link with HDF5 Fortran static library.</p>
</li>
</ol>
</li>
</ul>
</li>
<li>
<h4><u>Method Two</u></h4>
<blockquote>
<ol style="LIST-STYLE-TYPE: lower-roman">
<li>
<p>Go to <span class="filename">Tools->Options->Directorie</span>s,</p>
</li>
<li>
<p>Insert the correct HDF5, Zlib, Szip paths for both headers (include) and
libraries. For example, </p>
<ul class="normal">
<li><span class="filename">c:\MyHDFstuff\hdf5\hdf5lib\release\include </span> </li>
<li><span class="filename">c:\MyHDFstuff\hdf5\hdf5lib\release\lib </span> </li>
<li><span class="filename">c:\zlib122\include </span> </li>
<li><span class="filename">c:\zlib122\lib </span> </li>
<li><span class="filename">c:\szip\include </span> </li>
<li><span class="filename">c:\szip\dl</span>l</li>
</ul>
</li>
<li>
<p>Go to the <span class="filename">Project</span> menu and choose the
<span class="filename">"Settings"</span> option.</p>
</li>
<li>
<p>Find the <span class="filename">"link"</span> option and
<span class="filename">"Input"</span> category, insert
<span class="filename">"zdll.lib, szlibdll.lib, hdf5.lib"</span>.</p>
</li>
<li>
<p>(Optional) repeat step iii-iv, to insert <span class="filename">"hdf5_cpp.lib"</span>
if you want to use HDF5 C++ static library.</p>
</li>
<li>
<p>(Optional) repeat step iii-iv, to insert <span class="filename">"hdf5_fortran.lib"</span>
if you want to use HDF5 Fortran static library.</p>
</li>
</ol>
</blockquote>
</li>
</ul>
</li>
</ul>
</li>
<li>
<h3>2. To use HDF5 Dynamic Link Library</h3>
<blockquote>
<ol style="LIST-STYLE-TYPE: lower-roman">
<li>
<p>Follow the steps for specifying the location of the header files as shown
in <a href="#method1_header">Method One.</a></p>
</li>
<li>
<p>Follow the steps for linking the HDF5 library as shown in
<a href="#link_hdf5">Method One.</a> except now link the export
library that is created with the DLL. The export library is called
<span class="filename">hdf5dll.lib</span> for HDF5 C libray,
<span class="filename">hdf5_cppdll.lib</span> for HDF5 C++ library, and
<span class="filename">hdf5_fortrandll.lib</span> for HDF5 Fortran library.</p>
</li>
<li>
<p>Place the DLL in a location that Windows will be able to locate it. The searched
path and order for DLL's is</p>
<ol>
<li>
<p>The Windows system directory. The GetSystemDirectory function retrieves
the path of this directory.</p>
</li>
<li>
<p>The Windows directory. The GetWindowsDirectory function retrieves the path
of this directory.</p>
</li>
<li>
<p>The directories listed in the PATH environment variable.</p>
</li>
</ol>
</li>
<li>
<p>To modify your own application settings, please DO FOLLOW the<a href="#section11_pointers">
"DLL Hints" at Section XI "HELPFUL POINTERS".</a></p>
</li>
</ol>
</blockquote>
</li>
</ul>
<p class="right"><a href="#section4">Go to TOP Section IV</a></p>
<p class="right"><a href="#content_table">Go to Table of Contents</a></p>
<hr class="second">
<h2><a name="section5">Section V: How to disable Gzip(Zlib)/Szip compression</a></h2>
<hr class="second">
<p class="note">Warnings:</p>
<p class="note">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. </p>
<ul class="intable">
<li>
<h3>1. Disable Gzip compression</h3>
<ul class="intable">
<li><p>If you would like to remove Gzip compression from the HDF5 library, follow
the steps below.<ul class="intable"></p>
<li>1.1 Open the H5pubconf.h file from the <span class="filename">c:\MyHDFstuff\hdf5\src</span>
directory and remove (or comment out) the following two lines:
<ul class="normal">
<li><p class="insmes">#define H5_HAVE_ZLIB_H 1 </p></li>
<li><p class="insmes">#define H5_HAVE_FILTER_DEFLATE 1</p></li>
</ul>
then save the file.
</li>
<li>1.2 Delete HDF5_EXT_ZLIB environment variable if you have set it in preconditions.</li>
<li>1.3 Run-compile HDF5 library according to
<a href="#section2">Section II.</a></li>
</ul>
</li>
<li><p>When you disable Gzip, you may get the following message when building HDF5
libraries:</p>
<ul class="normal">
<li>The following environment variables were not found $(HDF5_EXT_ZLIB)</li>
</ul>
</li>
<li><p>This message can be ignored.</p></li>
</ul>
</li>
<li>
<h3>2. Disable Szip compression (both encoder and decoder)</h3>
<ul class="intable">
<li><p>If you would like to remove Szip compression from the HDF5 library, follow
the steps below.</p>
<ul class="intable">
<li>2.1 Open the H5pubconf.h file from the <span class="filename">c:\MyHDFstuff\hdf5\src</span>
directory and remove (or comment out) the following two lines:
<ul class="normal">
<li><p class="insmes">#define H5_HAVE_SZLIB_H 1 </p></li>
<li><p class="insmes">#define H5_HAVE_FILTER_SZIP 1</p></li>
</ul>
</li>
<li>then save the file.</li>
<li>2.2 Delete <span class="filename">HDF5_EXT_SZIP</span> environment variable
if you have set it in preconditions.</li>
<li>2.3 Run-compile HDF5 library according to
<a href="#section2">Section II.</a>
</li>
</ul>
<p>When you disable Szip, you may get the following message when building HDF5
libraries: </p>
<ul class="normal">
<li>The following environment variables were not found $(HDF5_EXT_SZIP)</li>
</ul>
<p>This message can be ignored.</p>
<p class="note">Notes:</p>
<p class="note">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<a href="#section2">
Section II.</a></p>
</li>
</ul>
</li>
<li>
<h3>3. Disable Szip encoder</h3>
<p>If you would like to just disable Szip encoder from the HDF5 library while
keeping Szip decoder enabled, follow the steps below. </p>
<blockquote>
<ul class="intable">
<li>3.1 Download Szip library without encoder</li>
<li>Szip library is different if you want to disable Szip encoder. Download
<span class="filename">szip_noencoder</span> binaries from
<a href="ftp://ftp.ncsa.uiuc.edu/HDF/szip/2.0/bin/windows" target="blank" ,>
ftp://ftp.ncsa.uiuc.edu/HDF/szip/2.0/bin/windows.</a> The Szip library and header
path should also be set up accordingly (refer to
<a href="#precondition6">Precondition 6.)</a> </p>
</li>
<li>3.2 Run-compile HDF5 library according to
<a href="#section2">Section II.</a></li>
</ul>
</blockquote>
</li>
</ul>
<p class="right"><a href="#section5">Go to TOP Section V</a></p>
<p class="right"><a href="#content_table">Go to Table of Contents</a></p>
<hr class="second">
<h2><a name="section6">Section VI: How to build HDF5 in Microsoft Visual Studio
.Net 2003</a> </h2>
<hr class="second">
<ul class="intable">
<li>
<h3>1. Open the workspace </h3>
<ul class="intable">
<li><p>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.</p> </li>
<li><p class="note">Notes: If you are not in <a href="#section10">
Section X How to build HDF5 with Thread-Safe Feature</a>, ttsafedll.dsp should
be turned off always.</p> </li>
</ul>
</li>
<li>
<h3>2. Building HDF5 C/C++ Libraries</h3>
<ul class="intable">
<li><p>Users can choose the desirable libraries to be built according to the
following description.</p></li>
<li><h5>2.1 If you don't want to build HDF5 C++ Libraries</h5>
<p>Go to
<span class="filename">"Build"</span> and select<span class="filename"> "Configuration
Manager"</span>. Choose <span class="filename">"Release"</span> or
<span class="filename">"Debug"</span> under <span class="filename">"Active Solution
Configuration" </span>
<ul class="intable">
<li>Disable the following projects:<ul class="normal">
<li>dsets_cpp </li>
<li>dsets_cppdll </li>
<li>hdf5_cpp </li>
<li>hdf5_cppdll </li>
<li>testhdf5_cpp </li>
<li>testhdf5_cppdll </li>
<li>hdf5_hl_cpp</li>
<li>hdf5_hl_cppdll </li>
<li>hl_test_table_cpp</li>
<li>hl_test_table_cppdll </li>
<li>ttsafedll</li>
</ul>
</li>
</ul>
</li>
<li><h5>2.2 If you don't want to build HDF5 Fortran Libraries</h5>
<p>Go to
<span class="filename">"Build"</span> and select <span class="filename">"Configuration
Manager"</span>. Choose <span class="filename">"Release"</span> or
<span class="filename">"Debug"</span> under <span class="filename">"Active Solution
Configuration" </span>
<ul class="intable">
<li>Disable the following projects:<ul class="normal">
<li>flush1_fortran </li>
<li>flush1_fortrandll </li>
<li>flush2_fortran </li>
<li>flush2_fortrandll </li>
<li>hdf5_f90cstub </li>
<li>hdf5_f90cstubdll </li>
<li>hdf5_fortran </li>
<li>hdf5_fortrandll </li>
<li>libtest_cstubdll </li>
<li>libtest_fortran </li>
<li>libtest_fortrandll </li>
<li>testhdf5_fortran </li>
<li>testhdf5_fortrandll </li>
<li>hdf5_hl_fortran</li>
<li>hdf5_hl_fortrandll</li>
<li>hdf5_hl_f90cstubdll </li>
<li>hl_test_image_fortran</li>
<li>hl_test_image_fortrandll </li>
<li>hl_test_lite_fortran</li>
<li>hl_test_lite_fortrandll </li>
<li>hl_test_table_fortran</li>
<li>hl_test_table_fortrandll</li>
<li>ttsafedll</li>
</ul>
</li>
</ul>
</li>
<li>
<h5>2.3 If you don't want to build HDF5 High-Level Libraries</h5>
<p>Go to
<span class="filename">"Build"</span> and select <span class="filename">"Configuration
Manager"</span>. Choose <span class="filename">"Release"</span> or
<span class="filename">"Debug"</span> under <span class="filename">"Active Solution
Configuration" </span>
<ul class="intable">
<li>Disable the following projects:<ul class="normal">
<li>hdf5_hl </li>
<li>hdf5_hldll</li>
<li>hl_test_image</li>
<li>hl_test_imagedll </li>
<li>hl_test_lite </li>
<li>hl_test_litedll</li>
<li>hl_test_table </li>
<li>hl_test_tabledll</li>
<li>hl_test_ds </li>
<li>hl_test_dsdll</li>
<li>hl_test_packet</li>
<li>hl_test_packetdll</li>
<li>ttsafedll</li>
</ul>
</li>
</ul>
</li>
<li>
<h5>2.4 If you want to build HDF5 C++ libarty without High-Level C++ Libraries</h5>
<p>Go to <span class="filename">"Build"</span> and select
<span class="filename">"Configuration Manager"</span>. Choose
<span class="filename">"Release"</span> or <span class="filename">"Debug"</span>
under <span class="filename">"Active Solution Configuration" </span>
<ul class="intable">
<li>Disable the following projects:<ul class="normal">
<li>hdf5_hl_cpp </li>
<li>hdf5_hl_cppdll</li>
<li>hl_test_table_cpp</li>
<li>hl_test_table_cppdll</li>
<li>ttsafedll</li>
</ul>
</li>
</ul>
</li>
<li>
<h5>2.5 If you want to build HDF5 Fortran Libraries without High-Level Fortran
Libraries</h5>
<p>Go to <span class="filename">"Build"</span> and select
<span class="filename">"Configuration Manager"</span>. Choose
<span class="filename">"Release"</span> or <span class="filename">"Debug"</span>
under <span class="filename">"Active Solution Configuration" </span>
<ul class="intable">
<li>Disable the following projects:<ul class="normal">
<li>hdf5_hl_fortran </li>
<li>hdf5_hl_fortrandll</li>
<li>hdf5_hl_f90cstubdll</li>
<li>hl_test_image_fortran </li>
<li>hl_test_image_fortrandll</li>
<li>hl_test_lite_fortran </li>
<li>hl_test_lite_fortrandll</li>
<li>hl_test_table_fortran </li>
<li>hl_test_table_fortrandll</li>
<li>ttsafedll</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<p> </p>
</li>
<li>
<p>Find <span class="filename">"Build"</span> and go to
<span class="filename">"Configuration Manager"</span>; choose
<span class="filename">"release"</span> or <span class="filename">"debug"</span>,
then choose <span class="filename">"build all"</span> to build HDF5
with desired options.</p>
</li>
</ul>
<p class="note">Notes:</p>
<ul class="intable">
<li>
<p class="note">1. You need to specify the <span class="filename">zlib</span> and
<span class="filename">szip</span> include header files and libraries under<span class="filename">
Tools ->Options->Projects->VC++</span> Directories and choose Include and libraries
under the category of <span class="filename">"show directories for"</span> to
add the corresponding path if you want to use compression feature inside HDF5. </p>
</li>
<li>
<p class="note">2. Please read <a href="#section5">Section V </a>if you do
not want to use compression feature inside HDF5.</p>
</li>
<li>
<p class="note">3. Since Microsoft Visual Studio .NET will automatically enable all project
files in the <span class="filename">"Configuration Manager"</span>, you have to
manually disable those project files you don't want to build. </p>
<p class="note">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. </p>
</li>
</ul>
<p class="right"><a href="#section6">Go to TOP Section VI</a></p>
<p class="right"><a href="#content_table">Go to Table of Contents</a></p>
<hr class="second">
<h2><a name="section7">Section VII: How to build HDF5 with INTEL Compiler</a></h2>
<hr class="second">
<ul class="intable">
<li><h3>1. INTEL compiler 7.1</h3>
<ul class="intable">
<li><h4>1.1. Intel C Compiler</h4>
<ul class="intable">
<li>Go to Tools-->Select Compiler</li>
<li>Check Intel box and click OK button.</li>
</ul>
</li>
<li><h4>1.2. Intel Fortran Compiler</h4>
<ul class="intable">
<li>Go to Tools-->Select Compiler</li>
<li>Check Intel box and click OK button.</li>
<li>Go to Tools-->Customize-->Add-ins and Macro Files and check Intel Fortran
Compiler Build Tool</li>
</ul>
</li>
</ul>
<p class="note">Notes:</p>
<p class="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
<a href="ftp://ftp.ncsa.uiuc.edu/HDF/szip/2.0/bin/windows/" target="_blank">
ftp://ftp.ncsa.uiuc.edu/HDF/szip/2.0/bin/windows/.</a> The Szip library and
header path should also be set up accordingly (refer to
<a href="#precondition6">Precondition 6.) </a></p>
</li>
<li><h3>2. INTEL compiler 8.1</h3>
<ul class="intable">
<li><h4>Preconditions:</h4>
<ul class="intable">
<li><h4>a. Setup Szip Library for Intel Compiler.</h4></li>
<li>Intel compilers use different Szip library from other compilers. Szip source
codes or binaries for Intel compiler can be downloaded from the following
address: </li>
<li><a href="ftp://ftp.ncsa.uiuc.edu/HDF/szip/2.0/bin/windows/" target="_blank">
ftp://ftp.ncsa.uiuc.edu/HDF/szip/2.0/bin/windows/.</a> </li>
<li>The Szip library and header path should also be set up accordingly (refer
to <a href="#precondition6">Precondition 6.)</a></li>
</ul>
</li>
<li> <h4>b. Set up path for external libraries and headers</h4>
<ul class="intable">
<li>Skip this part if you don't want to use ANY compression features provided
by HDF5. Please do read <a href="#section5">Section V.</a></li>
<li>You have to read this part even if you want to only use Zlib or Szip. You
also need to read <a href="#section5">Section V.</a></li>
<li>Invoke Microsoft Visual C++ and go to <span class="filename">"Tools"</span>
and select <span class="filename">"Options"</span>, find
<span class="filename">"Directories"</span>;</li>
<li>Find the box <span class="filename">"Show directories for"</span>, choose
<span class="filename">"Include files"</span>, if you can not find your Zlib
and Szip header path (for example, <span class="filename">c:\zlib122\include,
c:\szip\include</span>) from the directory list, add the header path (<span class="filename">c:\zlib122\include,
c:\szip\include</span>) to the included directories. </li>
<li>Find the box <span class="filename">"Show directories for"</span>, choose
<span class="filename">"Library files"</span>, If you cannot find your Zlib
and Szip library path (for example, <span class="filename">c:\zlib122\lib,
c:\szip\dll</span>) from the directory list, add the library path (<span class="filename">c:\zlib122\lib,
c:\szip\dll</span>) to the library directories. </li>
</ul>
</li>
</ul>
</li>
<li><h4><a name="2.1_section7">2.1 Intel C++ Compiler 8.1 under MSVS C++ .Net 2003 Environment</a></h4>
<ul class="intable">
<li><p class="note">Notes:</p></li>
<li><p class="note">1. This step will build ONLY HDF5 Static and DLL C and C++ Library using
Intel C++ Compiler.</p></li>
<li><p class="note">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 <a href="#2.2_section7">2.2
</a>directly! </p></li>
</ul>
</li>
<li><h4>2.1.1 Invoke Microsoft Visual C++ .Net 2003. </h4>
<ul class="intable">
<li>From the main menu, go to<span class="filename">
"File"</span> and select <span class="filename">"Open Solution"</span>. In
the "Open <span class="filename">Solution" </span>window, Change
<span class="filename">"Files of type" </span>to<span class="filename"> "All
Project Files". </span>Choose<span class="filename"> "all.dsw" </span>under
the directory <span class="filename">c:\MyHDFstuff\hdf5\windows\proj\all.</span>
In the pop up window, choose <span class="filename">"Yes To All"</span> to
convert all project files to Visual C++ .Net project format. </li>
</ul>
</li>
<li><h4>2.1.2 Right click on the solution name <span class="filename">"all.sln"</span>
in the <span class="filename">"Solution Explorer"</span>. </h4>
<ul class="intable">
<li>From the pop-up
menu select <span class="filename">"Convert to use Intel C++ Project System"</span>
to convert all .Net project files to Intel C++ project files. </li>
</ul>
</li>
<li><h4>2.1.3 Go to <span class="filename">Tools > Options > Intel C++</span>,</h4>
<ul class="intable">
<li>In the left pane, Click <span class="filename">"General"</span>. </li>
<li>In the right pane, under "Compiler selection", choose Intel C++ 8.1. </li>
<li>Click on <span class="filename">"Intel C++ 8.1"</span> to set the
directories and default options. In <span class="filename">"Include"</span>,
Add Zlib and Szip header path (<span class="filename">c:\zlib122\include
c:\szip\include</span>). In <span class="filename">"Library"</span>, Add
Zlib and Szip Library Path (<span class="filename">c:\zlib122\lib, c:\szip\dll</span>).</li>
<li>Click <span class="filename">"OK"</span>.</li>
</ul>
</li>
<li><h4>2.1.4 Select "Build", then Select "Set Active Configuration".</h4>
<ul class="intable">
<li>Select <span class="filename">"all -- Win32 Debug" </span>or<span class="filename">
"all -- Win32 Release"</span></li>
<li>Disable all Fortran project files listed below and <span class="filename">
ttsafedll</span> project file:</li>
<li>flush1_fortran </li>
<li>flush1_fortrandll </li>
<li>flush2_fortran </li>
<li>flush2_fortrandll </li>
<li>hdf5_f90cstub </li>
<li>hdf5_f90cstubdll </li>
<li>hdf5_fortran </li>
<li>hdf5_fortrandll </li>
<li>libtest_cstubdll </li>
<li>libtest_fortran </li>
<li>libtest_fortrandll </li>
<li>testhdf5_fortran </li>
<li>testhdf5_fortrandll </li>
<li>hdf5_hl_fortran </li>
<li>hl_test_image_fortran </li>
<li>hl_test_lite_fortran </li>
<li>hl_test_table_fortran</li>
<li>ttsafedll</li>
<li>Select <span class="filename">"ok". </span>Select<span class="filename">
"Build" -> "Build" or "Rebuild All" </span>to build debug version of project<span class="filename">
"all".</span></li>
</ul>
</li>
<li><h4>2.1.5 Go back to <a href="#step2_section2">Section II,
continue with STEP 2(Testing HDF5 libraries and tools) to test HDF5 C and
C++ Libraries.</a></h4>
</li>
<li> <h4><a name="2.2_section7">2.2 Intel Fortran Compiler 8.1 under MSVS C++ .Net 2003 Environment</a></h4>
<ul class="intable">
<li><p class="note">Notes:</p></li>
<li><p class="note">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. </p></li>
<li><p class="note">2. Users who want to build ONLY HDF5 Static and DLL C and C++ LibraryPlease
go to <a href="#2.1_section7">2.1.</a> </p> </li>
</ul>
</li>
<li><h4>2.2.1 Invoke Microsoft Visual C++ .Net 2003. </h4>
<ul class="intable">
<li>From the main menu, go to
<span class="filename">"File"</span> and select <span class="filename">"Open
Solution"</span>. In the <span class="filename">"Open Solution"</span> window,
Change <span class="filename">"Files of type"</span> to
<span class="filename">"All Project Files"</span>. Choose
<span class="filename">"all.dsw"</span> under the directory
<span class="filename">c:\MyHDFstuff\hdf5\windows\proj\all.</span> In the
pop up window, choose <span class="filename">"Yes To All</span>" to convert
all project files to Visual C++ .Net project format. </li>
</ul>
</li>
<li><h4>2.2.2 Select project "flush1_fortran" in
the Solution Explorer window. In the Project menu, select "Extract Compaq Visual Fortran Project".
</h4>
<ul class="intable">
<li>Do the same thing for the following project files:</li>
<li>flush2_fortran </li>
<li>hdf5_fortran </li>
<li>testhdf5_fortran </li>
<li>hl_test_image_fortran </li>
<li>hl_test_lite_fortran </li>
<li>hl_test_table_fortran</li>
</ul>
</li>
<li><h4>2.2.3 Select project "libtest_fortran" in the Solution Explorer window. </h4>
<ul class="intable">
<li>In the Project menu, select <span class="filename">"Extract Compaq Visual Fortran Project"</span>. Since
Project file <span class="filename">"libtest_fortran</span>" 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 <span class="filename">"The Intel Fortran project"</span> as the the
main project and click <span class="filename">"OK"</span>.
Do the same thing for "hdf5_hl_fortran".</li>
</ul>
</li>
<li><h4>2.2.4 Change project dependencies of "libtest_fortran" and
"hdf5_hl_fortran"</h4>
<ul class="intable">
<li>Highlight project <span class="filename">"libtest_fortran"</span>, choose
<span class="filename">"Project"</span>-> <span class="filename">"Project
Dependencies", </span>uncheck<span class="filename"> "libtest".</span>
</li>
<li>Highlight project <span class="filename">"hdf5_hl_fortran"</span>, choose
<span class="filename">"Project"</span>-> <span class="filename">"Project
Dependencies", </span>uncheck<span class="filename"> "hdf5_hl"
and "hdf5_fortran".</span>
</li>
</ul>
</li>
<li><h4>2.2.5 Right click on the solution name "all.sln" in the "Solution Explorer". </h4>
<ul class="intable">
<li>From the pop-up menu select <span class="filename">"Convert to use Intel C++ Project System"</span>
to convert all .Net C++ project files to Intel C++ project formats. </li>
</ul>
</li>
<li><h4>2.2.6 Select "Build", then Select "Set Active Configuration".</h4>
<ul class="intable">
<li>Select<span class="filename"> "all -- Win32 Debug" </span>or<span class="filename">
"all -- Win32 Release"</span></li>
<li>Disable all Fortran DLL project files listed below and
<span class="filename">ttsafedll</span> project file:</li>
<li>flush1_fortrandll </li>
<li>flush2_fortrandll </li>
<li>hdf5_fortrandll </li>
<li>hdf5_hl_fortrandll</li>
<li>hl_test_image_fortrandll</li>
<li>hl_test_lite_fortrandll</li>
<li>hl_test_table_fortrandll</li>
<li>libtest_fortrandll </li>
<li>testhdf5_fortrandll</li>
<li>ttsafedll</li>
<li>Select <span class="filename">"ok"</span>. Select
<span class="filename">"Build"</span> -> <span class="filename">"Build" or
"Rebuild All"</span> 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. </li>
</ul>
</li>
<li><h4>2.2.7 Test HDF5 Static and High Level Fortran Library</h4>
<ul class="intable">
<li><h4><u>Test HDF5 Static Fortran Library</u></h4>
<p>Go to directory <span class="filename">c:\myHDFstuff\hdf5\fortran\test</span>,
Run batch file <span class="filename">testhdf5_fortran.bat</span> with the
following two options to test fortran static library </p></li>
<li>testhdf5_fortran release >> "Your output file name" </li>
<li>testhdf5_fortran debug >> "Your output file name"</li>
<li><p>Check your output files, there should be no "failures" at all.</p></li>
<li><h4><u>Test HDF5 High Level Fortran Library</u></h4>
<p>Go to directory <span class="filename">c:\myHDFstuff\hdf5\hl\fortran\test</span>,
Run batch file testhdf5_fortran.bat with the following two options to test
fortran static library </p></li>
<li>test_hdf5_hl_fortran release >> "Your output file name" </li>
<li>test_hdf5_hl_fortran debug >> "Your output file name"</li>
<li><p>Check your output files, there should be no "failures" at all.</p></li>
</ul>
</li>
</ul>
<p class="right"><a href="#section7">Go to TOP Section VII</a></p>
<p class="right"><a href="#content_table">Go to Table of Contents</a></p>
<hr class="second">
<h2><a name="section8">Section VIII: Building and testing Multi-threaded version
of HDF5 Library </a></h2>
<hr class="second">
<p class="note">Notes:</p>
<p class="note">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. </p>
<ul class="intable">
<li>
<h4>1. Run batch file copy_hdf.bat.</h4>
<p>Go to <span class="filename">c:\MyHDFstuff\hdf5\windows</span> and run
<span class="filename">copy_hdf.bat</span>. This process will
copy all the necessary batch files, windows specific source codes and text
files saved under <span class="filename">c:\MyHDFstuff\hdf5\windows</span> directory to the corresponding
directories under <span class="filename">hdf5</span>. </p>
</li>
<li>
<h4>2. Invoke Microsoft Visual C++ compiler Invoke Microsoft</h4>
<p>Visual C++. From the main menu, go to <span class="filename">"File"</span> and select the
<span class="filename">"Open Workspace"</span>
option. Then open the <span class="filename">c:\MyHDFstuff\hdf5\windows\proj\all\all.dsw</span> workspace.
You should find windows project files listed as <span class="filename">"all files, big files etc."</span>
on the left. </p>
</li>
<li>
<h4>3. Please refer to Section II, Step 3(3) to set the dependencies of
project "all.dsp". </h4>
<p></p>
</li>
<li>
<h4>4. Change Project settings </h4>
<ul class ="intable">
<li>Choose <span class="filename">"Project"->"Settings",</span><ul class ="intable">
<li>In the left pane of the window <span class="filename">"Project Settings"</span>, from the drop down box to the right of
<span class="filename">"Setting For:"</span>,
<ul class ="intable">
<li><u>Choose <span class="filename">"Win32 Release"</span>:</u></li>
<li>Highlight all of the static project file in the left lower pane by pressing
<span class="filename">"ctrl"</span> key while clicking the project file name.</li>
<li>In the right pane of the <span class="filename">"Project Settings"</span> window, choose
<span class="filename">"C/C++"</span>. From the drop
down box to the right of <span class="filename">"Category"</span>, choose
<span class="filename">"Code Generation", </span>under<span class="filename">
"Use run-time library:"</span>,<span class="filename">
"Single-Threaded" </span>should appear. If it is blank inside
this box, check if you highlight some dll project files (see
notes below). Change <span class="filename">"Single-Threaded" </span>
to <span class="filename">"Multithreaded"</span>.</li>
<li><u>Choose <span class="filename">"Win32 Debug"</span>;
</u></li>
<li>Highlight all of the static project file in the left lower pane by pressing
<span class="filename">"ctrl"</span> key while clicking the project file name.</li>
<li>In the right pane of the <span class="filename">"Project Settings"</span> window, choose
<span class="filename">"C/C++".</span> From the drop down box to the
right of <span class="filename">"Category"</span>, choose
<span class="filename">"Code Generation", </span>under<span class="filename"> "Use run-time library:"</span>,<span class="filename">
"Debug Single-Threaded"</span> should appear. If it is blank inside this box, check
if you highlight some dll project files. Change
<span class="filename">"Debug Single-Threaded" </span>to<span class="filename">
"Debug Multithreaded" .</span></li>
</ul>
</li>
</ul>
</li>
</ul>
<p class="note">Notes:</p>
<p class="note">1. All of the dll project files have "dll" at the end of their file names.
<p class="note">2. Static project files don't have "dll" at the end of their file names.</li>
<li>
<h4>5. Go back to <a href="#step1_4_section2">Section II, Step 1 (4)</a>, continue to build and test HDF5
library. </h4>
</li>
</ul>
<p class="right"><a href="#section8">Go to TOP Section VIII</a></p>
<p class="right"><a href="#content_table">Go to Table of Contents</a></p>
<hr class="second">
<h2><a name="section9">Section IX: Building and testing HDF5 snapshot release</a></h2>
<hr class="second">
<p class="note">Notes:</p>
<p class="note">This section is only for users who would like to build and test HDF5 snapshot
release.</p>
<h3><a name="step1_section9">Step I: Generate H5Tinit.c using Microsoft
Visual C++ 6.0</a></h3>
<ul class="intable">
<li>
<p>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
successfully created
by other compilers. </p>
<h4>1. <a href="##step1_section2" name="prevstep_section9">Previous step: section
II, step 1(1)</a><a href="#step1_section2">.</a></h4>
<h4>2. Extra steps:</h4>
<ul class="intable">
<li>1) Open c:\myHDFstuff\hdf5\windows\misc\typegen\typegen.dsw. </h4>
</li>
<li>2) Build the project file. </h4>
</li>
<li>3) Invoke command prompt and go to c:\myHDFstuff\hdf5\src. </h4>
</li>
<li>4) type H5Tinit.exe >H5Tinit.c </h4>
</li>
<li>5) Go back to section II, continue with
<a href="#step1_2_section2">step 1(2).</a></li>
</ul>
</li>
</ul>
<h3><a name="step2_section9">Step II: Generate H5f90i_gen.h and H5fortran_types.f90 using Compaq
Fortran 6.6c</a></h3>
<p class="note">Notes:</p>
<p class="note">The users who don't want to build fortran library can skip this step.</p>
<p class="note">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 <a href="#section1_3.2">
section II, step1(3.2)</a>. 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
that these three files can be created successfully by other compilers.
</p>
<ul class="intable">
<li>
<h4>1. Previous step: <a href="#step1_section1">section
II, step 1(1)</a></h4>
<h4>2. Extra Steps:</h4>
<ul class="intable">
<li>1)Follow the steps in <a href="#step1_section9">Step I to generate H5Tinit.c.</a></li>
<li>2) Open <span class="filename">H5fortran_detect_gen.dsw</span> under
directory <span class="filename">c:\myHDFstuff\hdf5\windows\misc\H5fortran_detect_gen</span>
Build the project file.</li>
<li>3) Invoke command prompt and go to <span class="filename">c:\myHDFstuff\hdf5\fortran\src</span>.</li>
<li>type</li>
<li><span class="filename">H5fortran_detect_gen.exe >
H5fortran_detect.f90</span></li>
<li>4) Open <span class="filename">c:\myHDFstuff\hdf5\windows\misc\fortrantypegen\fortrantypegen.dsw.</span>
Build the project file.</li>
<li>5) Invoke command prompt and go to <span class="filename">c:\myHDFstuff\hdf5\fortran\src.</span></li>
<li>type</li>
<li><span class="filename">H5fortran_detect.exe > H5fort_type_defines.h</span></li>
<li>6) Open <span class="filename">c:\myHDFstuff\hdf5\windows\misc\matchtypegen\matchtypegen.dsw</span>.
Build the project file.</li>
<li>7) Invoke command prompt and go to <span class="filename">c:\myHDFstuff\hdf5\fortran\src.</span></li>
<li>type</li>
<li><span class="filename">H5match_types.exe</span></li>
<li>This step will generate <span class="filename">H5f90i_gen.h </span>
and<span class="filename"> H5fortran_types.f90</span> automatically.</li>
</ul>
</ul>
<h3> Step III: Go back to <a href="#section1_3.2">section II, step1(3.2)</a></h3>
<p class="right"><a href="#section9">Go to TOP Section IX</a></p>
<p class="right"><a href="#content_table">Go to Table of Contents</a></p>
<p class="right"> </p>
<hr class="second">
<h2><a name="section10">Section X: How to build HDF5 with Thread-Safe Feature</a></h2>
<hr class="second">
<h3>Preconditions:</h3>
<ul class="intable">
<li>
<h5>1. All of the Preconditions in <a href="#preconditions">Preconditions</a>.</h5>
</li>
<li>
<h5>2. Pthread-Win32 Installed</h5>
</li>
<li>
<p class="notes">Posix Threads for Windows is a open source free software. Users can download it from
<a href="http://sources.redhat.com/pthreads-win32/">http://sources.redhat.com/pthreads-win32/</a>.</p>
</li>
<li>HDF5 release 1.8.0 supports Pthread-Win32 2.7.0 (2005-06-04) or
later. Since pthreadVC2.dll used by HDF5 1.8.0 is the release version
dll of pthread-win32, ONLY HDF5 1.8.0 release dll are supported and
tested on Windows XP. </li>
<li>
<h5>3. Set Path for Pthread-Win32 header and library</h5>
</li>
<li>Invoke Microsoft Visual C++ 6.0, go to <span class="filename">Tools->Options->Directories</span>.
</li>
<li>From the drop-down box under <span class="filename">"Show directories for:"</span>
<ul class="normal">
<li>Choose <span class="filename">"Include files"</span>, add in the path to Pthread-Win32 header file(For example: <span class="filename">
C:\PTHREADS_WIN32\INCLUDE</span>).
</li>
<li>Choose <span class="filename">"Library files"</span>, add in the path to Pthread-Winew library
(For example: <span class="filename">C:\PTHREADS_WIN32\LIB</span>).
</li>
</ul>
</li>
<li> </li>
<li>
<h5>4. Enable HDF5 Thread-safe Feature on Windows</h5>
</li>
<li>Go to directory <span class="filename">c:\MYHDFstuff\hdf5\windows\src</span>, open <span class="filename">
H5pubconf.h</span> and
find the following messages and remove those comment signs referred to by
those two arrows and save <span class="filename">H5pubconf.h.</span></li>
<li>
<p class="insmes">/*Users want to build and test hdf5 library with thread safe enabled,<br>
Make the following block active</br>
*/</p>
</li>
<li>
<p class="insmes">/* <---- </p>
</li>
<li>
<p class="insmes">#if defined _DLL</p>
</li>
<li>
<p class="insmes">#define H5_HAVE_THREADSAFE 1</p>
</li>
<li>
<p class="insmes">#define H5_HAVE_SYSTEM_SCOPE_THREADS 1</p>
</li>
<li>
<p class="insmes">#if defined TTSAFE_H</p>
</li>
<li>
<p class="insmes">#define sleep Sleep</p>
</li>
<li>
<p class="insmes">#endif</p>
</li>
<li>
<p class="insmes">#endif </p>
</li>
<li>
<p class="insmes">*/ <----</p>
</li>
<li>
<h5>5. Define Environment Variable(HDF5_EXT_PTHREAD) for PthreadVC2.lib
</h5>
</li>
<li>To define this environment variable: <span class="filename">Click
"Start" -> "Control Panel" ->
"System" -> "Advanced" -> "Environment Variables"</span>.</li>
<li> If you are logged on as administrator to the local computer AND
want to let all other users use these two environment variables, click <span class="filename">
"New"</span> under <span class="filename">"System Variables" </span>box;
otherwise, click <span class="filename">"New"</span> under <span class="filename">
"User Variables"</span> box. In the New Variable window, set
</li>
<li> <span class="filename">"Variable name"</span> as <span class="filename">
HDF5_EXT_PTHREAD</span> </li>
<li> <span class="filename">"Variable value"</span> as <span class="filename">
pthreadVC2.lib</span></li>
<li>click OK. </li>
<li>
<h5>6. Copy pthreadVC2.dll to System Directory</h5>
</li>
<li> <span class="filename">pthreadVC2.dll</span> should be copied into the location that
applications can find. One suggestion is to use the
<span class="filename">c:\WINDOWS\system</span>.
</li>
</ul>
</p>
<h3>1. Build HDF5 Release DLL with Thread-safe Feature</h3>
<ul class="intable">
<li>
<h5>1.1 Run batch file copy_hdf.bat</h5>
</li>
<li> Go to <span class="filename">c:\MyHDFstuff\hdf5\windows</span>
and run <span class="filename">copy_hdf.bat</span>. This process will copy all the necessary batch
files,windows specific source codes and text files saved under <span class="filename">c:\MyHDFstuff\hdf5\windows</span>
directory to the corresponding directories under <span class="filename">hdf5</span>.
</li>
<li>
<h5>1.2 Open workspace all.dsw</h5>
</li>
<li>Invoke Microsoft Visual C++ compiler Invoke Microsoft Visual C++.
</li>
<li>From the main menu, go to <span class="filename">"File" -> "Open Workspace", </span>
browse and open the <span class="filename">c:\MyHDFstuff\hdf5\windows\proj\all\all.dsw</span>
workspace. </li>
<li>
<h5>1.3 Add in Thread-safe Source Code for HDF5 Library.</h5>
</li>
<li>Expand project<span class="filename"> "hdf5dll"</span>, right click on <span class="filename">"source"
-> "Add Files
to Folder..."</span>, browse to add in file <span class="filename">"c:\MYHDFSTUFF\hdf5\src</a>\H5TS.c" </span>
</li>
<li>
<h5>1.4 Add Link to pthreadVC2.lib </h5>
</li>
<li>Right click on project <span class="filename">"hdf5dll"</span>, choose "<span class="filename">Set
as Active Project</span>".
</li>
<li>Go to <span class="filename">"Project" -> "Setting</span>",</li>
<li>On the left pane, choose <span class="filename">"Win32 Release"</span>
to the right of <span class="filename">"Settings For:" </span>
</li>
<li>On the right pane, choose <span class="filename">"Link"</span>, choose <span class="filename">
"Input" </span>from the drop-down box to the right of <span class="filename">
"Category:"</span> Under <span class="filename">"Object/library modules:"</span>,
add in "<span class="filename">$(HDF5_EXT_PTHREAD)</span>" (No quotation
marks).
</li>
<li>Click on <span class="filename">"OK"</span>.
</li>
<li>
<h5>1.5 Set Project Active Configurations</h5>
</li>
<li>Go to <span class="filename">"Build" -> "Set Active Configuration"</span>, choose <span class="filename">"hdf5dll-Win32 Release"</span>
under <span class="filename">"Project configurations:"</span>, Click <span class="filename">"OK".</span> </li>
<li>
<h5>1.6 Build HDF5 Release DLL with Thread-safe Feature</h5>
</li>
<li>Go to <span class="filename">"Build" -> "Build hdf5dll.dll"</span> to build HDF5 Release DLL with
thread-safe feature. Warning messages can be ignored. But there should be
no failures at all. </li>
</ul>
<h3>2. Test Thread-safe Feature of HDF5 Release DLL</h3>
<ul class="intable">
<li>
<h5>2.1 Build Release Version of Project libtestD</h5>
</li>
<li>Go to <span class="filename">"Build" -> "Set Active Configuration"</span>, choose
<span class="filename">"libtestD-Win32 Release"</span> under <span class="filename">"Project configurations:"</span>, Click <span class="filename">"OK"</span>.
</li>
<li>Go to <span class="filename">"Build" -> "Build libtestD.dll"</span> to build release version of Project
<span class="filename">libtestD</span>. </li>
<li>
<h5>2.2 Build Release Version of Project ttsafedll</h5>
</li>
<li>Go to <span class="filename">"Build" -> "Set Active Configuration"</span>,, choose
<span class="filename">"ttsafedll-Win32 Release"</span> under <span class="filename">"Project configurations:"</span>, Click <span class="filename">"OK"</span>.
</li>
<li>Go to <span class="filename">"Build" -> "Build ttsafedll.exe"</span> to build release version of Project
<span class="filename">ttsafedll.exe</span>. </li>
<li>
<h5>2.3 Install hdf5dll.dll</h5>
</li>
<li>Invoke a comand prompt, change directory to <span class="filename">c:\MYHDFSTUFF\hdf5</span>, run
batch file <span class="filename">install_dll.bat </span>to copy
<span class="filename">c:\MYHDFSTUFF\hdf5\proj\hdf5dll\release\hdf5dll.dll</span> into system
directory. </li>
<li>
<h5>2.4 Test Thread-safe Feature of HDF5 Release DLL</h5>
</li>
<li>Set project file <span class="filename">ttsafedll.dsp</span> as the active project file if it is
not. Go to <span class="filename">"Build" -> "Execute ttsafedll.exe"</span>, the following is the
test messages users should get:
</li>
<li><p class="insmes">For help use: ttsafedll.exe -help</p>
</li>
<li>
<p class="insmes">Linked with hdf5 version 1.7 release 51
</li>
<li>
<p class="insmes">Testing -- multi-dataset creation (dcreate)
</li>
<li>
<p class="insmes">Testing -- per-thread error stacks (error)
</li>
<li>
<p class="insmes">Testing -- thread cancellation safety test (cancel)
</li>
<li>
<p class="insmes">Testing -- multi-attribute creation (acreate) </li>
<li>
<p class="insmes">All tests were successful. </li>
<li>
<p class="insmes">Cleaning Up temp files... </li>
<li>Users who got the similar messages as above have successfully built the
release version of hdf5dll.dll. </li>
</ul>
<h3>3. Build, Test and Install HDF5 Library and Tools</h3>
<ul class="intable">
<li>Go back to <a href="#step1_2_section2">Section II, Step I(2)</a> to Build, test and install HDF5 libary and tools.
</li>
</ul>
<p class="right"><a href="#section10">Go to TOP Section X</a></p>
<p class="right"><a href="#content_table">Go to Table of Contents</a></p>
<p class="right"> </p>
<hr class="second">
<h2><a name="section11">Section XI: Misc.</a></h2>
<hr class="second">
<h3>1. drivers we support</h3>
<ul class="intable">
<li><p>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 <span class="filename">HDF5_DRIVER</span>
to <span class="filename">"stdio"</span>.</p></li>
<li><p>On windows XP, the following steps should be followed to set the environment
variable.</p>
<ul class="intable">
<li>a) Go to Control panel and find <span class="filename">"system"</span>,
</li>
<li>b) Click <span class="filename">"system"</span> and choose
<span class="filename">"advanced"</span>,
</li>
<li>c) Choose <span class="filename">Environment Variables</span></li>
<li>d) Add new variable <span class="filename">"HDF5_DRIVER"</span></li>
<li>e) set the <span class="filename">"HDF5_DRIVER"</span> to
<span class="filename">"stdio"</span></li>
</ul>
</li>
<li>
<p class="note">Reminder:</p>
</li>
<li>
<p class="note">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". </p>
</li>
</ul>
<h3>2. <a name="section11_pointers"> Helpful Pointers</a></h3>
<ul class="intable">
<li><p>Here are some notes that may be of help if you are not familiar with using the
Visual C++ Development Environment.</p></li>
<li><h3>2.1 Project name and location issues: </h3>
</li>
<li>If you must install <span class="filename">all.dsw</span> and
<span class="filename">all.dsp</span> in another directory, relative to
<span class="filename">hdf5</span> directory, you will be asked to locate the sub-project
files, when you open the project <span class="filename">all.dsw.</span> </li>
<li>If you want to rename all (the entire project), you will need to modify two files
<span class="filename">all.dsw</span> and <span class="filename">all.dsp</span>
as text (contrary to the explicit warnings in the files). </li>
<li>You can also modify <span class="filename">all.dsw</span> and
<span class="filename">all.dsp</span> as text, to allow these two files to be installed
in another directory. </li>
<li>
<h3>2.2 Settings... details:</h3>
</li>
<li>If you create your own project, the necessary settings can be read from the
<span class="filename">all.dsp</span> file(as text), or from the Project Settings
in the Developer Studio project settings dialog. </li>
<li>Project</li>
<li> Settings</li>
<li> C/C++</li>
<li> Category</li>
<li>
Code Generation</li>
<li>
Use run-time Library</li>
<li>These are all set to use Single-Threaded</li>
<li>
<h3>2.3 <a name="dll_hints_section4">DLL... hints:</a></h3>
</li>
<li>If you want to use DLL versions of HDF5 library in your application, you should<ol>
<li>
<p>Put HDF5 DLL into windows system directory</p>
</li>
<li>
<p>Add HDF5 DLL export library into your project</p>
</li>
<li>
<p>Follow <span class="filename">"Settings... details"</span> into the last line:
change <span class="filename">Single-Threaded </span>into
<span class="filename">Multithreaded DLL</span> or <span class="filename">Debug
Multithreaded DLL</span></p>
</li>
<li>
<p>Follow <span class="filename">"Settings.. details</span>" into PreProcessor:</p>
<p></p>
<p>Project</p>
<p> Settings</p>
<p> C/C++</p>
<p> Category</p>
<p>
PreProcessor</p>
<p>Find <span class="filename">PreProcessor definations</span> and
<span class="filename">Add _HDF5USEDLL_</span> at the end of the PreProcessor
definitions to use HDF5 C DLL.</p>
</li>
<li>
<p>(optional) Repeat 4), add <span class="filename">HDF5CPP_USEDLL</span> at the
end of the PreProcessor definitions to use HDF5 C++ DLL.</p>
</li>
<li>
<p>(optional) Follow Project->Settings->Fortran->Category->General->Predefined
Preprocess or Symbols, and add <span class="filename">"HDF5F90_WINDOWS"</span>
to use HDF5 Fortran DLL.</p>
</li>
</ol>
</li>
</ul>
</li>
</ul>
<p class="right"><a href="#section10">Go to TOP Section XI</a></p>
<p class="right"><a href="#content_table">Go to Table of Contents</a></p>
<hr class="first">
<h4>Need further assistance? email to <a href="mailto:hdfhelp@ncsa.uiuc.edu">hdfhelp@ncsa.uiuc.edu</a> or go to
<a href="http://hdf.ncsa.uiuc.edu/windows/">http://hdf.ncsa.uiuc.edu/windows/questions</a> to get help on windows</h4>
<h4 style="background-color:green;color:white;text-align:center;letter-spacing:5;">Thank you for using Hierarchical Data Format (HDF)</h4>
<p> </p>
<p> </p>
</li>
</ul>
<h3></h3>
</li>
</ul>
<h4></h4>
<h4></h4>
</body>
</html>
|