c6f81f22f1d88299b3ce3cdced0af3c42f824876
[yaz-moved-to-github.git] / doc / installation.xml
1 <chapter id="installation"><title>Compilation and Installation</title>
2   
3   <sect1 id="installation-introduction"><title>Introduction</title>
4    <para>
5     The latest version of the software will generally be found at:
6    </para>
7    <para>
8     <ulink url="&url.yaz.download;"/>
9    </para>
10    <para>
11     We have tried our best to keep the software portable, and on many
12     platforms, you should be able to compile everything with little or
13     no changes. 
14    </para>
15
16    <para>
17     The software is regularly tested on
18     <ulink url="&url.debian;">Debian GNU/Linux</ulink>,
19     <ulink url="&url.redhat;">Redhat Linux</ulink>,
20     <ulink url="&url.ubuntu;">Ubuntu Linux</ulink>,
21     <ulink url="&url.freebsd;">FreeBSD (i386)</ulink>,
22     <ulink url="&url.macosx;">MAC OSX</ulink>,
23     <ulink url="&url.solaris;">SunOS 5.8 (sparc)</ulink>,
24     <ulink url="&url.windows2000;">Windows 2000</ulink>,
25     <ulink url="&url.windows2003server;">Windows 2003 server</ulink>.
26    </para>
27    
28    <para>
29     Some versions have be known to work on HP/UX,
30     DEC Unix, <ulink url="&url.netbsd;">NetBSD</ulink>,
31     <ulink url="&url.openbsd;">OpenBSD</ulink>,
32     IBM AIX,
33     Data General DG/UX (with some CFLAGS tinkering),
34     SGI/IRIX, DDE Supermax, Apple Macintosh (using the Codewarrior programming
35     environment and the GUSI socket libraries),
36     IBM AS/400 .
37    </para>
38
39    <para>
40     If you move the software to other platforms, we'd be grateful if you'd
41     let us know about it. If you run into difficulties, we will try to help
42     if we can, and if you solve the problems, we would be happy to include
43     your fixes in the next release. So far, we have mostly avoided
44     <literal>#ifdefs</literal> for individual platforms, and we'd
45     like to keep it that way as far as it makes sense.
46    </para>
47    
48    <para>
49     We maintain a mailing-list for the purpose of announcing new releases and
50     bug-fixes, as well as general discussion. Subscribe by 
51     filling-in the form
52     <ulink url="&url.yaz.mailinglist;">here</ulink>.
53     General questions and problems can be directed at 
54     <ulink url="&url.yaz.mail;"/>, or the address given at the top of
55      this document.
56    </para>
57    
58   </sect1>
59   <sect1 id="installation.unix"><title>UNIX</title>
60
61    <para>
62     We provide 
63     <ulink url="&url.debian;">Debian GNU/Linux</ulink>
64     and 
65     <ulink url="&url.redhat;">Redhat</ulink> packages for &yaz;. 
66     Only i386 binary packages are available. You should be able to
67     create packages for other CPUs by building them from the source
68     package.
69    </para>
70    
71    <sect2 id="installation.source.unix">
72     <title>Compiling from source on Unix</title>
73     
74     <para>
75      Note that if your system doesn't have a native ANSI C compiler, you may
76      have to acquire one separately. We recommend
77      <ulink url="&url.gcc;">GCC</ulink>.
78     </para>
79
80     <para>
81      If you wish to use character set conversion facilities in &yaz; or if you
82      are compiling &yaz; for use with Zebra it is a good idea to ensure that
83      the iconv library is installed. Some Unixes today already have it
84      - if not, we suggest 
85      <ulink url="&url.libiconv;">GNU libiconv</ulink>.
86     </para>
87
88     <para>
89      YAZ 3.0.16 and later includes a wrapper for the 
90      <ulink url="%url.icu;">ICU</ulink> 
91      (International Components for Unicode).
92      In order to use this, the developer version of the ICU library
93      must be available.
94     </para>
95
96     <para>
97      The <ulink url="&url.libxslt;">libxslt</ulink>,
98      <ulink url="&url.libxml2;">libxml2</ulink> librararies are required
99      if &yaz; is to support SRU.
100      These libraries are very portable and should compile out-of-the
101      box on virtually all Unix platforms. It is available in binary
102      forms for Linux and others.
103     </para>
104
105     <para>
106      The GNU tools
107      <ulink url="&url.autoconf;">Autoconf</ulink>,
108      <ulink url="&url.automake;">Automake</ulink> and
109      <ulink url="&url.libtool;">Libtool</ulink>
110      are used to generate Makefiles and configure &yaz; for the system.
111      You do <emphasis>not</emphasis> these tools unless you're using the
112      CVS version of &yaz;.
113     </para>
114
115     <para>
116      The CQL parser for &yaz; is built using
117      GNU <ulink url="&url.bison;">Bison</ulink>.
118      This tool is only needed if you're using the CVS version of &yaz;.
119     </para>
120         
121     <para>
122      &yaz; includes a tiny ASN.1 compiler. This compiler is
123      written in <ulink url="&url.tcl;">Tcl</ulink>.
124      But as for Bison you do not need it unless you're using CVS
125      version of &yaz; or you're using the compiler to built own codecs
126      for private ASN.1. 
127     </para>
128      
129     <para>
130      Generally it should be sufficient to run configure without options,
131      like this:
132     </para>
133     
134     <screen>
135      ./configure
136     </screen>
137     
138     <para>
139      The configure script attempts to use use the C compiler specified by
140      the <literal>CC</literal> environment variable. If not set, GNU C will be
141      used if it is available. The <literal>CFLAGS</literal> environment
142      variable holds options to be passed to the C compiler. If you're using
143      Bourne-compatible shell you may pass something like this to use a
144      particular C compiler with optimization enabled:
145     </para>
146     
147     <screen>
148      CC=/opt/ccs/bin/cc CFLAGS=-O ./configure
149     </screen>
150     
151     <para>
152      To customize &yaz;, the configure script also accepts a set of options.
153      The most important are:
154      
155      <variablelist>
156       <varlistentry><term>
157         <literal>--prefix</literal>=<replaceable>prefix</replaceable></term>
158        <listitem><para>Specifies installation prefix for &yaz;. This is
159          only needed if you run <literal>make install</literal> later to
160          perform a "system" installation. The prefix is
161          <literal>/usr/local</literal> if not specified.
162         </para></listitem>
163       </varlistentry>
164       <varlistentry><term><literal>--enable-tcpd</literal></term>
165        <listitem><para>The front end server will be built using Wietse's
166          <ulink url="&url.tcpwrapper;">TCP wrapper library</ulink>.
167          It allows you to allow/deny clients depending on IP number.
168          The TCP wrapper library is often used in GNU/Linux and
169          BSD distributions.
170          See
171          <citerefentry>
172           <refentrytitle>hosts_access</refentrytitle>
173           <manvolnum>5</manvolnum>
174          </citerefentry>
175          and 
176          <citerefentry>
177           <refentrytitle>tcpd</refentrytitle>
178           <manvolnum>8</manvolnum>
179          </citerefentry>.
180         </para></listitem>
181       </varlistentry>
182
183       <varlistentry><term><literal>--enable-threads</literal></term>
184        <listitem><para>&yaz; will be built using POSIX threads.
185         Specifically, <constant>_REENTRANT</constant> will be defined during
186          compilation.
187         </para></listitem>
188       </varlistentry>
189
190       <varlistentry><term><literal>--disable-shared</literal></term>
191        <listitem><para>The make process will not create shared
192          libraries (also known as shared objects <filename>.so</filename>).
193          By default, shared libraries are created -
194          equivalent to <literal>--enable-shared</literal>.
195         </para></listitem>
196       </varlistentry>
197
198       <varlistentry><term><literal>--disable-shared</literal></term>
199        <listitem><para>The make process will not create
200          static libraries (<filename>.a</filename>).
201          By default, static libraries are created -
202          equivalent to <literal>--enable-static</literal>.
203         </para></listitem>
204       </varlistentry>
205       
206       <varlistentry><term>
207         <literal>--with-iconv</literal>[=<replaceable>prefix</replaceable>]
208        </term>
209        <listitem><para>Compile &yaz; with iconv library in directory
210          <replaceable>prefix</replaceable>. By default configure will
211          search for iconv on the system. Use this option if it
212          doesn't find iconv. Alternatively, 
213          <literal>--without-iconv</literal>, can be uset to force &yaz;
214          not to use iconv.
215         </para></listitem>
216       </varlistentry>
217
218       <varlistentry><term>
219         <literal>--with-xslt</literal>[=<replaceable>prefix</replaceable>]
220        </term>
221        <listitem><para>Compile &yaz; with 
222          <ulink url="&url.libxslt;">libxslt</ulink> in directory
223          <replaceable>prefix</replaceable>. 
224          Use this option if you want XSLT and XML support.
225          By default, configure will
226          search for libxslt on the system. Use this option if it
227          libxslt is not found automatically. Alternatively, 
228          <literal>--without-xslt</literal>, can be used to force &yaz;
229          not to use libxslt.
230         </para>
231        </listitem>
232       </varlistentry>
233
234       <varlistentry><term>
235         <literal>--with-xml2</literal>[=<replaceable>prefix</replaceable>]
236        </term>
237        <listitem><para>Compile &yaz; with 
238          <ulink url="&url.libxml2;">libxml2</ulink> in directory
239          <replaceable>prefix</replaceable>. 
240          Use this option if you want &yaz; to use XML and support SRU.
241          By default, configure will
242          search for libxml2 on the system. Use this option if it
243          libxml2 is not found automatically. Alternatively, 
244          <literal>--without-xml2</literal>, can be used to force &yaz;
245          not to use libxml2.
246          </para>
247          <para>
248            Note that option <literal>--with-xslt</literal>
249            also enables libxml2.
250          </para>
251        </listitem>
252       </varlistentry>
253
254       <varlistentry><term>
255         <literal>--with-openssl</literal>[=<replaceable>prefix</replaceable>]
256        </term>
257        <listitem><para>&yaz; will be linked with the OpenSSL libraries and
258          an SSL COMSTACK will be provided. Note that SSL support is still
259          experimental.
260         </para></listitem>
261       </varlistentry>
262
263       <varlistentry><term>
264         <literal>--with-icu</literal>[=<replaceable>prefix</replaceable>]
265        </term>
266        <listitem><para>&yaz; will be linked the 
267         <ulink url="&url.icu;">ICU</ulink> library in the prefix if given.
268         If prefix is not given, the libraries exposed by the script
269         <application>icu-config</application> will be used if found.
270         </para></listitem>
271       </varlistentry>
272
273      </variablelist>
274      
275     </para>
276     <para>
277      When configured, build the software by typing:
278      <screen>
279       make
280      </screen>
281     </para>
282     
283     <para>
284      The following files are generated by the make process:
285      <variablelist>
286       <varlistentry><term><filename>src/libyaz.la</filename></term>
287        <listitem><para>
288          Main &yaz; library. This is no ordinary library. It's
289          a Libtool archive.
290          By default, &yaz; creates a static library in 
291          <filename>lib/.libs/libyaz.a</filename>.
292         </para></listitem>
293       </varlistentry>
294       
295       <varlistentry><term><filename>src/libyaz_server.la</filename></term>
296        <listitem><para>
297          Generic Frontend server. This is an add-on for libyaz.la.
298          Code in this library uses POSIX threads functions - if they
299          available on the platform.
300         </para></listitem>
301       </varlistentry>
302       
303       <varlistentry><term><filename>ztest/yaz-ztest</filename></term>
304        <listitem><para>Test Z39.50 server. 
305         </para></listitem>
306       </varlistentry>
307       
308       <varlistentry><term><filename>client/yaz-client</filename></term>
309        <listitem><para>Z39.50 client for testing the protocol.
310          See chapter <link linkend="yaz-client">
311           YAZ client</link> for more information.
312         </para></listitem>
313       </varlistentry>
314
315       <varlistentry><term><filename>util/yaz-config</filename></term>
316        <listitem><para>A Bourne-shell script, generated by configure, that
317          specifies how external applications should compile - and link with
318          &yaz;.
319         </para></listitem>
320       </varlistentry>
321       
322       <varlistentry><term><filename>util/yaz-asncomp</filename></term>
323        <listitem><para>The ASN.1 compiler for &yaz;. Requires the
324          Tcl Shell, <application>tclsh</application>, in
325          <literal>PATH</literal> to operate.
326         </para></listitem>
327       </varlistentry>
328       
329       <varlistentry><term><filename>util/yaz-iconv</filename></term>
330        <listitem><para>This program converts data in one character set to
331          another. This command exercises the YAZ character set
332          conversion API.
333         </para></listitem>
334       </varlistentry>
335        
336       <varlistentry><term><filename>util/yaz-marcdump</filename></term>
337        <listitem><para>This program parses ISO2709 encoded MARC records
338          and prints them in line-format or XML.
339         </para></listitem>
340       </varlistentry>
341       
342       <varlistentry><term><filename>util/yaz-icu</filename></term>
343        <listitem><para>This program exposes the ICU wrapper library if that
344          is enabled for YAZ. Only if ICU is available this program is
345          useful.
346         </para></listitem>
347       </varlistentry>
348       
349      <varlistentry><term><filename>zoom/zoomsh</filename></term>
350        <listitem><para>
351          A simple shell implemented on top of the 
352          <link linkend="zoom">ZOOM</link> functions.
353          The shell is a command line application that allows you to enter
354          simple commands to perform ZOOM operations.
355         </para></listitem>
356       </varlistentry>
357       
358       <varlistentry><term><filename>zoom/zoomtst1</filename>, 
359         <filename>zoom/zoomtst2</filename>, ..</term>
360        <listitem><para>
361          Several small applications that demonstrates the ZOOM API.
362         </para></listitem>
363       </varlistentry>
364      </variablelist>
365      
366     </para>
367     
368     <para>
369      If you wish to install &yaz; in system directories  
370      <filename>/usr/local/bin</filename>,
371      <filename>/usr/local/lib</filename> .. etc, you can type:
372     </para>
373     
374     <screen>
375      make install
376     </screen>
377    
378     <para>
379      You probably need to have root access in order to perform this.
380      You must specify the <literal>--prefix</literal> option for configure if
381      you wish to install &yaz; in other directories than the default 
382      <filename>/usr/local/</filename>.
383     </para>
384     
385     <para>
386      If you wish to perform an un-installation of &yaz;, use:
387     </para>
388     
389     <screen>
390      make uninstall
391     </screen>
392     
393     <para>
394      This will only work if you haven't reconfigured &yaz; (and therefore
395      changed installation prefix). Note that uninstall will not
396      remove directories created by make install, e.g.
397      <filename>/usr/local/include/yaz</filename>.
398     </para>
399    </sect2>
400
401    <sect2 id="installation-linking-yaz-unix">
402     <title>How to make apps using YAZ on UNIX</title>
403     <para>
404      This section describes how to compile - and link your own
405      applications using the &yaz; toolkit.
406      If you're used to Makefiles this shouldn't be hard. As for
407      other libraries you have used before, you have to set a proper include
408      path for your C/C++ compiler and specify the location of
409      &yaz; libraries. You can do it by hand, but generally we suggest
410      you use the <filename>yaz-config</filename> that is generated
411      by <filename>configure</filename>. This is especially
412      important if you're using the threaded version of &yaz; which
413      require you to pass more options to your linker/compiler.
414     </para>
415     <para>
416      The <filename>yaz-config</filename> script accepts command line
417      options that makes the <filename>yaz-config</filename> script print
418      options that you should use in your make process.
419      The most important ones are:
420      <literal>--cflags</literal>, <literal>--libs</literal>
421      which prints C compiler flags, and linker flags respectively.
422      </para>
423     <para>
424      A small and complete <literal>Makefile</literal> for a C
425      application consisting of one source file,
426      <filename>myprog.c</filename>, may look like this:
427      <screen>
428       YAZCONFIG=/usr/local/bin/yaz-config
429       CFLAGS=`$(YAZCONFIG) --cflags`
430       LIBS=`$(YAZCONFIG) --libs`
431       myprog: myprog.o
432          $(CC) $(CFLAGS) -o myprog myprog.o $(LIBS)
433       </screen>
434      </para>
435     <para>
436      The CFLAGS variable consists of a C compiler directive that will set
437      the include path to the <emphasis>parent</emphasis> directory
438      of <filename>yaz</filename>. That is, if &yaz; header files were
439      installed in <filename>/usr/local/include/yaz</filename>,
440      then include path is set to <filename>/usr/local/include</filename>.
441      Therefore, in your applications you should use
442      <screen>
443       #include &lt;yaz/proto.h>
444      </screen>
445      and <emphasis>not</emphasis>
446      <screen>
447       #include &lt;proto.h>
448      </screen>
449     </para> 
450     <para>
451      For Libtool users, the <filename>yaz-config</filename> script provides
452      a different variant of option <literal>--libs</literal>, called
453      <literal>--lalibs</literal> that returns the name of the
454      Libtool archive(s) for &yaz; rather than the ordinary ones.
455     </para>
456     <para>
457      For applications using the threaded version of &yaz;,
458      specify <literal>threads</literal> after the
459      other options. When <literal>threads</literal> is given,
460      more flags and linker flags will be printed by
461      <filename>yaz-config</filename>. If our previous example was
462       using threads, you'd have to modify the lines that set
463      <literal>CFLAGS</literal> and <literal>LIBS</literal> as
464      follows:
465      <screen>
466       CFLAGS=`$(YAZCONFIG) --cflags threads`
467       LIBS=`$(YAZCONFIG) --libs threads`
468      </screen>
469      There is no need specify POSIX thread libraries in your Makefile.
470      The <literal>LIBS</literal> variable includes that as well.
471     </para>
472    </sect2>
473   </sect1>
474   <sect1 id="installation.win32"><title>WIN32</title>
475    
476    <para>The easiest way to install YAZ on Windows is by downloading
477     an installer from 
478     <ulink url="&url.yaz.download.win32;">here</ulink>.
479     The installer comes with source too - in case you wish to
480     compile YAZ with different Compiler options etc. 
481    </para>
482    
483    <sect2 id="installation.win32.source">
484     <title>Compiling from Source on WIN32</title>
485     <para>
486      &yaz; is shipped with "makefiles" for the NMAKE tool that comes
487      with <ulink url="&url.vstudio;">
488       Microsoft Visual Studio</ulink>.
489      Version 6 and .NET has been tested. We expect that &yaz; compiles
490      with version 5 as well.
491     </para>
492     <para>
493      Start a command prompt and switch the sub directory
494      <filename>WIN</filename> where the file <filename>makefile</filename>
495      is located. Customize the installation by editing the
496      <filename>makefile</filename> file (for example by using notepad).
497      
498      The following summarizes the most important settings in that file:
499      
500      <variablelist>
501       <varlistentry><term><literal>DEBUG</literal></term>
502        <listitem><para>
503          If set to 1, the software is
504          compiled with debugging libraries (code generation is
505          multi-threaded debug DLL).
506          If set to 0, the software is compiled with release libraries
507          (code generation is multi-threaded DLL).
508         </para></listitem>
509       </varlistentry>
510       <varlistentry>
511        <term><literal>HAVE_TCL</literal>, <literal>TCL</literal></term>
512        <listitem><para>
513          If <literal>HAVE_TCL</literal> is set to 1, nmake will
514          use the ASN.1 compiler (Tcl based). You must set
515          <literal>TCL</literal> to the full path of the Tcl
516          interpreter.
517         </para>
518         <para>
519          If you do not have Tcl installed, set
520          <literal>HAVE_TCL</literal> to 0.
521         </para></listitem>
522       </varlistentry>
523
524       <varlistentry>
525        <term><literal>HAVE_BISON</literal>,
526         <literal>BISON</literal></term>
527        <listitem><para>
528          If GNU Bison is present, you might set <literal>HAVE_ICONV</literal>
529          to 1 and specify the Bison executable in <literal>BISON</literal>.
530          Bison is only required if you use the CVS version of
531          YAZ or if you modify the grammar for CQL
532          (<filename>cql.y</filename>).
533         </para>
534         <para>
535          A Windows version of GNU Bison is part of 
536          <ulink url="&url.unxutils;">unxutils</ulink>.
537         </para></listitem>
538       </varlistentry>
539
540       <varlistentry>
541        <term><literal>HAVE_ICONV</literal>,
542         <literal>ICONV_DIR</literal></term>
543        <listitem><para>
544          If <literal>HAVE_ICONV</literal> is set to 1, YAZ is compiled
545          with iconv support. In this configuration, set 
546          <literal>ICONV_DIR</literal> to the iconv source directory.
547         </para></listitem>
548       </varlistentry>
549       
550       <varlistentry>
551        <term><literal>HAVE_LIBXML2</literal>,
552         <literal>LIBXML2_DIR</literal></term>
553        <listitem>
554         <para>
555          If <literal>HAVE_LIBXML2</literal> is set to 1, YAZ is compiled
556          with SRU support. In this configuration, set 
557          <literal>LIBXML2_DIR</literal> to the 
558          <ulink url="&url.libxml2;">libxml2</ulink> source directory
559          and
560          <literal>ZLIB_DIR</literal> to the zlib directory.
561         </para>
562
563         <para>
564          Windows versions of libxslt, libxml2, zlib and iconv can be found
565          <ulink url="&url.libxml2.download.win32;">
566           Igor Zlatkovi&#x0107;' site</ulink>.
567         </para>
568
569         <note>
570          <para>
571           YAZ is not using zlib but libxml2 is depending on it.
572          </para>
573         </note>
574        </listitem>
575       </varlistentry>
576
577       <varlistentry>
578        <term><literal>HAVE_LIBXSLT</literal>,
579         <literal>LIBXSLT_DIR</literal></term>
580        <listitem>
581         <para>
582          If <literal>HAVE_LIBXSLT</literal> is set to 1, YAZ is compiled
583          with XSLT support. In this configuration, set 
584          <literal>LIBXSLT_DIR</literal> to the 
585          <ulink url="&url.libxslt;">libxslt</ulink> source directory.
586         </para>
587
588         <note>
589          <para>
590           libxslt depends libxml2.
591          </para>
592         </note>
593        </listitem>
594       </varlistentry>
595
596       <varlistentry>
597        <term><literal>HAVE_ICU</literal>,
598         <literal>ICU_DIR</literal></term>
599        <listitem>
600         <para>
601          If <literal>HAVE_ICU</literal> is set to 1, YAZ is compiled
602          with <ulink url="&url.icu;">ICU</ulink> support.
603          In this configuration, set 
604          <literal>ICU_DIR</literal> to the 
605          <ulink url="&url.icu;">ICU</ulink> source directory.
606         </para>
607        </listitem>
608
609       </varlistentry>
610
611      </variablelist>
612     </para>
613     <para>
614      When satisfied with the settings in the makefile, type
615      <screen>
616       nmake
617      </screen>
618     </para>
619     <note>
620      <para>
621       If the <filename>nmake</filename> command is not found on your system
622       you probably haven't defined the environment variables required to
623       use that tool. To fix that, find and run the batch file
624       <filename>vcvars32.bat</filename>. You need to run it from within
625       the command prompt or set the environment variables "globally";
626       otherwise it doesn't work.
627      </para>
628     </note>
629     <para>
630      If you wish to recompile &yaz; - for example if you modify
631      settings in the <filename>makefile</filename> you can delete
632      object files, etc by running.
633      <screen>
634       nmake clean
635      </screen>
636     </para>
637     <para>
638      The following files are generated upon successful compilation:
639      
640      <variablelist>
641       <varlistentry><term><filename>bin/yaz3.dll</filename> / 
642           <filename>bin/yaz3d.dll</filename></term>
643        <listitem><para>
644          &yaz; Release/Debug DLL.
645         </para></listitem></varlistentry>
646       
647       <varlistentry><term><filename>lib/yaz3.lib</filename> / 
648           <filename>lib/yaz3d.lib</filename></term>
649        <listitem><para>
650          Import library for <filename>yaz3.dll</filename> /
651          <filename>yaz3d.dll</filename>.
652         </para></listitem></varlistentry>
653       
654       <varlistentry><term><filename>bin/yaz_icu3.dll</filename> /
655           <filename>bin/yaz_icu3d.dll</filename></term>
656        <listitem><para>
657          Release/Debug DLL for the ICU wrapper utility.
658          Only build if HAVE_ICU is 1.
659         </para></listitem></varlistentry>
660       
661       <varlistentry><term><filename>lib/yaz_icu3.lib</filename> /
662           <filename>lib/yaz_icu3d.lib</filename></term>
663        <listitem><para>
664          Import library for <filename>yaz_icu3.dll</filename> /
665          <filename>yaz_icu3d.dll</filename>.
666         </para></listitem></varlistentry>
667       
668       <varlistentry><term><filename>bin/yaz-ztest.exe</filename></term>
669        <listitem><para>
670          Z39.50 multi-threaded test/example server. It's a WIN32
671          console application.
672         </para></listitem></varlistentry>
673       
674       <varlistentry><term><filename>bin/yaz-client.exe</filename></term>
675        <listitem><para>
676          &yaz; Z39.50 client application. It's a WIN32 console application.
677          See chapter <link linkend="yaz-client">YAZ client</link> for more
678          information.
679         </para></listitem></varlistentry>
680       
681       <varlistentry><term><filename>bin/yaz-icu.exe</filename></term>
682        <listitem><para>This program exposes the ICU wrapper library if that
683          is enabled for YAZ. Only if ICU is available this program is
684          build.
685         </para></listitem></varlistentry>
686
687       <varlistentry><term><filename>bin/zoomsh.exe</filename></term>
688        <listitem><para>
689          Simple console application implemented on top of the
690          <link linkend="zoom">ZOOM</link> functions.
691          The application is a command line shell that allows you to enter
692          simple commands to perform ZOOM operations.
693         </para></listitem></varlistentry>
694       
695       <varlistentry><term><filename>bin/zoomtst1.exe</filename>, 
696         <filename>bin/zoomtst2.exe</filename>, ..</term>
697        <listitem><para>
698          Several small applications that demonstrates the ZOOM API.
699         </para></listitem></varlistentry>
700       
701      </variablelist>
702      
703     </para>
704    </sect2>
705
706    <sect2 id="installation-linking-yaz-win32">
707     <title>How to make apps using YAZ on WIN32</title>
708     <para>
709      This section will go though the process of linking your WIN32
710      applications with &yaz;.
711     </para>
712     <para>
713      Some people are confused by the fact that we use the nmake
714      tool to build &yaz;. They think they have to do that too - in order
715      to make their WIN32 applications work with &yaz;. The good news is that
716      you don't have to. You can use the integrated environment of
717      Visual Studio if desired for your own application.
718     </para>
719     <para>
720      When setting up a project or Makefile you have to set the following:
721      <variablelist>
722       <varlistentry><term>include path</term><listitem><para>
723          Set it to the <filename>include</filename> directory of &yaz;.
724         </para></listitem></varlistentry>
725       <varlistentry><term>import library <filename>yaz3.lib</filename>
726        </term><listitem><para>
727          You must link with this library. It's located in the 
728          sub directory <filename>lib</filename> of &yaz;.
729          If you want to link with the debug version of &yaz;, you must
730          link against <filename>yaz3d.lib</filename> instead.
731         </para></listitem></varlistentry>
732       <varlistentry><term>dynamic link library <filename>yaz3.dll</filename>
733        </term><listitem><para>
734          This DLL must be in your execution path when you invoke
735          your application. Specifically, you should distribute this
736          DLL with your application.
737         </para></listitem></varlistentry>
738      </variablelist>
739     </para>
740    </sect2>
741   </sect1>
742  </chapter>
743  
744  <!-- Keep this comment at the end of the file
745  Local variables:
746  mode: sgml
747  sgml-omittag:t
748  sgml-shorttag:t
749  sgml-minimize-attributes:nil
750  sgml-always-quote-attributes:t
751  sgml-indent-step:1
752  sgml-indent-data:t
753  sgml-parent-document: "yaz.xml"
754  sgml-local-catalogs: nil
755  sgml-namecase-general:t
756  End:
757  -->
758