yushulx/zxing_barcode_reader

wasi

Public
wasmer run yushulx/zxing_barcode_reader

ZXing Barcode Reader

The source code is ported from https://github.com/nu-book/zxing-cpp.

How to Build

Install wasi-sdk_7.0_amd64.deb .

Set environment variables in terminal:

export PATH=/opt/wasi-sdk/bin:$PATH
export CC=/opt/wasi-sdk/bin/clang
export CXX=/opt/wasi-sdk/bin/clang++

Build the project:

mkdir build
cd build
cmake ..
cmake --build .

Usage

Install wasmer, wasmtime or wapm.

Run zxing_barcode_reader.wasm:

wasmer

wasmer run zxing_barcode_reader.wasm --dir=<image folder> <PNG file>

wasmtime

wasmtime zxing_barcode_reader.wasm --dir=<image folder> <PNG file>

wapm

wapm install yushulx/zxing_barcode_reader
wapm run zxing_barcode_reader --dir=<image folder> <PNG file>

Blog

How to Build ZXing C++ to Wasm using WASI SDK in Linux

A barcode reader app built with ZXing C/C++ and wasi-sdk


Github
More packages
SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine
Syrus Akbary
Syrus Akbary
Syrus Akbary
Syrus Akbary
Clang is a compiler front end for the C, C++, Objective-C and Objective-C++ programming languages
Syrus Akbary
Syrus Akbary
Syrus Akbary
Syrus Akbary
Clang is a compiler front end for the C, C++, Objective-C and Objective-C++ programming languages
Ben Taylor
Ben Taylor
Ben Taylor
Ben Taylor
Hello world in C
आयुष झा (Ayush Jha)
आयुष झा (Ayush Jha)
आयुष झा (Ayush Jha)
आयुष झा (Ayush Jha)
Fortran 2 c compiler
Syrus Akbary
Syrus Akbary
Syrus Akbary
Syrus Akbary
c# HelloWorld prototype using WASI
Scott Waye
Scott Waye
Scott Waye
Scott Waye

Making software universally accessible