Popt-1.16

Introduction to Popt

The popt package contains the popt libraries which are used by some programs to parse command-line options.

This package is known to build and work properly using an LFS-7.7 platform.

Package Information

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/popt

Installation of Popt

32-bit Installation

Install popt by running the following commands:

./configure --prefix=/usr \
--libdir=/usr/lib32       \
--disable-static          \
CC="gcc -m32" &&
make

To test the results, issue:make check.

Now, as the root user:

make install

Clean up the build directory before moving on to the next platform:

make clean

x32 ABI Installation

Install popt by running the following commands:

./configure --prefix=/usr \
--libdir=/usr/libx32      \
--disable-static          \
CC="gcc -mx32" &&
make

To test the results, issue:make check.

Now, as the root user:

make install

Clean up the build directory before moving on to the next platform:

make clean

64-bit Installation

Install popt by running the following commands:

./configure --prefix=/usr --disable-static &&
make

If you have Doxygen-1.8.9.1 installed and wish to build the API documentation, issue doxygen.

To test the results, issue:make check.

Now, as the root user:

make install

If you built the API documentation, install it using the following commands issued by the root user:

install -v -m755 -d /usr/share/doc/popt-1.16 &&
install -v -m644 doxygen/html/* /usr/share/doc/popt-1.16

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

Contents

Installed Programs: None
Installed Library: libpopt.so
Installed Directories: /usr/share/doc/popt-1.16

Short Descriptions

libpopt.so

is used to parse command-line options.

Last updated on 2015-02-20 15:02:49 -0500