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
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * 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://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have * * access to either file, you may request a copy from help@hdfgroup.org. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
<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://hdfgroup.org" target="_blank"> HDF website (http://hdfgroup.org)</a>
is used. </p>
<h3 style="color: rgb(165, 42, 42);"><a name="content_table">Table of Contents:</a></h3>
<table style="border-width: 0pt; border-collapse: collapse;">
<tbody>
<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"> How to
build HDF5 in Visual Studio 2005</a></h3>
</td>
</tr>
<tr>
<td>
<h3><a href="#section12">Section
XII </a></h3>
</td>
<td>
<h3><a href="#section12"> Misc.</a></h3>
</td>
</tr>
</tbody>
</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-width: 0pt; border-collapse: collapse;" bordercolor="#111111" cellpadding="0" cellspacing="0">
<tbody>
<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>
</tbody>
</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://ftp.hdfgroup.org/lib-external/szip/2.0/bin/windows/" target="_blank">ftp://ftp.hdfgroup.org/lib-external/szip/2.0/bin/windows/
</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="ftp://ftp.hdfgroup.org/lib-external/zlib/1.2/bin" target="_blank">ftp://ftp.hdfgroup.org/lib-external/zlib/1.2/bin
</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://ftp.hdfgroup.org/lib-external/szip/2.0/bin/windows/" target="_blank">
ftp://ftp.hdfgroup.org/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://hdfgroup.org/doc_resource/SZIP/index.html" target="_blank">
http://hdfgroup.org/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. In release 1.8.0, all.sln was
provided for command line use ONLY. all.sln should never be opened to
start building HDF5 using IDE.</p>
</li>
<li>
<p class="note">3. To build HDF5 C++ and FORTRAN
libraries, please read through this document. </p>
</li>
<li>
<p class="note">4. 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">5. 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">6. 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://hdfgroup.org/h4toh5/" target="blank" ,="">http://hdfgroup.org/h4toh5/</a></p>
<p class="note"><a href="ftp://ftp.hdfgroup.org/HDF5/h4toh5" target="blank" ,="">ftp://ftp.hdfgroup.org/HDF5/h4toh5</a> </p>
</li>
<li>
<p class="note">7. For DLL users, please do read and
follow <a href="#dll_hints_section4">"DLL Hints" Section
IV.</a> </p>
</li>
<li>
<p class="note">8. For .NET users, please read <a href="#section6">Section VI.</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 users who would like to build
Muti-threaded version of HDF5 library, please read <a href="section8">Section VIII</a>.</p>
</li>
<li>
<p class="note">11. For users who would like to build,
test and use HDF5 snapshot release, please read <a href="#section9">Section
IX.</a> </p>
</li>
<li>
<p class="note">12. For .Net and Intel users, if you
are not building HDF5 with Thread-Safe Feature (see <a href="#section10">Section X</a>), ttsafedll.dsp should
always be turned off.</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, High level C++,
High level 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 style="border: thin solid blue;" border="1">
<tbody>
<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>
</tbody>
</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 style="border: thin solid blue;" border="1">
<tbody>
<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>
</tbody>
</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 style="border: thin solid blue;" border="1">
<tbody>
<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>
</tbody>
</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 style="border: thin solid blue;" border="1">
<tbody>
<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>
</tbody>
</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 style="border: thin solid blue;" border="1">
<tbody>
<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>
</tbody>
</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 style="border: thin solid blue;" border="1">
<tbody>
<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>
</tbody>
</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 style="border: thin solid blue;" border="1">
<tbody>
<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>
</tbody>
</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>
</li>
</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.</p>
<ul class="intable">
<p></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.hdfgroup.org/lib-external/szip/2.0/bin/windows/" target="blank" ,="">
ftp://ftp.hdfgroup.org/lib-external/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></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>
</p>
<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>
</p>
<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>
</p>
<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>
</p>
<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>
</p>
<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.hdfgroup.org/lib-external/szip/2.0/bin/windows/" target="_blank">
ftp://ftp.hdfgroup.org/lib-external/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.hdfgroup.org/lib-external/szip/2.0/bin/windows/" target="_blank">ftp://ftp.hdfgroup.org/lib-external/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>
<p class="note">2. Static project files don't have
"dll" at the end of their file names. </p>
</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. </li>
<li>2) Build the project file. </li>
<li>3) Invoke command prompt and go to
c:\myHDFstuff\hdf5\src. </li>
<li>4) type H5Tinit.exe >H5Tinit.c </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>
</li>
</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></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\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 </p>
</li>
<li>
<p class="insmes">Testing -- multi-dataset
creation (dcreate) </p>
</li>
<li>
<p class="insmes">Testing -- per-thread error
stacks (error) </p>
</li>
<li>
<p class="insmes">Testing -- thread cancellation
safety test (cancel) </p>
</li>
<li>
<p class="insmes">Testing -- multi-attribute
creation (acreate) </p>
</li>
<li>
<p class="insmes">All tests were successful. </p>
</li>
<li>
<p class="insmes">Cleaning Up temp files... </p>
</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: How to build
HDF5 in Visual studio 2005 on windows 32-bit and 64-bit platform</a></h2>
<hr class="second">
<p class="note">Notes:</p>
<p class="note">The building procedure is almost the
same as
building HDF5 on .Net 2003. </p>
<p class="note">For 64-bit, currently we only support
HDF5 as an 32-bit application and
you may need to pay attention to the following reminders: </p>
<ul class="intable">
<li>
<p>1. To use zlib or szlib compression packages:</p>
<ul class="intable">
<li>
<p>Use zlib 1.2.2 DLL provided at <a href="ftp://ftp.hdfgroup.org/lib-external/zlib/1.2/bin/zlib122-windows.tar.gz">ftp://ftp.hdfgroup.org/lib-external/zlib/1.2/bin/zlib122-windows.tar.gz</a></p>
</li>
<li>
<p>Use szlib 2.0 DLL provided at <a href="ftp://ftp.hdfgroup.org/lib-external/szip/2.0/bin/windows/xp-net">ftp://ftp.hdfgroup.org/lib-external/szip/2.0/bin/windows/xp-net</a></p>
</li>
</ul>
</li>
<li>
<p>2. Make sure that WIN32 macro is set at visual studio
2005. </p>
</li>
<li>
<p>3. You may use _CRT_SECURE_NO_DEPRECATE to disable the
warnings. </p>
</li>
</ul>
<h4>
<p>Please refer to <a href="#section6">Section
VI: How to build HDF5 in Visual
Studio .Net 2003</a>.</p>
<p>Please also note that the example workspace may not work
properly. You
may need to reset hdf5 library path.</p>
</h4>
<p class="right"><a href="#section11">Go
to TOP Section XI</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="section12">Section XII: 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>
<h3>3. Backward compatibility with 1.6</h3>
<ul class="intable">
<li>
<p>If you are going to use 1.6 APIs with 1.8 branch, you may
do the following two things:</p>
<ul class="intable">
<li>
<h4>3.1 Uncomment out /*#define H5_WANT_H5_V1_6_COMPAT
1*/
inside h5pubconf.h under windows\src.</h4>
</li>
<li>
<h4>3.2 Set up an environment variable
H5_WANT_H5_V1_6_COMPAT to 1, this will be used to test compatibility
of error APIs.</h4>
</li>
</ul>
</li>
<li>
<p>Remember to undo 1 and 2 after you test if you are not
going to use 1.6 backward compatibility option.</p>
</li>
</ul>
<p class="right"><a href="#section12">Go to
TOP Section XII</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:help@hdfgroup.org">help@hdfgroup.org</a>
or go to <a href="http://hdfgroup.org/windows/">http://hdfgroup.org/windows/questions</a>
to get help on Windows</h4>
<h4 style="background-color: green; color: white; text-align: center; letter-spacing: 5px;">Thank
you for using Hierarchical
Data Format (HDF)</h4>
<p> </p>
<p> </p>
<h3></h3>
<h4></h4>
<h4></h4>
</body>
</html>
|