[Libreoffice-bugs] [Bug 139778] New: Switch to ZXing-C++ library for generating QR codes
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Jan 20 07:39:23 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=139778
Bug ID: 139778
Summary: Switch to ZXing-C++ library for generating QR codes
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: difficultyInteresting, easyHack, skillCpp
Severity: enhancement
Priority: medium
Component: LibreOffice
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: ilmari.lauhakangas at libreoffice.org
Blocks: 127232
This task consists of bundling another QR code library while switching the
library calls to use it instead of the old one.
Background: the QR code generating functionality was added in a 2019 GSoC
project:
https://wiki.documentfoundation.org/Development/GSoC/Successfully_Implemented_Ideas#Generating_QR_codes
At the time, "QR Code generator" seemed like the only usable C++ library.
Later, the creator of the library said it wasn't actually ready for production
use.
Recently, a new C++ port of the venerable "Zebra Crossing" library appeared:
https://github.com/nu-book/zxing-cpp
It is seeing rather good adoption in Linux distros:
https://repology.org/project/zxing-cpp-nu-book/versions
It has the advantage that it can also generate classic barcodes. Exposing the
barcode functionality in the UI can be a future easy hack.
The source archive has already been uploaded to
https://dev-www.libreoffice.org/src/
For code pointers, here is the commit that bundled the current library:
https://git.libreoffice.org/core/commit/b4141cade04dac0c9d47293313a4521282975f12
Other relevant code paths can be discovered by looking at Shubham's commit
history.
Samuel has agreed to do code reviews for this task.
Small note: ZXing-C++ says of the compiler baseline: "minimum VS 2019 16.8 /
gcc 7 / clang 5". However, Visual Studio 16.8 is only required when using the
Python wrapper, so it is not a blocker for us.
Referenced Bugs:
https://bugs.documentfoundation.org/show_bug.cgi?id=127232
[Bug 127232] [META] QR-code generator's problems and enhancements
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210120/c661e553/attachment.htm>
More information about the Libreoffice-bugs
mailing list