ncurses.xml 1.8 KB

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