# zxing-cpp-emscripten **Repository Path**: yushulx/zxing-cpp-emscripten ## Basic Information - **Project Name**: zxing-cpp-emscripten - **Description**: ZXing C++ Library - **Primary Language**: C++ - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-07-18 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Building WebAssembly ZXing on Windows The repository is based on [ZXing Emscripten build](https://github.com/kig/zxing-cpp-emscripten). ## Emscripten Installation 1. Download [emsdk-portable-64bit.zip](https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable-64bit.zip) 2. Fetch the latest registry of available tools: ``` emsdk update ``` 3. Download and install the latest SDK tools: ``` emsdk install latest ``` 3. Make the "latest" SDK "active" for the current user: ``` emsdk activate latest ``` 4. Activate PATH and other environment variables in the current terminal: ``` emsdk_env ``` ## JavaScript ZXing To build: 1. `cd build-js` 2. Run `configure.bat` 3. Run `build.bat` 4. Add the path of **build-js** folder to **IIS**. 5. Open `http://localhost:2588/test.html`. To use: ``` javascript ``` ## WebAssembly ZXing To build: 1. `cd build-wasm` 2. Run `configure.bat` 3. Run `build.bat` 4. Add the path of **build-wasm** folder to **IIS**. 5. Open `http://localhost:2588/test.html`. To use: ``` javascript ``` ## Performance ![JavaScript ZXing vs WebAssembly ZXing](http://www.codepool.biz/wp-content/uploads/2018/01/javascript-webassembly-zxing-performance.PNG) ## Blog - [Building JavaScript and WebAssembly ZXing on Windows](http://www.codepool.biz/building-webassembly-zxing-windows.html) - [Building HTML5 Barcode Reader with Pure JavaScript SDK](http://www.codepool.biz/html5-barcode-reader-javascript-webassembly.html)