Linux SDK - Installation

Prerequisites #

Before installing, make sure you have the following:

  • A Linux-based OS (Ubuntu 20.04+, Debian, CentOS, or similar)
  • gcc
  • make
  • A valid barKoder SDK license key
  • Internet connection for downloading dependencies (if needed)

Building sample application: #

Download the latest Linux SDK package from the barKoder Developer Portal or from the link provided by the barKoder team.

                wget https://your-download-link.com/barkoder-sdk-linux.tar.gz

            

1. Make sure system libraries are installed:

- libcurl

- libiconv

- libjpeg

- libpng

2. Copy the desired architecture shared library file (.so) placed in the "libs" folder to the system library folder, or into the project folder by adjusting LD_LIBRARY_PATH (and LIBRARY_PATH if needed). Note that building applications using static lib is not officially supported but you may use it at your own risk.

3. Place valid trial or production key in Config::InitializeWithLicenseKey function

4. Adjust decoder configuration settings as desired (active barcode types, decoding speed, individual barcode type parameters...)

5. Run build script buildSample.sh

5.1. Optionally, the app can be built without the jpg and png libraries—this requires removing them from the build script and also removing their definitions from the beginning of Sample.cpp, but in that case, only BMP image types can be read.

6. Run the application by specifying image file name as the first (and only) argument

Building with OCR (MRZ) support (in addition to previous steps): #

- use libs_ocr source path for libraries with OCR (MRZ) support (only 64 bit platforms are supported)

- copy files from OCR_Resources to executable folder

- make sure to use key with MRZ enabled, otherwise decoder won't return even masked result

Page Contents

History:

close