| 1 |
================================================================= |
| 2 |
libdmtx - Open Source Data Matrix Software |
| 3 |
================================================================= |
| 4 |
|
| 5 |
libdmtx README file (all platforms) |
| 6 |
|
| 7 |
This summary of the libdmtx package applies generally to all |
| 8 |
platforms. For instructions regarding your specific platform, |
| 9 |
also see the README.xxx file in this directory that matches your |
| 10 |
system (e.g., README.linux, README.osx, etc...). |
| 11 |
|
| 12 |
|
| 13 |
1. Introduction |
| 14 |
----------------------------------------------------------------- |
| 15 |
|
| 16 |
libdmtx is a software library that enables programs to read and |
| 17 |
write Data Matrix barcodes of the modern ECC200 variety. The |
| 18 |
library runs natively on several platforms and can be accessed by |
| 19 |
multiple languages using the libdmtx language wrappers. The |
| 20 |
utility programs dmtxread and dmtxwrite also provide a command |
| 21 |
line interface for libdmtx, and serve as a good reference for |
| 22 |
developers writing their own libdmtx-enabled programs. |
| 23 |
|
| 24 |
This package (libdmtx) contains only the core library, and is |
| 25 |
distributed under a Simplified BSD license with an alternate |
| 26 |
waiver option. See the LICENSE file in the main project directory |
| 27 |
for full terms of use and distribution. |
| 28 |
|
| 29 |
The non-library components related to libdmtx are available as |
| 30 |
separate downloads, and are distributed under a different license |
| 31 |
(typically LGPLv2). Please contact [email protected] if |
| 32 |
you require clarification on licensing. It's not complicated, but |
| 33 |
it's important to us that all license terms are respected (not |
| 34 |
just ours). |
| 35 |
|
| 36 |
|
| 37 |
2. Project Components |
| 38 |
----------------------------------------------------------------- |
| 39 |
|
| 40 |
The libdmtx project serves a diverse audience and contains many |
| 41 |
components -- some of which may not be useful to you. Components |
| 42 |
fall into one of four categories: |
| 43 |
|
| 44 |
Description Package Audience |
| 45 |
----------------- ------------- ---------------------- |
| 46 |
Core library libdmtx libdmtx programs |
| 47 |
Test programs libdmtx libdmtx developers |
| 48 |
Utility programs dmtx-utils Shell and command line |
| 49 |
Language Wrappers dmtx-wrappers Non-C/C++ developers |
| 50 |
|
| 51 |
|
| 52 |
3. Installation |
| 53 |
----------------------------------------------------------------- |
| 54 |
|
| 55 |
libdmtx uses GNU Autotools so installation should be familiar to |
| 56 |
free software veterans. If your platform cannot easily run the |
| 57 |
Autotools scripts, refer to the appropriate platform-specific |
| 58 |
README.xxx located in this directory for alternate instructions. |
| 59 |
|
| 60 |
In theory the following 3 steps would build and install libdmtx |
| 61 |
on your system: |
| 62 |
|
| 63 |
$ ./configure |
| 64 |
$ make |
| 65 |
$ sudo make install |
| 66 |
|
| 67 |
However, you may need to install additional software or make |
| 68 |
other changes for these steps to work properly. The details below |
| 69 |
will help to address errors and/or customize beyond the defaults. |
| 70 |
|
| 71 |
Problems with "configure" step |
| 72 |
---------------------------------------- |
| 73 |
If you obtained libdmtx from Git you may have received an error |
| 74 |
like "./configure: No such file or directory". Run this command |
| 75 |
before trying again: |
| 76 |
|
| 77 |
$ ./autogen.sh |
| 78 |
|
| 79 |
The autogen.sh command requires autoconf, automake, libtool, and |
| 80 |
pkgconfig to be installed on your system. |
| 81 |
|
| 82 |
The configure script also offers many options for customizing the |
| 83 |
build process, described in detail by running: |
| 84 |
|
| 85 |
$ ./configure --help |
| 86 |
|
| 87 |
Problems with "make" step |
| 88 |
---------------------------------------- |
| 89 |
Errors encountered during the "make" step are often a result of |
| 90 |
missing software dependencies. Install any missing software |
| 91 |
mentioned in the error message(s) and try again. |
| 92 |
|
| 93 |
Problems with "sudo make install" step |
| 94 |
---------------------------------------- |
| 95 |
If the 'sudo' command is not configured on your system, you can |
| 96 |
alternatively yell "Yeeehaww!" as you log in as root and run it |
| 97 |
like this: |
| 98 |
|
| 99 |
# make install |
| 100 |
|
| 101 |
And finally... |
| 102 |
---------------------------------------- |
| 103 |
If you want to verify that everything is working properly you can |
| 104 |
optionally build the test programs: |
| 105 |
|
| 106 |
$ make check |
| 107 |
|
| 108 |
This command will not perform any tests, but will build the |
| 109 |
programs that contain test logic: multi_test, rotate_test, |
| 110 |
simple_test, and unit_test. |
| 111 |
|
| 112 |
Note: multi_test and rotate_test contain extra dependencies due |
| 113 |
to their graphical nature, and are not terribly useful unless you |
| 114 |
need to test the library's internals. |
| 115 |
|
| 116 |
|
| 117 |
5. Contact |
| 118 |
----------------------------------------------------------------- |
| 119 |
|
| 120 |
Documentation wiki: libdmtx.wikidot.com |
| 121 |
GitHub page: github.com/dmtx/libdmtx |
| 122 |
OhLoh.net page: www.ohloh.net/projects/libdmtx |
| 123 |
Open mailing list: [email protected] |
| 124 |
|
| 125 |
|
| 126 |
6. This Document |
| 127 |
----------------------------------------------------------------- |
| 128 |
|
| 129 |
This document is derived from the wiki page located at: |
| 130 |
|
| 131 |
http://libdmtx.wikidot.com/general-instructions |
| 132 |
|
| 133 |
If you find an error or have additional helpful information, |
| 134 |
please edit the wiki directly with your updates. |