[bc82645e] | 1 | <sect1 id="ch05-ncurses">
|
---|
| 2 | <title>Installing Ncurses-&ncurses-version;</title>
|
---|
| 3 | <?dbhtml filename="ncurses.html" dir="chapter05"?>
|
---|
| 4 |
|
---|
[f27835d] | 5 | <screen>Estimated build time: &ncurses-time-tools;
|
---|
| 6 | Estimated required disk space: &ncurses-compsize-tools;</screen>
|
---|
[bc82645e] | 7 |
|
---|
| 8 | &aa-ncurses-shortdesc;
|
---|
| 9 | &aa-ncurses-dep;
|
---|
[73aedd1d] | 10 |
|
---|
| 11 | <sect2><title> </title><para> </para></sect2>
|
---|
| 12 |
|
---|
| 13 | <sect2>
|
---|
| 14 | <title>Installation of Ncurses</title>
|
---|
| 15 |
|
---|
| 16 | <para>Fix two minor things:</para>
|
---|
| 17 |
|
---|
| 18 | <screen><userinput>patch -Np1 -i ../&ncurses-etip-patch;
|
---|
| 19 | patch -Np1 -i ../&ncurses-vsscanf-patch;</userinput></screen>
|
---|
| 20 |
|
---|
| 21 | <para>The first patch corrects the <filename>etip.h</filename> header file, and
|
---|
| 22 | the second patch prevents some compiler warnings being issued on the use of
|
---|
| 23 | deprecated headers.</para>
|
---|
| 24 |
|
---|
[d27a27b] | 25 | <para>Now prepare Ncurses for compilation:</para>
|
---|
[73aedd1d] | 26 |
|
---|
| 27 | <screen><userinput>./configure --prefix=/tools --with-shared \
|
---|
| 28 | --without-debug --without-ada --enable-overwrite</userinput></screen>
|
---|
| 29 |
|
---|
| 30 | <para>The meaning of the configure options:</para>
|
---|
| 31 |
|
---|
| 32 | <itemizedlist>
|
---|
| 33 | <listitem><para><userinput>--without-ada</userinput>: This tells Ncurses not
|
---|
| 34 | to build its Ada bindings, even if an Ada compiler is installed on the host.
|
---|
| 35 | This must be done because once we enter the chroot environment, Ada will no
|
---|
| 36 | longer be available.</para></listitem>
|
---|
| 37 |
|
---|
| 38 | <listitem><para><userinput>--enable-overwrite</userinput>: This tells Ncurses
|
---|
| 39 | to install its header files into <filename class="directory">/tools/include</filename>
|
---|
| 40 | instead of <filename class="directory">/tools/include/ncurses</filename> to
|
---|
| 41 | ensure that other packages can find the Ncurses headers successfully.</para>
|
---|
| 42 | </listitem></itemizedlist>
|
---|
| 43 |
|
---|
| 44 | <para>Compile the programs and libraries:</para>
|
---|
| 45 |
|
---|
| 46 | <screen><userinput>make </userinput></screen>
|
---|
| 47 |
|
---|
| 48 | <para>Then install them and their documentation:</para>
|
---|
| 49 |
|
---|
| 50 | <screen><userinput>make install</userinput></screen>
|
---|
| 51 |
|
---|
| 52 | </sect2>
|
---|
[bc82645e] | 53 |
|
---|
| 54 | </sect1>
|
---|
| 55 |
|
---|