# 使用 Homebrew, apk, apt, dnf, Nix, pacman, 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 py3-zxing-cpp
```

  证据: Alpine Linux edge package indexes: py3-zxing-cpp from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.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

- dnf (92%):

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

  证据: Fedora Rawhide package metadata: python3-zxing-cpp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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

- zypper (92%):

```sh
sudo zypper install libZXing3
```

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

## 软件包事实

- **软件包键:** brew:zxing-cpp
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/zxing-cpp>
- **版本:** 3.1.0
- **来源摘要:** Multi-format barcode image processing library written in C++
- **主页:** <https://github.com/zxing-cpp/zxing-cpp>
- **仓库:** <https://github.com/zxing-cpp/zxing-cpp>
- **上游文档:** <https://zxing-cpp.github.io/zxing-cpp/docs/latest>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/zxing-cpp/zxing-cpp/releases/download/v3.1.0/zxing-cpp-3.1.0.tar.gz>
- **最后更新:** 2026-07-07T20:35:59Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

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

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 3.1.0
- 管理器更新时间: 2026-07-07
- 本地数据: OK
- 上游仓库: https://github.com/zxing-cpp/zxing-cpp
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** zxing-cpp
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- 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-7.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Python bindings for the zxing-cpp barcode library | https://github.com/zxing-cpp/zxing-cpp
- dnf - zxing-cpp - 2.2.1-7.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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-7.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for zxing-cpp | https://github.com/zxing-cpp/zxing-cpp


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [leveldb](https://www.automicvault.com/zh-hans/pkg/brew/leveldb/) - Shares av.db curated category or tags: c-plus-plus, cli, data, library.
- [libgrape-lite](https://www.automicvault.com/zh-hans/pkg/brew/libgrape-lite/) - Shares av.db curated category or tags: c-plus-plus, cli, data, library.
- [libmemcached](https://www.automicvault.com/zh-hans/pkg/brew/libmemcached/) - Shares av.db curated category or tags: c-plus-plus, cli, data, library.
- [xapian](https://www.automicvault.com/zh-hans/pkg/brew/xapian/) - Shares av.db curated category or tags: c-plus-plus, cli, data, library.
- [xerces-c](https://www.automicvault.com/zh-hans/pkg/brew/xerces-c/) - Shares av.db curated category or tags: c-plus-plus, cli, data, library.
- [bzip2](https://www.automicvault.com/zh-hans/pkg/brew/bzip2/) - Shares av.db curated category or tags: cli, data, library.
- [gdbm](https://www.automicvault.com/zh-hans/pkg/brew/gdbm/) - Shares av.db curated category or tags: cli, data, library.
- [kyoto-cabinet](https://www.automicvault.com/zh-hans/pkg/brew/kyoto-cabinet/) - Shares av.db curated category or tags: cli, data, library.
- [libkiwix](https://www.automicvault.com/zh-hans/pkg/brew/libkiwix/) - Local package facts share a topical domain. Shared terms: cli, code, cpp, data, library.
- [benthos](https://www.automicvault.com/zh-hans/pkg/brew/benthos/) - Local package facts share a topical domain. Shared terms: cli, data, processing, written.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
