source: BOOK/cross-tools/common/ncurses.xml@ cdc0f7c

clfs-3.0.0-systemd systemd
Last change on this file since cdc0f7c was 1b9516f, checked in by Chris Staub <chris@…>, 11 years ago

Added explanation for cross-tools ncurses

  • Property mode set to 100644
File size: 2.9 KB
Line 
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>
15 <secondary>cross tools</secondary>
16 </indexterm>
17
18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
19 href="../../final-system/common/ncurses.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of Ncurses</title>
24
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
35 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
36 href="../../temp-system/common/ncurses.xml"
37 xpointer="xpointer(//*[@os='p1'])"/>
38
39 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
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 \
46 --without-debug --without-shared</userinput></screen>
47
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 <varlistentry os="b2">
59 <term><parameter>--without-shared</parameter></term>
60 <listitem>
61 <para>This prevents Ncurses from building its shared libraries, which
62 are not needed at this time.</para>
63 </listitem>
64 </varlistentry>
65
66 </variablelist>
67
68 <para os="c">Only one binary is needed for the Cross-Tools. Build the
69 headers and then build <command>tic</command>:</para>
70
71<screen os="d"><userinput>make -C include
72make -C progs tic</userinput></screen>
73
74 <para os="e">Install <command>tic</command> with the following command:</para>
75
76<screen os="f"><userinput>install -v -m755 progs/tic /cross-tools/bin</userinput></screen>
77
78 </sect2>
79
80 <sect2 role="content">
81 <title/>
82
83 <para>Details on this package are located in <xref
84 linkend="contents-ncurses" role="."/></para>
85
86 </sect2>
87
88</sect1>
Note: See TracBrowser for help on using the repository browser.