QR-Code-generator-1.8.0

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

### Chapter 2. General Libraries

- Prev

  pugixml-1.15

- Next

  re2-2025-11-05

- Up
- Home

# QR-Code-generator-1.8.0

## Introduction to QR-Code-generator

The QR-Code-generator package provides a QR code generator.

- Download: https://github.com/nayuki/QR-Code-generator/archive/v1.8.0/QR-Code-generator-1.8.0.tar.gz

### Additional Downloads

- Required CMake files: https://github.com/EasyCoding/qrcodegen-cmake/archive/v1.8.0-cmake4/qrcodegen-cmake-1.8.0-cmake4.tar.gz

### QR-Code-generator Dependencies

#### Required

CMake

## Installation of QR-Code-generator

First unpack the CMake files:

    tar -xf ../qrcodegen-cmake-1.8.0-cmake4.tar.gz &&
    cp -vR qrcodegen-cmake-1.8.0-cmake4/{cmake,CMakeLists.txt} . &&
    rm -rf qrcodegen-cmake-1.8.0-cmake4

Install QR-Code-generator by running the following commands:

    mkdir build &&
    cd    build &&

    cmake -D CMAKE_INSTALL_PREFIX=/usr   \
          -D CMAKE_BUILD_TYPE=Release    \
          -D CMAKE_SKIP_INSTALL_RPATH=ON \
          -D BUILD_SHARED_LIBS=ON        \
          -G Ninja .. &&

    ninja

Now, as the `root` user:

    ninja install

## Command Explanations

`-D CMAKE_SKIP_INSTALL_RPATH=ON`: This switch makes cmake remove hardcoded library search paths (rpath) when installing a binary executable file or a shared library. This package does not need rpath once it's installed into the standard location, and rpath may sometimes cause unwanted effects or even security issues.

`-D BUILD_SHARED_LIBS=ON`: This ensures shared libraries are built.

## Contents

Installed Programs: None
Installed Libraries: libqrcodegen{,cpp}
Installed Directories: /usr/include/qrcodegen{,cpp} and /usr/lib/cmake/qrcodegen{,cpp}

### Short Descriptions

`libqrcodegen` | provides QR code generation functions

- Prev

  pugixml-1.15

- Next

  re2-2025-11-05

- Up
- Home