GithubHelp home page GithubHelp logo

weizengke / cmake Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yushulx/cmake-cpp-barcode-qrcode

0.0 0.0 0.0 89.97 MB

Command line C++ barcode reader for Windows, Linux, and macOS.

Home Page: https://www.dynamsoft.com/Products/Dynamic-Barcode-Reader.aspx

License: MIT License

C++ 4.17% CMake 1.97% C 93.85%

cmake's Introduction

Building C/C++ Barcode Reader with CMake

release Travis CI status

What You Should Know

Supported Platforms

  • Windows x86/x64
  • Linux x64/ARM64
  • macOS x64
  • Raspberry Pi ARMv7

Setting License

Set the license key in BarcodeReader.cxx:

reader.InitLicense("LICENSE-KEY");

Contact Us

Windows

  1. Create a build folder:
    mkdir build
    cd build
    
  2. Configure and build the project:
    // x86
    cmake -DCMAKE_GENERATOR_PLATFORM=x86 ..
    
    // x64
    cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..
    
    cmake --build . --config release
  3. Run the app:
    Release\BarcodeReader [image-file] [optional: license-file] [optional: template-file]
    

Linux and Raspberry Pi OS

  1. Install CMake:
    sudo apt-get install cmake
  2. Create a build folder:
    mkdir build
    cd build
    
  3. Configure and build the project:
    cmake ..
    # cmake -DARM32_BUILD=TRUE ..
    cmake --build . --config release 
  4. Run the app:
    ./BarcodeReader [image-file] [optional: license-file] [optional: template-file]
    

macOS

  1. Install CMake:

    brew install cmake
  2. Create a build folder:

    mkdir build
    cd build
    
  3. Configure and build the project:

    cmake ..
    cmake --build . --config release 
  4. Run the app:

    ./BarcodeReader [image-file] [optional: license-file] [optional: template-file]
    

Screenshot

Raspberry Pi Barcode Reader

Reference

Blog

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.