Index of /software/HDFEOS_5_1_10

      Name                    Last modified       Size  Description

[DIR] Parent Directory 09-Nov-2006 11:27 - [CMP] HDF-EOS2.14v1.00_Tes..> 09-Nov-2006 11:26 173k [CMP] HDF-EOS5.1.10.tar.Z 09-Nov-2006 11:26 6.5M [CMP] HDF-EOS5.1.10_TESTDR..> 09-Nov-2006 11:26 299k [TXT] Install_HDFEOS5_NT_9..> 09-Nov-2006 11:27 8k [TXT] Install_HDFEOS_NT_98..> 09-Nov-2006 11:27 8k [   ] hdfeos2_14.zip 09-Nov-2006 11:27 4.4M [   ] hdfeos5_1_10.zip 09-Nov-2006 11:26 4.6M

This directory contains the binary (release) distribution of software 
needed for running hdfeos/hdfeos5 applications in windows environment. 
You may also obtain all, except for hdfeos/hdfeos5, from ncsa site:

ftp://ftp.hdfgroup.org/

We have compiled HDF-EOS and HDF-EOS5 on an IBM PC running Windows XP using 
MSVC++ .net.  The static libraries are provided.  NOTE that Fortran support
is not included. The binaries were built with ZLIB compression enabled 
(zlib 1.2.2). Therefore you MUST link with the GNU ZLIB library when compiling
with these binaries.

In addition to binaries the source codes for hdfeos and hdfeos5 are provided 
for users to build their own hdfeos/hdfeos5 libraries.

The files in this direcory are:

README.txt		: This README file
hdfeos5_1_10.zip	: HDF-EOS5 (HDF5 based) version 1.10 source code
hdfeos5_1_10b.zip	: HDF-EOS5 (HDF5 based) version 1.10 Library and 
			  include files
hdfeos2_14.zip		: HDF-EOS (HDF4 based) version 1.10 source code
hdfeos2_14b.zip		: HDF-EOS (HDF4 based) version 1.10 Library and 
			  include files
5-165-win.zip		: HDF5 version 1.6.5 Library and include files
42r1-win.ZIP		: HDF4 version 4.2.1 Library and include files
zlib122-windows.tar.gz	: zlib Compression version 1.2.2 Library and 
			  include files
szip20-win-xp-enc.tar.gz: szip version 2.0 Library and include files
jpeg-6b.exe		: jpeg version 6 Library and include files


After downloading the files use WinZip or unzip to extract relevant 
directories. for jpeg double click on jpeg-6b.exe to install.
You would have the libjpeg.lib and include files.

Contact HDF group help@hdfgroup.org to know more about jpeg, zlib, 
and szip installation. For details on how the HDF5 libraries were created, 
refer to the INSTALL_Windows.txt file in the HDF5 source code, under:

    ftp://ftp.hdfgroup.org/HDF5/current/src/unpacked/release_docs/

Source code can be found on the NCSA ftp server in:

    ftp://ftp.hdfgroup.org/HDF5/current/src/

 
Instructions for Compiling with the Pre-Compiled Libraries and DLLs (MSVC++)
============================================================================

NOTE:
----
The ZLIB 1.2.2 and SZIP 2.0 libraries for Windows are NOT included with the 
HDF5 software.  You must obtain them separately. You can obtain them from 
this site or the HDF ftp server at:

    ftp://ftp.hdfgroup.org/lib-external/zlib/1.2/ 
    ftp://ftp.hdfgroup.org/lib-external/szip/2.0/ 

If you have problems with the instructions below, please check the
INSTALL_Windows.txt of HDF5 file in the HDF5 source code and the 
instructions provided in *.txt files in the hdfeos .zip files ( under 
hdfeos_dev or hdfeos5_dev directories) for further details.
The INSTALL_Windows.txt file can be found from the HDF5 ftp server location at:

  ftp://ftp.hdfgroup.org/HDF5/current/src/unpacked/release_docs/ 

---------------------------------------------------------------------------

Here we have instruction when using "Visual Studio 6.0" for HDF-EOS5 (HDF5
based) applications.You may find instruction when using "Visual Studio .net" 
in the .txt files included in hdfeos2 and hdfeos5 .zip files under 
hdfeos_dev or hdfeos5_dev directories. Also for HDF-EOS (HDF4 based) 
application you may follow similar steps replacing hdfeos5 with hdfeos and 
HDF5 with hdf (hdf4 Release libraries: hd421.lib and hm421.lib, and hdf4 
Debug libraries: hd421d.lib and hm421d.lib)

Microsoft Visual Studio .NET
============================

