inih-62

#### Gaming Linux® From Scratch - Version 13.0

### Chapter 24. Quality of Life

- Prev

  Binary Support

- Next

  GameMode-1.8.2

- Up
- Home

# inih-62

## Introduction to inih

This package is a simple .INI file parser written in C.

### Important

For the lib32 installation instructions, they require new Meson cross files from MLFS, as `--libdir=/usr/lib32` has been moved to the cross files and no longer appear in the instructions. Install the new cross files so that 32-bit libraries don't get installed in `/usr/lib`.

- Download: https://github.com/benhoyt/inih/archive/r62/inih-r62.tar.gz

## Installation of inih

Install inih by running the following commands:

    mkdir build &&
    cd    build &&

    meson setup --prefix=/usr --buildtype=release .. &&
    ninja

Now, as the `root` user:

    ninja install

## lib32 Installation of inih

Install lib32-inih by running the following commands:

    rm -rf * &&
    meson setup --prefix=/usr            \
                --buildtype=release      \
                --cross-file=lib32       \
                .. &&
    ninja

Now, as the `root` user:

    DESTDIR=$PWD/DESTDIR ninja install    &&
    cp -vR DESTDIR/usr/lib32/* /usr/lib32 &&
    rm -rf DESTDIR                        &&
    ldconfig

## Command Explanations

### Note

Inspect `meson_options.txt` or `meson.options` for a full list of options.

`--buildtype=release`: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

## Contents

Installed Program: None
Installed Libraries: libinih and libINIReader
Installed Directories: None

### Short Descriptions

`libinih` | is the inih main library
`libINIReader` | is the inih parser library

- Prev

  Binary Support

- Next

  GameMode-1.8.2

- Up
- Home