Getting Started with the LEADTOOLS Linux Libraries and Demo Projects

Native Dependencies

The following table shows all the third-party native dependencies used by LEADTOOLS. To determine which libraries require these dependencies, refer to the list at the end of this document. A table showing which LEADTOOLS library supports which features can be found here.

Library Description Ubuntu Package Name Fedora Package Name
uuid Universally Unique Identifier library uuid-dev uuid-devel
uuid-runtime uuidd
gcc GNU compiler collection gcc gcc
g++ GNU C++ compiler g++ gcc-c++
glibc-devel Standard C library libc-dev-bin glibc-devel
kernel kernel development libraries and headers linux-libc-dev kernel-devel kernel-headers
X11 Core X11 protocol client library libx11-6 libX11
libxt6 libXt
X11-devel Development files for libX11 libx11-dev libX11-devel
libxt-dev libXt-devel
sqllite C library that implements a SQL database engine sqlite3 sqlite
sqlite-devel Development header files for sqlite libsqlite-dev sqlite-devel
freetype >= 2.3.8 Font rendering engine libfreetype6 freetype
fontconfig >= 2.8.0 Locates fonts within the system fontconfig fontconfig
Microsoft Core Fonts. See Notes below. Microsoft True Type Core Fonts ttf-mscorefonts-installer See Installing Microsoft True Type Core Fonts below

Minimum Linux Versions Required

The following are the minimum versions required by the LEADTOOLS 23 toolkit:

OS Version
CentOS/Redhat 7.9
Fedora 23
Ubuntu 16.04
Debian 9

Note

The LEADTOOLS OCR, Documents format readers, and Documents format writers modules will try to create fonts during their operation. If a needed font, such as "Arial" or "Times New Roman" is not found on the system, the module will substitute a different font. If an exact match for the module output between Windows and Linux is required, then the Microsoft Core Fonts component must be installed.

Ubuntu

Issue the following command to install the dependencies in Ubuntu:

sudo apt update && 
sudo apt-get install uuid-dev uuid-runtime gcc g++ libc-dev-bin linux-libc-dev libx11-6 libx11-dev libxt6 libxt-dev sqlite3 libsqlite3-dev libfreetype6 fontconfig ttf-mscorefonts-installer 

Fedora

Issue the following command to install the dependencies in Fedora:

sudo dnf install uuid-devel uuidd gcc gcc-c++ glibc-devel kernel-devel kernel-headers libX11 libX11-devel libXt libXt-devel sqlite sqlite-devel freetype fontconfig 

CentOS/Redhat

Issue the following commands to install the dependencies in CentOS/Redhat

sudo yum update -y 
sudo yum install libuuid libuuid-devel uuidd gcc gcc-c++ glibc-devel kernel-devel kernel-headers libX11 libXt libX11-devel libXt-devel sqlite sqlite-devel freetype fontconfig -y 

Installing Microsoft True Type Core Fonts

Issue the following commands to install Microsoft TrueType Core Fonts:

sudo dnf install rpm-build cabextract ttmkfdir wget 
cd ~ && mkdir tmp && cd tmp 
wget http://corefonts.sourceforge.net/msttcorefonts-2.5-1.spec 
sudo rpmbuild -bb msttcorefonts-2.5-1.spec 
sudo dnf install /root/rpmbuild/RPMS/noarch/msttcorefonts-2.5-1.noarch.rpm 

Java Dependencies

Install the Java Development Kit (JDK) and Java Runtimes (JRE). For a table of LEADTOOLS JAR files and their native dependencies refer to Files to be Included with your Java Application.

Library Description Ubuntu Package Name Fedora Package Name Centos/Redhat Package Name
Java JRE Java Runtime Environment openjdk-8-jre java-1.8.0-openjdk java-1.8.0-openjdk
Java JDK Java Development Toolkit openjdk-8-jdk java-1.8.0-openjdk-devel java-1.8.0-openjdk-devel

