summaryrefslogtreecommitdiffstats
path: root/release_docs/INSTALL_Windows_From_Command_Line.txt
blob: 33498aaf3633827077f5185afa1beb8d6af98f0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
Instructions for Building and Testing HDF5 in Command Line on Windows XP

************************************************************************
Note: This instruction is written for users who would like to build HDF5
      libraries and tools from the HDF5 source code package on command
      line.
         
      Currently, we support 
      
      1. Building and testing HDF5 on command line with Microsoft Visual 
         C++ 6.0 and Compaq Visual Fortran 6.0.
      
      2. Building and testing HDF5 C and C++ Library on command line with
         Microsoft Visual C++ .Net (2003)
         
      3. Building and testing HDF5 C and C++ Library on command line with
         Intel C++ Compiler 8.1 integration with Microsoft Visual C++ .Net
         2003.
      
      For all other Windows development tools, HDF5 should be built in
      the development environment.  Please refer to INSTALL_Windows.txt
      for detailed HDF5 building and installation information, or 
      INSTALL_Windows_short.txt for quick HDF5 building and installation
      instructions.
      
      4. Different compiler is using different batch files on command line 
      to build HDF5 Libraries.
      
      Compiler Name                 Batch File to Be Used
      
      MSVS 6.0                      hdf5bt.bat         hdf5build.bat
      MSVS .Net                     hdf5bt_net.bat     hdf5build_net.bat
      Intel C++                     hdf5bt_intelc.bat  hdf5build_intelc.bat
      
      Be careful to type in the corresponding command when you choose 
      a procedure below to build HDF5 Libraries.
                  
*****************************WARNINGS***********************************

Please read CAREFULLY about HDF5 build and install preconditions and 
notes in INSTALL_Windows.txt before starting below procedures.

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

Preconditions

   1. Add WinZip command line support (Optional)
      
      To use WinZip command line utility, you have to install 
      WinZip 9.0 or higher version.

      If you want to extract zip files on the command line,
      you should
   
      1.1 Install WinZip command line support add-on 1.1
   
          Download WinZip command line support add-on 1.1 from 
          http://www.winzip.com and install it.
   
      1.2 Add WinZip into environment path
   
          Open "System" in Control Panel.
          On the "Advanced" tab, click "Environment Variables", click
          "Path" in the "System variables" box, then click "Edit" and 
          add your WinZip path (For example C:\Program Files\WinZip)
          into "Variable Value" and click "OK".

      Note: 
         You can also extract zip files from interactive WinZip
         interface without the above two steps.
  
***********************************************************************

Section I: Building and testing HDF5 on command line with Microsoft 
           Visual C++ 6.0 and Compaq Visual Fortran 6.0.
    
***********************************************************************

1. Extra Preconditions: 

   1.1 Set path for Visual C++ 6.0 and Compaq Visual Fortran 6.0
   
   Open "System" in Control Panel.
   
   On the "Advanced" tab, click "Environment Variables", click 
   "Path" in the "System variables" box, then click "Edit" and 
   add your Visual C++ 6.0 path (For example, 
   C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\)
   and Compaq Visual Fortran 6.0 path (For example, 
   C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\)
   into "Variable Value" and click "OK".
      
   1.2 Run batch file copy_hdf.bat.

   Go to  c:\MyHDFstuff\hdf5\windows and run copy_hdf.bat. 
      
