Giter Site home page Giter Site logo

sirius / cmake Goto Github PK

View Code? Open in Web Editor NEW

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

1.0 1.0 0.0 219 KB

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.13% CMake 3.97% C 91.90%

cmake's Introduction

Building C/C++ Barcode Reader with CMake

Version 6.3

License

Get the trial license.

Contact Us

https://www.dynamsoft.com/Company/Contact.aspx

Windows

Installation

Steps

  1. Copy DBRx86.lib/DBRx64.lib and DynamsoftBarcodeReaderx86.dll/DynamsoftBarcodeReaderx64.dll to platforms\win folder.

  2. Create a build folder:

    mkdir build
    cd build
    
  3. Edit CMakeLists.txt to replace the installation path with yours:

    set(CMAKE_INSTALL_PREFIX "e:/${PROJECT_NAME}")
    
  4. Generate project configuration files for win32:

    cmake ..

    For win64:

    cmake -G"Visual Studio 14 2015 Win64" ..
  5. Build and install the project:

    cmake --build . --target install
    
  6. Run the app:

    cd e:\BarcodeReader\bin
    BarcodeReader.exe [barcode image file]
    

Screenshot

build barcode reader with cmake

Linux

  1. Install CMake:
    sudo apt-get install cmake
  2. Download Dynamsoft Barcode Reader for Linux. Copy libDynamsoftBarcodeReader.so to platforms\linux.
  3. Create a build folder:
    mkdir build
    cd build
    
  4. Build and install the project:
    sudo cmake --build . --target install
  5. Run the app:
    BarcodeReader [barcode image file]
    

macOS

  1. Install CMake:
    brew install cmake
  2. Download Dynamsoft Barcode Reader for macOS. Copy libDynamsoftBarcodeReader.dylib to platforms\macos.
  3. Create a build folder:
    mkdir build
    cd build
    
  4. Build and install the project:
    cmake --build . --target install
  5. Run the app:
    BarcodeReader [barcode image file]
    

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.