Note

The LEADTOOLS Java Document Service requires Java 11. The below packages meet this requirement.

Library Description Ubuntu Package Name Fedora Package Name Centos/Redhat Package Name
Java JRE Java Runtime Environment openjdk-11-jre java-11-openjdk java-11-openjdk
Java JDK Java Development Toolkit openjdk-11-jdk java-11-openjdk-devel java-11-openjdk-devel

Ubuntu

Issue the following command to install the Java Development Kit and Java Runtimes in Ubuntu:

sudo apt-get install openjdk-8-jre openjdk-8-jdk 

Fedora

Issue the following command to install the Java Development Kit and Java Runtimes in Fedora:

sudo dnf install java-1.8.0-openjdk java-1.8.0-openjdk-devel 

Centos/Redhat

Issue the following command to install the Java Development Kit and Java Runtimes in Centos/Redhat:

sudo yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel 

Building and Running LEADTOOLS Demos

For step-by-step tutorials containing instructions on building and running LEADTOOLS demos, refer to Build and Run LEADTOOLS Demos on Linux for Java and Build and Run LEADTOOLS Demos on Linux for C/C++.

Library Dependencies

These are the dependencies that are common within all of the Library Dependencies.

There are certain Shared Library Dependencies that have additional dependencies to the ones listed above. You can see a table of those below.

Shared Library Dependencies
liblfbmp.so, liblfcmp.so, liblfcmw.so, liblfeps.so, liblffax.so, liblfgif.so, liblfimg.so, liblfj2k.so, liblfjb2.so, liblfjbg.so, liblfjxr.so, liblflmb.so, liblfpcx.so, liblfpng.so, liblfpsd.so, liblfraw.so, No additional dependencies, see above list for all required dependencies
libleadtools.barcode.datamatrixread.so, libleadtools.barcode.datamatrixwrite.so, libleadtools.barcode.oned.so, libleadtools.barcode.pdfread.so, libleadtools.barcode.pdfwrite.so, libleadtools.barcode.qrread.so, libleadtools.barcode.qrwrite.so, libltdic.so, libltdictables.so, libltfil.so, libltimgutl.so libpthread, libdl
libleadtools.barcode.lead2dread.so, libleadtools.barcode.lead2dwrite.so libpthread, libdl, libltimgcor
liblfcal.so, liblfica.so, liblftif.so liblffax
liblfcgm.so, liblfcmx.so, liblfdxf.so, liblfe00.so, liblfgbr.so, liblfmif.so, liblfnap.so, liblfpct.so, liblfshp.so, liblfvpg.so libltdrw, libltvkrn
liblfdox.so, liblftxt.so libltdrw
liblfdwg.so libltdrw, libltvkrn, libltimgclr
liblfjls.so libltimgclr
liblfpcl.so libltdrw, libltvkrn, libltimgcor
liblfppx.so, liblfxlx.so libltdrw, libltimgclr
libltbar.so libpthread, libdl, librt, libltimgcor
libltclr.so libpthread, libdl, libltfil
libltdocwrt.so libpthread, libdl, libltfil, libltimgcor, libltimgclr, libltsvg, libltdrw
libltdrw.so libpthread, libdl, libfontconfig, libfreetype, libGL
libltimgclr.so, libltimgcor.so, libltimgefx.so libpthread, libdl, libltimgutl
libltjp2.so libpthread, libdl, libltfil, libltimgefx
libltkrn.so libpthread, libdl, libuuid, librt
libltocr.so libpthread, libdl, libltfil, libltimgcor, libltimgefx, libltimgclr, libltdocwrt, libltdrw
libltpdf.so libpthread, libdl, libltfil, liblffax, libltdrw
libltsane.so libpthread, libdl, libsane
libltsvg.so libpthread, libdl, libltfil, libltvkrn, libltdrw
libltvkrn.so libltfil, libltimgcor, libltimgefx, libltdrw
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.