2. Building and testing HDF5 libraries and tools

   We provide 2 options for users to build test HDF5 libraries 
   and tools.
      
    2.1 Options A: Build and test in one step 
      
         A batch file named hdf5bt.bat in c:\MyHDFstuff\hdf5 directory
         is provided for users to build and test HDF5 library and tools
         together from command line.

         hdf5bt.bat has four options:

            hdf5bt                 build and test C library and tools

            hdf5bt enablecpp       build and test C/C++ libraries 
                                   and tools

            hdf5bt enablefortran   build and test C/Fortran libraries
                                   and tools

            hdf5bt enableall       build and test C/C++/Fortran 
                                   libraries and tools

         Invoke a command prompt window and run hdf5bt with
         appropriate options.

         Test results are saved in two files:

            c:\MyHDFstuff\hdf5\hdf5_results.txt   

            c:\MyHDFstuff\hdf5\tests_results.txt.

         In general, you only need to check tests_results.txt.
         If all the tests passed, then you do not have to check
         hdf5_results.txt.  If some tests failed, check
         hdf5_results.txt can help you figure out what was wrong.

    2.2 Options B: Build and test in two steps 

         We also provide users with the option to build and test 
         HDF5 libraries and tools seperately.
   
         Step 1) Build HDF5 Libraries and Tools

            A batch file named hdf5build.bat in c:\MyHDFstuff\hdf5 
            directory is provided for users to build HDF5 library and 
            tools from command line.

            hdf5build.bat has four options:
  
               hdf5build                 build HDF5 C library 
                                         and tools

               hdf5build enablecpp       build HDF5 C/C++ libraries 
                                         and tools

               hdf5build enablefortran   build HDF5 C/Fortran libraries
                                         and tools

               hdf5build enableall       build HDF5 C/C++/Fortran 
                                         libraries and tools

            Invoke a command prompt window and run hdf5build with 
            appropriate options.  Compiling outputs are saved in 
            c:\MyHDFstuff\hdf5\build_results.txt.  You can check 
            the file to find out whether there are any compilation
            errors.

         Step 2) Test HDF5 Libraries and Tools
   
            A batch file named hdf5check.bat in c:\MyHDFstuff\hdf5
            directory is provided for users to test HDF5 library 
            and tools from command line.

            hdf5check.bat has four options:

               hdf5check                 test HDF5 C library and tools
      
               hdf5check enablecpp       test HDF5 C/C++ libraries 
                                         and tools
      
               hdf5check enablefortran   test HDF5 C/Fortran libraries
                                         and tools
      
               hdf5check enableall       test HDF5 C/C++/Fortran 
                                         libraries and tools

            Invoke a command prompt window and run hdf5check with 
            appropriate options.

            Test results are saved in two files:

			   c:\MyHDFstuff\hdf5\tests_results.txt   
			
			   c:\MyHDFstuff\hdf5\check_results.txt.
			
			In general, you only need to check tests_results.txt.  If all the
			tests passed, then you do not have to check check_results.txt.  
			If some tests failed, check check_results.txt can help you
			figure out what was wrong.

3. Installing HDF5 Libraries

Run the batch file c:\MyHDFstuff\hdf5\installhdf5lib.bat to install all
HDF5 libraries and tools into c:\MyHDFstuff\hdf5\hdf5lib directory.

For further information, please refer to INSTALL_WINDOWS.txt.        

************************************************************************
   
SECTION II: Building and testing HDF5 C and C++ Library on command line 
            with Microsoft Visual C++ .Net 2003

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

1. Extra Preconditions:
    
    1.1 Microsoft Visual C++ .Net 2003 Installed
    
    1.2 Command-based script host (CScript.exe) installed
          
        Cscript.exe is a command-line version of the Windows Script Host. Users can
        check windows system directory to make sure Cscript.exe installed. Cscript.exe
        will be used during converting project files from MSVS 6.0 Format to Visual C++
        .Net 2003 format.

    1.3 Set path for Microsoft Visual C++ .Net
   
      Open "System" in Control Panel.
   
      On the "Advanced" tab, click "Environment Variables", click 
      "Path" in the "System variables" box, then click "Edit" and 
      add your Visual C++ .Net path (For example, 
      C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE)
      into "Variable Value" and click "OK". 
    
    1.4 Run batch file copy_hdf.bat.
    
  	Go to  c:\MyHDFstuff\hdf5\windows and run copy_hdf.bat. This process
   	will copy all the necessary batch files and text files saved under 
   	c:\MyHDFstuff\hdf5\windows directory to the directories where they 
   	will be used.
   
   1.5 Convert project files format from MSVS 6.0 to MSVS .Net
    
       Go to directory  c:\MyHDFstuff\hdf5 and run convert_to_vcproj.bat
       in the following format 
      
       convert_to_vcproj "Absolute path of directory hdf5" 
       
       For example:
       
       convert_to_vcproj c:\MyHDFstuff\hdf5
       
       The converting results will be saved into file convert.log under 
       the directory c:\MyHDFstuff\hdf5. The messages should look like
       
       Converting: c:\MyHDFstuff\hdf5\windows\proj\all\all.dsp
       New Project Name: c:\MyHDFstuff\hdf5\windows\proj\all\all.vcproj
       
       Note: all.sln was provided with HDF5-1.8.0 Release. Users don't need 
       to convert the workspace from MSVS 6.0 format to MSVS .Net
       Format
      
