|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
Note: This code was built on WIndows XP using libdap 3.7.10 in Feb 2008 with
|
|
Packit |
a4aae4 |
only minor modifications to the VCPP/Makefile.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
James Gallagher
|
|
Packit |
a4aae4 |
22 Feb 2008
|
|
Packit |
a4aae4 |
--------------------------
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
These are the instructions that accompany each Windows release of the OPeNDAP
|
|
Packit |
a4aae4 |
Core Library known as "libdap".
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
Introduction
|
|
Packit |
a4aae4 |
------------
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
This is the 3.7.3 release of libdap for MS Windows XP (or later) on 32-bit
|
|
Packit |
a4aae4 |
machines. It was built using Visual C++ 8.x. Both static and dynamic
|
|
Packit |
a4aae4 |
versions of the Core libraries are provided.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
You must have the prerequisites for this distribution installed before
|
|
Packit |
a4aae4 |
installing this distribution. The prerequisites are contained in the
|
|
Packit |
a4aae4 |
libdap-prerequisites3.7.3.zip file available from http://opendap.org.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
Purposes of this Distribution
|
|
Packit |
a4aae4 |
-----------------------------
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
This distribution serves three purposes:
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
1) The Dynamic-link libraries necessary for running executables based
|
|
Packit |
a4aae4 |
upon this version of libdap are provided.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
2) The export libraries and the associated headers that are required
|
|
Packit |
a4aae4 |
to OPeNDAP enable 3rd-party applications that are to be based upon this
|
|
Packit |
a4aae4 |
specific version of libdap are provided. Dynamic-link libraries necessary
|
|
Packit |
a4aae4 |
to run such applications are also provided. These are the tools that
|
|
Packit |
a4aae4 |
experienced developers require to OPeNDAP-enable their applications.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
The documentation that specifies the interface to the OPeNDAP Core Library
|
|
Packit |
a4aae4 |
is not provided with this release. With this distriubution, an experienced
|
|
Packit |
a4aae4 |
developer should be able to link their software with libdap to OPeNDAP-enable
|
|
Packit |
a4aae4 |
it.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
See the 'sample' subdirectory for a makefile that details how to compile and
|
|
Packit |
a4aae4 |
link. Sample code is also provided.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
3) Provides instructions for rebuilding this version of libdap from source
|
|
Packit |
a4aae4 |
code.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
Contents
|
|
Packit |
a4aae4 |
--------
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
bin/ - Contains a basic OPeNDAP client "getdap"
|
|
Packit |
a4aae4 |
dll/ - Provides the run-time dynamic link libraries
|
|
Packit |
a4aae4 |
etc/ - Contains the 'deflate' program
|
|
Packit |
a4aae4 |
include/ - Contains the headers necessary to compile
|
|
Packit |
a4aae4 |
lib/ - Contains the libraries needed to link. Both a static and
|
|
Packit |
a4aae4 |
dynamic version of the OPeNDAP Core library (libdapMT.lib
|
|
Packit |
a4aae4 |
and libdapMD.lib respectively) are provided.
|
|
Packit |
a4aae4 |
sample/ - Contains sample code and a sample makefile
|
|
Packit |
a4aae4 |
readme.txt - This readme file
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
Installation Instruction
|
|
Packit |
a4aae4 |
------------------------
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
1) Install the prerequisites outlined above
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
2) Drag-n-drop the 'bin', 'dll', 'include', 'lib', 'etc' and 'sample' directories
|
|
Packit |
a4aae4 |
found in this distriubution to C:\opendap. If prompted to over write the
|
|
Packit |
a4aae4 |
existing directory structure, choose 'Yes to all'.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
3) Place C:\opendap\bin and C:\opendap\dll on your execution path.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
Test the Install:
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
1) Open a DOS window
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
2) Issue the following command
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
C:\> getdap --help
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
If the install is successful, you should see the usage message for the getdap
|
|
Packit |
a4aae4 |
utility.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
Rebuilding from source code
|
|
Packit |
a4aae4 |
---------------------------
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
To Rebuild libdap 3.7.3 from source code using MS Visual C++ 8.x,
|
|
Packit |
a4aae4 |
the subversion command-line utility and the installed prerequisite package
|
|
Packit |
a4aae4 |
outlined above:
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
1) Add BISON_HAIRY environment var and set to C:\opendap\include\bison.hairy
|
|
Packit |
a4aae4 |
2) Add BISON_SIMPLE and set to C:\opendap\include\bison.simple
|
|
Packit |
a4aae4 |
3) Add INCLUDE environment variable if necessary and add following to it:
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
C:\opendap\include
|
|
Packit |
a4aae4 |
C:\opendap\include\pthreads
|
|
Packit |
a4aae4 |
C:\opendap\include\libxml
|
|
Packit |
a4aae4 |
C:\opendap\include\curl
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
4) Add LIB environment variable if necessary and add the following to it:
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
C:\opendap\lib
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
Note: Microsoft provides a means of opening a command prompt where compiler
|
|
Packit |
a4aae4 |
command-line tools can be conveniently executed. Under Visual Studio,
|
|
Packit |
a4aae4 |
this is available via the "Visual Studio 2005 Command Prompt" located
|
|
Packit |
a4aae4 |
underneath the start->programs menu. In Visual C++ 8.x an identical
|
|
Packit |
a4aae4 |
mechanism is provided. When we refer to a "command-line" window in the below
|
|
Packit |
a4aae4 |
instructions, we are referring to this Microsoft-provided compiler command
|
|
Packit |
a4aae4 |
prompt. We are not referring to a simple DOS Command Prompt.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
Open a command-line window and:
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
C:\> cd C:\opendap
|
|
Packit |
a4aae4 |
C:\> svn co http://scm.opendap.org:8090/svn/tags/libdap/3.7.3 libdap3.7.3
|
|
Packit |
a4aae4 |
C:\> cd libdap3.7.3\VCPP
|
|
Packit |
a4aae4 |
C:\> nmake grammarclean
|
|
Packit |
a4aae4 |
C:\> nmake all
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
December 10, 2006
|
|
Packit |
a4aae4 |
Robert O. Morris
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
|