# 使用 Homebrew, apk, dnf, Nix, pacman, apt, zypper 安装 zxing-cpp

查看 zxing-cpp 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:zxing-cpp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zxing-cpp
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add zxing-cpp
```

  证据: Alpine Linux edge package indexes: zxing-cpp from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install zxing-cpp
```

  证据: Fedora Rawhide package metadata: zxing-cpp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#zxing-cpp
```

  证据: nixpkgs package indexes: pkgs/by-name/zx/zxing-cpp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S zxing-cpp
```

  证据: Arch Linux sync databases: zxing-cpp from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install libzxing-dev
```

  证据: Debian stable package indexes: libzxing-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libZXing3
```

  证据: openSUSE Tumbleweed package metadata: libZXing3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:zxing-cpp
- **软件包管理器:** Homebrew
- **版本:** 3.1.1
- **来源摘要:** Multi-format barcode image processing library written in C++
- **主页:** <https://github.com/zxing-cpp/zxing-cpp>
- **仓库:** <https://github.com/zxing-cpp/zxing-cpp>
- **最后更新:** 2026-07-29T10:17:22Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ZXingReader (别名)
- ZXingWriter (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.1.1
## 项目历史与用法

ZXing-C++ is the actively developed C++ implementation of the ZXing barcode engine, covering multi-format 1D and 2D barcode reading and writing with bindings for native, mobile, scripting, and WebAssembly environments.

### 项目历史

ZXing itself began as the Java 'Zebra Crossing' barcode library with ports to other languages. ZXing-C++ started as a C++ port of that Java codebase, with public zxing-cpp repository history beginning in 2016 and a 1.0.0 release line by 2018.

The modern project is no longer just a direct port. Its README says it has been developed further with runtime and detection-performance improvements, a pure C++ core, thread safety, read/write support, and wrappers for C, Python, Rust, Go, Qt, Android, iOS, .NET, WebAssembly, WinRT, Kotlin/Native, and other ecosystems. Version 3.0 moved the default writing backend to zint.

### 采用历史

ZXing-C++ became the practical native-package answer for software that wanted ZXing's barcode coverage without embedding a Java runtime. It is packaged by C/C++ dependency managers, operating-system distributions, and language wrappers, and it is used where QR, Data Matrix, PDF417, Aztec, EAN/UPC, Code 128, and related formats must be decoded from images or camera frames.

Its broad wrapper set is the adoption story: one C++ core can serve desktop applications, mobile apps, Python scripts, Rust programs, Qt applications, WebAssembly demos, and command-line workflows. That makes the package a hub for barcode functionality across otherwise separate language ecosystems.

### 使用方式

As a library, applications pass image data into ReaderOptions and ReadBarcodes, then inspect Barcode objects for text, format, content type, and position. For generation, callers create barcode objects and write them to images, SVG, or text representations. The package also installs example-style command-line tools such as ZXingReader and ZXingWriter.

### 为什么软件包爱好者会关心

ZXing-C++ matters because barcode support is a dependency people discover only when they need it immediately. A maintained native package with many wrappers prevents every app from carrying its own stale ZXing fork, and gives package managers a single high-quality implementation to expose across C++, Python, Rust, Qt, and WebAssembly stacks.

### 时间线

- 2016: Public zxing-cpp git history begins.
- 2018: v1.0.0-era release line establishes the independent C++ package.
- 2023: v2.0.0-era work reflects the project's modern C++ build direction.
- 2026: v3.0.0-era release adopts zint as the default writing backend.

### Related projects

- ZXing: the original Java barcode image-processing library.
- zint: barcode generation library used as the default writing backend since ZXing-C++ 3.0.
- zxing-wasm and other wrappers: downstream packages that expose ZXing-C++ to web and language runtimes.

### 来源

- <https://github.com/Sec-ant/zxing-wasm>
- <https://github.com/zxing-cpp/zxing-cpp>
- <https://github.com/zxing-cpp/zxing-cpp/tree/master/wrappers/python>
- <https://github.com/zxing/zxing>
- <https://zxing-cpp.github.io/zxing-cpp/docs/latest>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- Debian apt - libzxing-dev - 2.3.0-4: normalized package name match | Debian stable package indexes: libzxing-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ port of ZXing library (development files) | https://github.com/zxing-cpp/zxing-cpp
- Debian apt - libzxing3 - 2.3.0-4: normalized package name match | Debian stable package indexes: libzxing3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ port of ZXing library (library files) | https://github.com/zxing-cpp/zxing-cpp
- Debian apt - python3-zxing-cpp - 2.3.0-4: normalized package name match | Debian stable package indexes: python3-zxing-cpp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ port of ZXing library (python3 binding) | https://github.com/zxing-cpp/zxing-cpp
- Debian apt - zxing-cpp-tools - 2.3.0-4: normalized package name match | Debian stable package indexes: zxing-cpp-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Utilities provided by ZXing library | https://github.com/zxing-cpp/zxing-cpp
- Nix - zxing-cpp: normalized package name match | nixpkgs package indexes: pkgs/by-name/zx/zxing-cpp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libzxing-dev - 2.2.1-3: normalized package name match | Ubuntu 24.04 LTS package indexes: libzxing-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ port of ZXing library (development files) | https://github.com/zxing-cpp/zxing-cpp
- Ubuntu apt - libzxing3 - 2.2.1-3: normalized package name match | Ubuntu 24.04 LTS package indexes: libzxing3 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ port of ZXing library (library files) | https://github.com/zxing-cpp/zxing-cpp
- Ubuntu apt - python3-zxing-cpp - 2.2.1-3: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-zxing-cpp from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ port of ZXing library (python3 binding) | https://github.com/zxing-cpp/zxing-cpp
- Ubuntu apt - zxing-cpp-tools - 2.2.1-3: normalized package name match | Ubuntu 24.04 LTS package indexes: zxing-cpp-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Utilities provided by ZXing library | https://github.com/zxing-cpp/zxing-cpp
- apk - py3-zxing-cpp - 2.3.0-r3: normalized package name match | Alpine Linux edge package indexes: py3-zxing-cpp from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C++ port of ZXing | https://github.com/zxing-cpp/zxing-cpp
- apk - zxing - 2.3.0-r3: normalized package name match | Alpine Linux edge package indexes: zxing from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C++ port of ZXing | https://github.com/zxing-cpp/zxing-cpp
- apk - zxing-cpp - 2.3.0-r3: normalized package name match | Alpine Linux edge package indexes: zxing-cpp from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C++ port of ZXing | https://github.com/zxing-cpp/zxing-cpp
- apk - zxing-cpp-dev - 2.3.0-r3: normalized package name match | Alpine Linux edge package indexes: zxing-cpp-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C++ port of ZXing (development files) | https://github.com/zxing-cpp/zxing-cpp
- dnf - python3-zxing-cpp - 2.2.1-9.fc45: normalized package name match | Fedora Rawhide package metadata: python3-zxing-cpp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Python bindings for the zxing-cpp barcode library | https://github.com/zxing-cpp/zxing-cpp
- dnf - zxing-cpp - 2.2.1-9.fc45: normalized package name match | Fedora Rawhide package metadata: zxing-cpp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | C++ port of the ZXing ("Zebra Crossing") barcode scanning library | https://github.com/zxing-cpp/zxing-cpp
- dnf - zxing-cpp-devel - 2.2.1-9.fc45: normalized package name match | Fedora Rawhide package metadata: zxing-cpp-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for zxing-cpp | https://github.com/zxing-cpp/zxing-cpp


## Combined YAML source

View the package source record on GitHub. [combined/zxing-cpp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/zxing-cpp.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