2. Building HDF5 C and C++ Libraries :

  We provide 2 options for users to build HDF5 libraries and tools.

  2.1 Options A: Build and test in one step 
      
      A batch file named hdf5bt_net.bat in c:\MyHDFstuff\hdf5 directory
      is provided for users to build and test HDF5 library and tools
      together from command line.

      hdf5bt_net.bat has two options:

          hdf5bt_net                 build and test C library and tools

          hdf5bt_net enablecpp       build and test C/C++ libraries 
                                       and tools

      Invoke a command prompt window and run hdf5bt_net with
      appropriate options.

      Test results are saved in two files:

            c:\MyHDFstuff\hdf5\hdf5_results_net.txt   

            c:\MyHDFstuff\hdf5\tests_results.txt.

      In general, you only need to check tests_results.txt.
      If all the tests passed, then you do not have to check
      hdf5_results_net.txt.  If some tests failed, check
      hdf5_results_net.txt can help you figure out what was wrong.

  2.2 Options B: Build and test in two steps 

      We also provide users with the option to build and test 
      HDF5 libraries and tools seperately.
   
         Step 1)  Build HDF5 Libraries and Tools

         A batch file named hdf5build_net.bat in c:\MyHDFstuff\hdf5 
         directory is provided for users to build HDF5 library and 
         tools from command line.

         hdf5build_net.bat has two options:
  
             hdf5build_net             build HDF5 C library 
                                       and tools

             hdf5build_net enablecpp   build HDF5 C/C++ libraries 
                                         and tools

         Invoke a command prompt window and run hdf5build_net.bat with 
         appropriate options.  building results will be saved in 
         c:\MyHDFstuff\hdf5\build_results_net.txt.  You can check 
         the file to find out whether there are any compilation
         errors.

         Step 2)  Build HDF5 Libraries and Tools
            
         Go to directory, run batch file hdf5check with the following 
         options:
     
            hdf5check                 test HDF5 C library and tools
      
            hdf5check enablecpp       test HDF5 C/C++ libraries 
                                      and tools
                                         
     Note: hdf5check.bat has ONLY TWO options listed above in this case.
     
		    Test results are saved in two files:
		
		   c:\MyHDFstuff\hdf5\tests_results.txt   
		
		   c:\MyHDFstuff\hdf5\check_results.txt.
		
		In general, you only need to check tests_results.txt.  If all the
		tests passed, then you do not have to check check_results.txt.  
		If some tests failed, check check_results.txt can help you
		figure out what was wrong.
     
     3.  Installing HDF5 Libraries

     Run the batch file c:\MyHDFstuff\hdf5\installhdf5lib.bat to install all
     HDF5 libraries and tools into c:\MyHDFstuff\hdf5\hdf5lib directory.
     
***********************************************************************
         
SECTION III: Building and testing HDF5 C and C++ Library on command 
             line with Intel C++ Compiler 8.1 integration with 
             Microsoft Visual C++ .Net 2003

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

1. Extra Preconditions:

   1.1 Set path for Microsoft Visual C++ .Net and Intel C++ 8.1
   
      Open "System" in Control Panel.
   
      On the "Advanced" tab, click "Environment Variables", click 
      "Path" in the "System variables" box, then click "Edit" and 
      add your Visual C++ .Net path (For example, 
      C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE)
      and Intel C++ 8.1 path (For example,
      C:\Program Files\Intel\CPP\Compiler80\Ia32\Bin)
      into "Variable Value" and click "OK". 
   
   1.2 Install ICProjConvert80 Utility and set its path
      
       Intel provided this utility to convert a solution or project(s)
       in a solution from the Visual C++ .Net project system to the 
       Intel C++ Compiler project system.
       
       Users who have not install this utility, can open 
       IntelC++Compiler81 package, go to directory "IA32", 
       open Data1.zip with winzip, find ICProjConvert80.exe and 
       extract it to a corresponding directory. For example,
       C:\Program Files\Intel\CPP\Compiler80\Ia32\Bin

       Refer to 1.1 and set path for utility ICProjConvert80.
       
   1.3 Run batch file copy_hdf.bat.
    
  	Go to  c:\MyHDFstuff\hdf5\windows and run copy_hdf.bat. This process
   	will copy all the necessary batch files and text files saved under 
   	c:\MyHDFstuff\hdf5\windows directory to the directories where they 
   	will be used.
   	
   1.4 Convert project files format from MSVS 6.0 to MSVS .Net Format

       Go to directory  c:\MyHDFstuff\hdf5 and run convert_to_vcproj.bat
       in the following format:
      
       convert_to_vcproj "Absolute path of directory hdf5" 
       
       For example:
       
       convert_to_vcproj c:\MyHDFstuff\hdf5
       
       The converting results will be saved into file convert.log under 
       the directory c:\MyHDFstuff\hdf5. The messages should look like
       
       Converting: c:\MyHDFstuff\hdf5\windows\proj\all\all.dsp
       New Project Name: c:\MyHDFstuff\\hdf5\windows\proj\all\all.vcproj