Static Libraries:
----------------

   Bring up Microsoft Visual Studio .NET. Create a project (Visual C++ 
Project->Win32 Console Project). Enter the project name. place your 
source ocde (for example /hdfeos/testdrivers/swath/testswath.c) in the 
"Source Files" directory (in the Solution Explorer Window) and the tutils.h 
in the "Haeder Files" directory of the project. Choose "Release" or "Debug" 
for the configuration setting using Build->"Configuration Manager" or the 
one showing on the toolbar).

    Select Project->Properties:
	Select "General" under "Configuration Properties". 
	In the selection window for "Configuration Type" select "Application
	(.exe)" option to create output as executable.

	Select folder C/C++->Preprocesssor
	Add the following to "Preprocessor definitions":   VISUAL_CPLUSPLUS, 
	INTEL86

	If the followings were not already there, add them:  WIN32,_CONSOLE
	For "precompiled Headers" chose "Automatically Generate(/yx)"
	For "Advanced"->"Compile As" choose "Compile as C Code (/TC)"

	Select "Linker" folder.
	Under "General" chose "output File" and specify the exectable and full 
	path to it as "F:\MyHdfeos_bin\testswath.exe".

	Under "Input" put the followings for the "Additional Dependencies":

	wsock32.lib hdfeos.lib gctp.lib hdf5.lib libjpeg.lib zdll.lib szlib.lib

	Note: For HDF-EOS (HDF4 based) use hdfeos.lib instead of hdfeos5.lib
        hdfeos.lib          - HDF-EOS C Library
        gctp.lib            - GCTP C Library
        hd421.lib           - HDF5 C Library   
        hm421.lib           - HDF5 High Level Library (C)
        libjpeg.lib         - JPEG Library        (optional)
        zdll.lib szlib.lib  - ZLIB and SZIP Libraries

   Select Tools->Options->Projects->VC++Directories->"Show directories for"->
	"Include files", add the following directories:

	F:\Program Files\Microsoft Visual Studio .Net 2003\SDK\v1.1\include
	F:\Program Files\Microsoft Visual Studio .Net 2003\VC7\INCLUDE
	F:<path to jpeg>\jpeg  
	F:<path to zlib>\include
	F:<path to szlib>\include      
	F:<path to HDF>\include 
        F:<path to HDFEOS>\include 
	F:<path to HDFEOS>\gctp\include

   Select Tools->Options->VC++Directories->"Show directories for"->
	"Library files", add the following directories:

        F:\Program Files\Microsoft Visual Studio .Net 2003\SDK\v1.1\lib                
        F:\Program Files\Microsoft Visual Studio .Net 2003\VC7\lib
	F:<path to jpeg lib>\jpeg  
	F:<path to zlib>\lib
	F:<path to szlib>\lib
	F:<path to HDF>\lib
	F:<path to HDFEOS>\lib\WIN


Click "OK" to close "Options" window.

Select Build and then "Build <project name>". Once the executable is 
created copy the sahred library zlib1.dll to the directory where the 
executable is located (or to WINDOWS\SYSTEM32 directory).

To run the executable file:

Open MS-Dos, go to directory where the executable is located. For example:
     "F:\Documents and Settings\<username>\My Documents\Visual Studio Projects\
     <projectname>/Release

run <projectname>.exe. 



Visual Studio 6.0
=================

Static Libraries:
----------------

   Bring up Visual Studio 6.0.

   Select File->New.  Then select to create a "Win32 Console Application"
   and enter a name.

   Select File->Open, and open up a C or C++ program.

   Select Project->Settings->Link
   Enter the HDF5, ZLIB, and SZIP libraries at the beginning of the 
     "Object/library modules". These are the libraries:
        hdfeos.lib          - HDF-EOS5 C Library
        gctp.lib            - GCTP C Library
        hdf5.lib            - HDF5 C Library   
        hdf5_hl.lib         - HDF5 High Level Library (C)
        hdf5_cpp.lib        - HDF5 C++ Library        (optional)
        zdll.lib szlib.lib  - ZLIB and SZIP Libraries

   Select Tools->Options->Directories.
   Select "Include Files" under "Show directories for".
   Enter the paths for the HDF-EOS5, gctp, HDF5, SZIP, jpeg, and ZLIB 
   include files.
   Then select "Library Files" under "Show directories for".
   Enter the paths for the HDF-EOS5, gctp, HDF5, SZIP, jpeg, and ZLIB 
   libraries.

   Select Build->Compile <program>. (C, C++ program)
   Select Build->Build <xxx.exe>.
   Select Build->Execute <xxx.exe>.

DLLs:
----
   At this time we do not have dll libraries for HDF-EOS5. Use the static 
   library for HDF-EOS5.
   Copy the HDF5 *.dll files in the dll\ directory, as well as the SZIP and 
   ZLIB dll files, to the WINNT\SYSTEM directory. 

   Bring up Visual Studio 6.0.

   Select File->New.  Then select to create a "Win32 Console Application"
   and enter a name.

   Select File->Open, and open up a C/C++ program.

   Select Project->Settings->Link
   Enter HDF-EOS5 static library hdfeos5.lib at the beginning of the 
   "Object/library modules" line. Then enter the HDF related dll libraries
   (hdf5dll.lib, hdf5_cppdll.lib, zdll.lib, and szlibdll.lib) 

   Select Project->Settings->C/C++
   Under Preprocessor Definitions, add:  _HDF5USEDLL_
   For C++ DLLs, add: HDF5CPP_USEDLL

   Select Tools->Options->Directories.
   Select "Include Files" under "Show directories for".
   Enter the include paths for the HDF-EOS5, gctp, HDF5, SZIP, and ZLIB 
   include files.
   Then select "Library Files" under "Show directories for".
   Enter the library paths for the HDF-EOS5, gctp, HDF5 DLL, ZLIB and SZIP 
   libraries.

   Select Build->Compile <program>. (C, C++)
   Select Build->Build <xxx.exe>.
   Select Build->Execute <xxx.exe>.