Bug 424853 - Build fails with zxing-cpp 1.1.0
Summary: Build fails with zxing-cpp 1.1.0
Status: RESOLVED FIXED
Alias: None
Product: KDE Itinerary
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Volker Krause
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-31 10:19 UTC by Antonio Rojas
Modified: 2020-08-01 07:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Rojas 2020-07-31 10:19:57 UTC
Note: this report is about the kitinerary library, which doesn't seem to have a product in bko.

zxing-cpp 1.1.0 has several throw statements in its header files. This makes kitinerary fail to build, since they conflict with the -fno-exceptions CXX flag added by ECM.

In file included from /build/kitinerary/src/kitinerary-20.04.3/src/qimagepurebinarizer.h:26,
                 from /build/kitinerary/src/kitinerary-20.04.3/src/barcodedecoder.cpp:22:
/usr/include/ZXing/BinaryBitmap.h: In member function ‘virtual std::shared_ptr<ZXing::BinaryBitmap> ZXing::BinaryBitmap::cropped(int, int, int, int) const’:
/usr/include/ZXing/BinaryBitmap.h:115:71: error: exception handling disabled, use ‘-fexceptions’ to enable
  115 |   throw std::runtime_error("This binarizer does not support cropping.");
      |                                                                       ^
Comment 1 Volker Krause 2020-08-01 07:26:17 UTC
Git commit 8bf24e2372b142f1a2189ad951fa396c5a4e0e74 by Volker Krause.
Committed on 01/08/2020 at 07:25.
Pushed by vkrause into branch 'release/20.08'.

Fix build with zxing 1.1.0

M  +1    -0    src/CMakeLists.txt

https://invent.kde.org/pim/kitinerary/commit/8bf24e2372b142f1a2189ad951fa396c5a4e0e74