Debian Codegraph @

README

raw
1 libqrencode - a fast and compact QR Code encoding library
2
3
4 GENERAL INFORMATION
5 ===================
6 Libqrencode is a fast and compact library for encoding data in a QR Code,
7 a 2D symbology that can be scanned by handy terminals such as a smartphone.
8 The capacity of QR Code is up to 7000 digits or 4000 characters and has high
9 robustness.
10
11 Libqrencode accepts a string or a list of data chunks then encodes in a QR Code
12 symbol as a bitmap array. While other QR Code applications generate an image
13 file, using libqrencode allows applications to render QR Code symbols from raw
14 bitmap data directly. This library also contains a command-line utility outputs
15 QR Code images in various formats.
16
17
18 SPECIFICATION
19 =============
20 Libqrencode supports QR Code model 2, described in JIS (Japanese Industrial
21 Standards) X0510:2004 or ISO/IEC 18004. Most of features in the specification
22 are implemented such as:
23
24 - Numeric, alphabet, Japanese kanji (Shift-JIS) or any 8 bit code can be
25 embedded
26 - Optimized encoding of a string
27 - Structured-append of symbols
28 - Micro QR Code (experimental)
29
30 Currently the following features are not supported:
31
32 - ECI and FNC1 mode
33 - QR Code model 1 (deprecated)
34
35
36 INSTALL
37 =======
38
39 Requirements
40 ------------
41 While the command-line utility and some test programs use libpng or SDL 2.0,
42 the libqrencode library itself has no dependencies. You can skip compiling
43 tests and/or tools if you want not to install programs using SDL or PNG.
44
45 Compile & install
46 -----------------
47 If there is no "configure" script in the source code directory, run
48 "autogen.sh" at first to generate it - this is mandatory if you downloaded the
49 source from GitHub. Some additional software is needed to complete this
50 process. For example, in Ubuntu, the following packages are needed:
51
52 - autoconf
53 - automake
54 - autotools-dev
55 - libtool
56 - pkg-config
57 - libpng12-dev
58
59 You can skip this process if you have "configure" script already (typically
60 when you downloaded the source tarball from fukuchi.org.)
61
62 Now you are ready to compile the library and tool. Type the following commands:
63
64 ./configure
65 make
66 sudo make install
67 sudo ldconfig
68
69 This compiles and installs the library and header file to the appropriate
70 directories: by default, /usr/local/lib and /usr/local/include. You can change
71 the destination directory by passing some options to the configure script.
72 Run "./configure --help" to see the list of options.
73
74 It also installs a command line tool "qrencode" to /usr/local/bin. If you want
75 not to build it, give "--without-tools" option to the configure script.
76
77 If the configure script does not work well, try to use CMake.
78
79 cmake .
80 make
81
82 When you want to build the test programs, give "--with-tests" option to
83 configure, or "-DWITH_TESTS=YES" to cmake.
84
85 ### Building libqrencode with vcpkg
86
87 You can download and install libqrencode using the
88 [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:
89
90 git clone https://github.com/Microsoft/vcpkg.git
91 cd vcpkg
92 ./bootstrap-vcpkg.sh
93 ./vcpkg integrate install
94 ./vcpkg install libqrencode
95
96 The libqrencode port in vcpkg is kept up to date by Microsoft team members and
97 community contributors. If the version is out of date, please
98 [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the
99 vcpkg repository.
100
101
102 USAGE
103 =====
104 Basic usages of this library are written in the header file (qrencode.h).
105 You can generate a manual of the library by using Doxygen, or see
106
107 https://fukuchi.org/works/qrencode/manual/index.html
108
109
110 WARNINGS
111 ========
112 The library is distributed WITHOUT ANY WARRANTY.
113
114 Micro QR Code support is EXPERIMENTAL.
115
116 Be careful to use the command line tool (qrencode) if it is used by a web
117 application (e.g. CGI script). For example, giving "-s" option with a large
118 number to qrencode may cause DoS. The parameters should be checked by the
119 application.
120
121
122 LICENSING INFORMATION
123 =====================
124 Copyright (C) 2006-2018 Kentaro Fukuchi
125
126 This library is free software; you can redistribute it and/or modify it under
127 the terms of the GNU Lesser General Public License as published by the Free
128 Software Foundation; either version 2.1 of the License, or any later version.
129
130 This library is distributed in the hope that it will be useful, but WITHOUT ANY
131 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
132 PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
133
134 You should have received a copy of the GNU Lesser General Public License along
135 with this library; if not, write to the Free Software Foundation, Inc., 51
136 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
137
138
139 CONTACT
140 =======
141 Visit the homepage at:
142
143 https://fukuchi.org/works/qrencode/
144
145 for new releases. The git repository is available at:
146
147 https://github.com/fukuchi/libqrencode
148
149 Please mail any bug reports, suggestions, comments, and questions to:
150
151 Kentaro Fukuchi <[email protected]>
152
153 or submit issues to:
154
155 https://github.com/fukuchi/libqrencode/issues
156
157
158 ACKNOWLEDGMENTS
159 ===============
160 QR Code is registered trademarks of DENSO WAVE INCORPORATED in JAPAN and other
161 countries.
162
163 Reed-Solomon encoder included in this library is originally taken from FEC
164 library developed by Phil Karn (KA9Q) and distributed under the terms of the
165 GNU LGPL, then rewritten by Kentaro Fukuchi.
166 Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q
167
168 * NANKI Haruo - improved lower-case characters encoding
169 * Katsumi Saito - SPEC file
170 * Philippe Delcroix - improved mask evaluation
171 * Yusuke Mihara - structured-append support
172 * David Dahl - DPI and SVG support patch
173 * Adam Shepherd - bug fix patch of the mask evaluation
174 * Josef Eisl (@zapster) - EPS support patch
175 * Colin (@moshen) - ANSI support patch
176 * Ralf Ertzinger - ASCII support patch
177 * Yutaka Niibe (@gniibe)- various bug fix patches
178 * Dan Storm (@Repox) - SVG support patch
179 * Lennart Poettering (@mezcalero)
180 - improved text art patch
181 * Yann Droneaud - improved input validation patch
182 * Viona - bug fix patch for string splitting
183 * Daniel Dörrhöfer (@d4ndo)
184 - RLE option, some bug fixes, Travis configuration
185 * Greg Hart - PNG32 support patch
186 * @siggi-heltau - bug fix patch
187 * Tobias Klauser (@tklauser)
188 - bug fix patch, XPM support patch
189 * Robert Petersen (@ripetersen)
190 - added ability to read input data from a file
191 * @Oblomov - improved SVG support patch
192 * Michał Górny (@mgorny)
193 - reverse mappings of UTF8 and ANSIUTF8, build script
194 fixes
195 * @EckoEdc - MinGW support patch
196 * Sebastian Buchwald (@UniQP)
197 - Various code cleanups
198 * André Klitzing (@misery)
199 - CMake support
200 * Alexey Nikolaev (@aleksey-nikolaev)
201 - improved CMake support
202 * Vilppu Vuorinen (@vilppuvuorinen)
203 - improved CMake support
204 * @vanillahsu - bug fix patch
205 * @Ation - bug fix patch
206 * Jonathan Bennett - Added "--inline" option to qrencode
207 * András Veres-Szentkirályi
208 - ANSI256UTF8 support
209 * @sdf5 - improved CMake support
210 * Lonnie Abelbeck (@abelbeck)
211 - bug fix patch
212 * @4061N - performance improvement patch
213 * Rosen Penev (@neheb) - CMake bug fix patch
214 * Mika Lindqvist (@mtl1979)
215 - replacement for gettimeofday() for Windows.
216 * Shigeyuki Hirai, Paul Janssens, wangsai, Gavan Fantom, Matthew Baker,
217 Rob Ryan, Fred Steinhaeuser, Terry Burton, @chisj, @vlad417, Petr,
218 Hassan Hajji, Emmanuel Blot, ßlúèÇhîp, Heiko Becker, Gavin Andresen,
219 David Binderman, @ralgozino, Sean McMurray, Vlad Bespalov (@win32asm),
220 Antenore Gatta, Yoshimichi Inoue, Sunil Maganally, Norman Gray,
221 Danomi Manchego, @minus7, Ian Sweet, @qianchenglenger, Ronald Michaels,
222 Yuji Ueno, Jakub Wilk, @KangLin, @c-273, @thebunnyrules, @NancyLi1013,
223 Frédéric Wang, Dan Jacobson, Jan Tojnar, @xiaoyur347, @charmander
224 - bug report / suggestion / typo fixes