[7153563] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ |
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent"> |
---|
| 5 | %general-entities; |
---|
| 6 | ]> |
---|
| 7 | |
---|
| 8 | <sect1 id="ch-cross-tools-ncurses" role="wrap"> |
---|
| 9 | <?dbhtml filename="ncurses.html"?> |
---|
| 10 | |
---|
| 11 | <title>Ncurses-&ncurses-version;</title> |
---|
| 12 | |
---|
| 13 | <indexterm zone="ch-cross-tools-ncurses"> |
---|
| 14 | <primary sortas="a-Ncurses">Ncurses</primary> |
---|
[979b26f] | 15 | <secondary>cross tools</secondary> |
---|
[7153563] | 16 | </indexterm> |
---|
| 17 | |
---|
[dabbced] | 18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" |
---|
[7153563] | 19 | href="../../final-system/common/ncurses.xml" |
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/> |
---|
| 21 | |
---|
| 22 | <sect2 role="installation"> |
---|
| 23 | <title>Installation of Ncurses</title> |
---|
| 24 | |
---|
[1b9516f] | 25 | <para os="e1">When Ncurses is compiled, it executes <command>tic</command> |
---|
| 26 | to create a terminfo database in |
---|
| 27 | <filename class="directory">${prefix}/share/terminfo</filename>. If |
---|
| 28 | possible, the <filename>Makefile</filename> will use the |
---|
| 29 | <command>tic</command> binary that was just compiled in its |
---|
| 30 | source tree, but this does not work when Ncurses is cross-compiled. To |
---|
| 31 | allow the Ncurses build in <xref linkend="chapter-temp-system" /> to succeed, we |
---|
| 32 | will build and install a <command>tic</command> program that can be run on |
---|
| 33 | the host system.</para> |
---|
| 34 | |
---|
[dabbced] | 35 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" |
---|
[7153563] | 36 | href="../../temp-system/common/ncurses.xml" |
---|
| 37 | xpointer="xpointer(//*[@os='p1'])"/> |
---|
| 38 | |
---|
[dabbced] | 39 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" |
---|
[7153563] | 40 | href="../../temp-system/common/ncurses.xml" |
---|
| 41 | xpointer="xpointer(//*[@os='p2'])"/> |
---|
| 42 | |
---|
| 43 | <para os="a">Prepare Ncurses for compilation:</para> |
---|
| 44 | |
---|
| 45 | <screen os="b"><userinput>./configure --prefix=/cross-tools \ |
---|
[ca61efa] | 46 | --without-debug</userinput></screen> |
---|
[7153563] | 47 | |
---|
[ee47e58] | 48 | <variablelist os="b1"> |
---|
| 49 | <title>The meaning of the new configure options:</title> |
---|
| 50 | |
---|
| 51 | <varlistentry os="b2"> |
---|
| 52 | <term><parameter>--without-debug</parameter></term> |
---|
| 53 | <listitem> |
---|
| 54 | <para>Tells Ncurses to build without debugging information.</para> |
---|
| 55 | </listitem> |
---|
| 56 | </varlistentry> |
---|
| 57 | |
---|
| 58 | </variablelist> |
---|
| 59 | |
---|
[a6b67b3] | 60 | <para os="c">Only one binary is needed for the Cross-Tools. Build the |
---|
| 61 | headers and then build <command>tic</command>:</para> |
---|
[7153563] | 62 | |
---|
| 63 | <screen os="d"><userinput>make -C include |
---|
| 64 | make -C progs tic</userinput></screen> |
---|
| 65 | |
---|
[9f5a80a] | 66 | <para os="e">Install <command>tic</command> with the following command:</para> |
---|
[7153563] | 67 | |
---|
[59f743e] | 68 | <screen os="f"><userinput>install -v -m755 progs/tic /cross-tools/bin</userinput></screen> |
---|
[7153563] | 69 | |
---|
| 70 | </sect2> |
---|
| 71 | |
---|
| 72 | <sect2 role="content"> |
---|
| 73 | <title/> |
---|
| 74 | |
---|
| 75 | <para>Details on this package are located in <xref |
---|
| 76 | linkend="contents-ncurses" role="."/></para> |
---|
| 77 | |
---|
| 78 | </sect2> |
---|
| 79 | |
---|
| 80 | </sect1> |
---|