2. Building HDF5 C and C++ Libraries :

   We provide 2 options for users to build HDF5 libraries and tools.
      
     2.1 Options A: Build and test in one step 
      
         A batch file named hdf5bt_intelc.bat in c:\MyHDFstuff\hdf5 directory
         is provided for users to build and test HDF5 library and tools
         together from command line.

         hdf5bt_intelc.bat has two options:

            hdf5bt_intelc                 build and test C library and tools

            hdf5bt_intelc enablecpp       build and test C/C++ libraries 
                                       and tools

         Invoke a command prompt window and run hdf5bt_intelc with
         appropriate options.

         Test results will be saved in two files:

            c:\MyHDFstuff\hdf5\hdf5_results_intelc.txt   

            c:\MyHDFstuff\hdf5\tests_results.txt.
            
         Project conversion results from MSVS .Net format to Intel C++ fomat 
         
         will be saved in 
         
          c:\MyHDFstuff\hdf5\convert_intel.log  

         Check convert_intel.log to see if all of the project files have
         been converted successfully.  Conversion messages should look 
         like:
         
         "projname.vcproj": has been converted from Microsoft VC++
         project system to the Intel C++ 8.x project system.
        
         In general, you only need to check tests_results.txt.
         If all the tests passed, then you do not have to check
         hdf5_results_intelc.txt.  If some tests failed, check
         hdf5_results_intelc.txt can help you figure out what was wrong.

    2.2  Options B: Build and test in two steps 

         We also provide users with the option to build and test 
         HDF5 libraries and tools seperately.
   
         Step 1) Build HDF5 Libraries and Tools

         A batch file named hdf5build_intelc.bat in c:\MyHDFstuff\hdf5 
         directory is provided for users to build HDF5 library and 
         tools from command line.

         hdf5build_intelc.bat has two options:
  
               hdf5build_intelc             build HDF5 C library 
                                            and tools

               hdf5build_intelc enablecpp   build HDF5 C/C++ libraries 
                                            and tools
             
         Invoke a command prompt window and run hdf5build_intelc with 
         appropriate options.  Compiling outputs are saved in 
         c:\MyHDFstuff\hdf5\build_results_intelc.txt.  You can check 
         the file to find out whether there are any compiling errors.
         
         Step 2) Testing HDF5 Libraries and Tools
         
         Go to directory, run batch file hdf5check with the following 
         options:
     
               hdf5check                 test HDF5 C library and tools
      
               hdf5check enablecpp       test HDF5 C/C++ libraries 
                                         and tools
                                         
         Notes: hdf5check.bat has ONLY TWO options listed above in this
                case.
     
	     Test results are saved in two files:
	
	   c:\MyHDFstuff\hdf5\tests_results.txt   
	
	   c:\MyHDFstuff\hdf5\check_results.txt.
	
	In general, you only need to check tests_results.txt.  If all the
	tests passed, then you do not have to check check_results.txt.  
	If some tests failed, check check_results.txt can help you
	figure out what was wrong.
     
     3.  Installing HDF5 Libraries

     Run the batch file c:\MyHDFstuff\hdf5\installhdf5lib.bat to install all
     HDF5 libraries and tools into c:\MyHDFstuff\hdf5\hdf5lib directory.

  
For further information, please refer to INSTALL_WINDOWS.txt.

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