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
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.
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)
18
C or Fortran program :
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
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
29
Select Build->Set Active Configuration->TestSwath-Win32Release->OK
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
38
C:<path to zlib>\include
39
C:<path to szlib>\include
40
C:<path to HDF5>\include
41
C:<path to HDFEOS5>\include
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
52
C:<path to HDFEOS5>\lib\nt_98
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
59
Select Project->Settings, select folder, Link:
61
Add the following libraries to the beginning of the list of
62
Object/Library Modules:
66
ws2_32.lib hdfeos5.lib hdf5.lib libjpeg.lib zlib.lib szlib.lib
70
ws2_32.lib hdfeos5.lib gctp.lib hdf5.lib libjpeg.lib zlib.lib szlib.lib
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
77
NOTE: hdfeos5.lib and gctp.lib are Release Version.
78
hdfeos5d.lib and gctpd.lib are Debug version.
80
Select Build and "Build testswath.exe"
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.
85
NOTE: Before running TestPoint.exe, you should copy all ".txt" files to release
88
NOTE: Deal to the Fortran problem with HDF on windows, HDFEOS fortran testdrivers doesn't
89
support the windows. C is good.