%general-entities; ]> ncurses &ncurses-version;
&ncurses-url;
Ncurses-&ncurses-version; Ncurses tools <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../chapter06/ncurses.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&ncurses-ch5-sbu;</seg> <seg>&ncurses-ch5-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Ncurses First, ensure that gawk is found first during configuration: sed -i s/mawk// configure Prepare Ncurses for compilation: ./configure --prefix=/tools \ --with-shared \ --without-debug \ --without-ada \ --enable-widec \ --enable-overwrite The meaning of the configure options: --without-ada This ensures that Ncurses does not build support for the Ada compiler which may be present on the host but will not be available once we enter the chroot environment. --enable-overwrite This tells Ncurses to install its header files into /tools/include, instead of /tools/include/ncurses, to ensure that other packages can find the Ncurses headers successfully. --enable-widec This switch causes wide-character libraries (e.g., libncursesw.so.&ncurses-version;) to be built instead of normal ones (e.g., libncurses.so.&ncurses-version;). These wide-character libraries are usable in both multibyte and traditional 8-bit locales, while normal libraries work properly only in 8-bit locales. Wide-character and normal libraries are source-compatible, but not binary-compatible. Compile the package: make This package has a test suite, but it can only be run after the package has been installed. The tests reside in the test/ directory. See the README file in that directory for further details. Install the package: make install ln -s libncursesw.so /tools/lib/libncurses.so Installation of Ncurses - 32 bit Prepare Ncurses for compilation: make distclean && CC="${LFS_TGT}-gcc -m32" \ ./configure --prefix=/tools \ --libdir=/tools/lib32 \ --with-shared \ --without-debug \ --without-ada \ --enable-widec \ --enable-overwrite \ --host="${LFS_TGT32}" Compile the package: make To test the results, issue: make check Install the package: make DESTDIR=$PWD/DESTDIR_32 install && cp -Rv DESTDIR_32/tools/lib32/* /tools/lib32 Installation of Ncurses - x32 bit Repeat for the x32-ABI: make distclean && CC="${LFS_TGT}-gcc -mx32" \ ./configure --prefix=/tools \ --libdir=/tools/libx32 \ --with-shared \ --without-debug \ --without-ada \ --enable-widec \ --enable-overwrite \ --host="${LFS_TGTX32}" make make DESTDIR=$PWD/DESTDIR_x32 install && cp -Rv DESTDIR_x32/tools/libx32/* /tools/libx32 <para>Details on this package are located in <xref linkend="contents-ncurses" role="."/></para> </sect2> </sect1>