~ubuntu-branches/ubuntu/lucid/hdf-eos5/lucid

« back to all changes in this revision

Viewing changes to doc/Compile_NT_98.readme.txt

  • Committer: Bazaar Package Importer
  • Author(s): Alastair McKinstry
  • Date: 2009-08-17 23:07:29 UTC
  • Revision ID: james.westby@ubuntu.com-20090817230729-gzbwp1ny01hv2nlk
Tags: upstream-5.1.12.dfsg.1
ImportĀ upstreamĀ versionĀ 5.1.12.dfsg.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
COMPILING A PROGRAM
 
3
                  
 
4
Following are instructions for compiling an application program on the 
 
5
window NT and window 95/98, using the hdfeos5 binaries that we provide 
 
6
or you build.
 
7
 
 
8
Make sure that you already had all following libraries before you start
 
9
to compile an application program:  libjpeg.lib, zlib.lib, szlib.lib, 
 
10
hdf5.lib, hdfeos5.lib, gctp.lib.
 
11
 
 
12
NOTE: The current versions that we're using: jpeg6b, zlib1.1.3
 
13
szip1.2, hdf5-1.6.3, hdfeos5.1.9.
 
14
If you want to use the latest versions of jpeg, zlib and szlib, 
 
15
go to ncsa website (ftp://ftp.ncsa.uiuc.edu/HDF/lib-external)
 
16
to download.
 
17
 
 
18
C or Fortran program :
 
19
-------------
 
20
Using Microsoft Visual C++ version 5.x or later version for C program:
 
21
Using Digitalt Visual Fortran version 5.x or later version for 
 
22
 
 
23
For example, you want to run the hdfeos5 testdrivers:
 
24
Go to /hdfeos5/testdrivers/
 
25
Open a testdriver (for example /swath/TestSwath.c) by clicking it.
 
26
Select Build->"compile TestSwath.c" to invoke it into 
 
27
a workspace.
 
28
 
 
29
Select Build->Set Active Configuration->TestSwath-Win32Release->OK
 
30
 
 
31
 
 
32
Select Tools->Options->Directories->"Show directories for"->
 
33
"Include files", add the following directories:
 
34
        F:\Program Files\ArrayVisualizer\INCLUDE
 
35
        F:\Program Files\Microsoft Visual Studio\VC98\MFC\Include                   
 
36
        F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
 
37
        C:<path to jpeg>\jpeg  
 
38
        C:<path to zlib>\include
 
39
        C:<path to szlib>\include      
 
40
        C:<path to HDF5>\include 
 
41
        C:<path to HDFEOS5>\include 
 
42
 
 
43
Select Tools->Options->Directories->"Show directories for"->
 
44
"Libraries files", add the following directories:
 
45
        C:\Program Files\ArrayVisualizer\LIB
 
46
        C:\Program Files\Microsoft Visual Studio\VC98\LIB
 
47
        C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB
 
48
        C:<path to jpeg lib>\jpeg  
 
49
        C:<path to zlib>\lib
 
50
        C:<path to szlib>\lib
 
51
        C:<path to HDF5>\lib
 
52
        C:<path to HDFEOS5>\lib\nt_98
 
53
 
 
54
Select Project->Settings, select forder, C/C++
 
55
   Add the following to "Preprocessor definitions": 
 
56
   VISUAL_CPLUSPLUS, INTEL86
 
57
The following were already there:   WIN32,_CONSOLE
 
58
 
 
59
Select Project->Settings, select folder, Link:
 
60
  
 
61
   Add the following libraries to the beginning of the list of
 
62
   Object/Library Modules:
 
63
   
 
64
   Swath & Point:
 
65
   ==============
 
66
      ws2_32.lib hdfeos5.lib hdf5.lib libjpeg.lib zlib.lib szlib.lib
 
67
 
 
68
   Grid
 
69
   ====
 
70
      ws2_32.lib hdfeos5.lib gctp.lib hdf5.lib libjpeg.lib zlib.lib szlib.lib
 
71
 
 
72
   The following libraries may (or may not) need to be included: 
 
73
       kernel32.lib user32.lib gdi32.lib winspool.lib comdig32.lib
 
74
       advapi32lib shell32.lib ole32.lib oleaut32.lib uuid.lib
 
75
       odbc32.lib odbccp32.lib
 
76
 
 
77
NOTE: hdfeos5.lib and gctp.lib are Release Version.
 
78
      hdfeos5d.lib and gctpd.lib are Debug version.
 
79
 
 
80
Select Build and "Build testswath.exe"
 
81
 
 
82
To run the executable file, for example, TestSwath.exe
 
83
Open MS-Dos, go to ../testdrivers/swath/release and run TestSwath.exe to get the output.
 
84
 
 
85
NOTE: Before running TestPoint.exe, you should copy all ".txt" files to release
 
86
      folder.
 
87
 
 
88
NOTE: Deal to the Fortran problem with HDF on windows, HDFEOS fortran testdrivers doesn't 
 
89
      support the windows.  C is good.
 
90
 
 
91