[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[7b82580] | 7 |
|
---|
[9652249] | 8 | <sect1 id="ch-tools-ncurses" role="wrap">
|
---|
[7b82580] | 9 | <?dbhtml filename="ncurses.html"?>
|
---|
[bc82645e] | 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>ncurses</productname>
|
---|
| 13 | <productnumber>&ncurses-version;</productnumber>
|
---|
| 14 | <address>&ncurses-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[7b82580] | 17 | <title>Ncurses-&ncurses-version;</title>
|
---|
[81fd230] | 18 |
|
---|
[7b82580] | 19 | <indexterm zone="ch-tools-ncurses">
|
---|
| 20 | <primary sortas="a-Ncurses">Ncurses</primary>
|
---|
| 21 | <secondary>tools</secondary>
|
---|
| 22 | </indexterm>
|
---|
[673b0d8] | 23 |
|
---|
[7b82580] | 24 | <sect2 role="package">
|
---|
| 25 | <title/>
|
---|
[673b0d8] | 26 |
|
---|
[d9441360] | 27 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[7b82580] | 28 | href="../chapter06/ncurses.xml"
|
---|
| 29 | xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
---|
[81fd230] | 30 |
|
---|
[7b82580] | 31 | <segmentedlist>
|
---|
| 32 | <segtitle>&buildtime;</segtitle>
|
---|
| 33 | <segtitle>&diskspace;</segtitle>
|
---|
[73aedd1d] | 34 |
|
---|
[7b82580] | 35 | <seglistitem>
|
---|
[e4a5635] | 36 | <seg>&ncurses-ch5-sbu;</seg>
|
---|
| 37 | <seg>&ncurses-ch5-du;</seg>
|
---|
[7b82580] | 38 | </seglistitem>
|
---|
| 39 | </segmentedlist>
|
---|
[73aedd1d] | 40 |
|
---|
[7b82580] | 41 | </sect2>
|
---|
[73aedd1d] | 42 |
|
---|
[7b82580] | 43 | <sect2 role="installation">
|
---|
| 44 | <title>Installation of Ncurses</title>
|
---|
[81fd230] | 45 |
|
---|
[7b82580] | 46 | <para>Prepare Ncurses for compilation:</para>
|
---|
[81fd230] | 47 |
|
---|
[8ad94ab] | 48 | <screen><userinput remap="configure">./configure --prefix=/tools \
|
---|
[cb23c1a] | 49 | --with-shared \
|
---|
| 50 | --without-debug \
|
---|
| 51 | --without-ada \
|
---|
| 52 | --enable-widec \
|
---|
| 53 | --enable-overwrite</userinput></screen>
|
---|
[81fd230] | 54 |
|
---|
[7b82580] | 55 | <variablelist>
|
---|
| 56 | <title>The meaning of the configure options:</title>
|
---|
| 57 |
|
---|
| 58 | <varlistentry>
|
---|
| 59 | <term><parameter>--without-ada</parameter></term>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>This ensures that Ncurses does not build support for the Ada
|
---|
| 62 | compiler which may be present on the host but will not be available
|
---|
| 63 | once we enter the <command>chroot</command> environment.</para>
|
---|
| 64 | </listitem>
|
---|
| 65 | </varlistentry>
|
---|
| 66 |
|
---|
| 67 | <varlistentry>
|
---|
| 68 | <term><parameter>--enable-overwrite</parameter></term>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>This tells Ncurses to install its header files into
|
---|
| 71 | <filename class="directory">/tools/include</filename>, instead of
|
---|
| 72 | <filename class="directory">/tools/include/ncurses</filename>, to
|
---|
| 73 | ensure that other packages can find the Ncurses headers
|
---|
| 74 | successfully.</para>
|
---|
| 75 | </listitem>
|
---|
| 76 | </varlistentry>
|
---|
| 77 |
|
---|
[cb23c1a] | 78 | <varlistentry>
|
---|
| 79 | <term><parameter>--enable-widec</parameter></term>
|
---|
| 80 | <listitem>
|
---|
| 81 | <para>This switch causes wide-character libraries (e.g., <filename
|
---|
| 82 | class="libraryfile">libncursesw.so.&ncurses-version;</filename>)
|
---|
| 83 | to be built instead of normal ones (e.g., <filename
|
---|
| 84 | class="libraryfile">libncurses.so.&ncurses-version;</filename>).
|
---|
| 85 | These wide-character libraries are usable in both multibyte and
|
---|
| 86 | traditional 8-bit locales, while normal libraries work properly
|
---|
| 87 | only in 8-bit locales. Wide-character and normal libraries are
|
---|
| 88 | source-compatible, but not binary-compatible.</para>
|
---|
| 89 | </listitem>
|
---|
| 90 | </varlistentry>
|
---|
| 91 |
|
---|
[7b82580] | 92 | </variablelist>
|
---|
| 93 |
|
---|
| 94 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 95 |
|
---|
[0445a3d] | 96 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 97 |
|
---|
[182d5d3] | 98 | <para>This package has a test suite, but it can only be run after the
|
---|
| 99 | package has been installed. The tests reside in the
|
---|
| 100 | <filename class="directory">test/</filename> directory. See the
|
---|
| 101 | <filename>README</filename> file in that directory for further details.
|
---|
| 102 | </para>
|
---|
[81fd230] | 103 |
|
---|
[7b82580] | 104 | <para>Install the package:</para>
|
---|
[73aedd1d] | 105 |
|
---|
[0445a3d] | 106 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[73aedd1d] | 107 |
|
---|
[7b82580] | 108 | </sect2>
|
---|
[bc82645e] | 109 |
|
---|
[7b82580] | 110 | <sect2 role="content">
|
---|
| 111 | <title/>
|
---|
[81fd230] | 112 |
|
---|
[7b82580] | 113 | <para>Details on this package are located in
|
---|
| 114 | <xref linkend="contents-ncurses" role="."/></para>
|
---|
[81fd230] | 115 |
|
---|
[7b82580] | 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | </sect1>
|
---|