zxing-cpp 1.4.0 support
Moin moin
Prison fails to compile against the newly releases zxing-cpp 1.4.0 [1]
FAILED: src/scanner/CMakeFiles/KF5PrisonScanner.dir/videoscannerworker.cpp.o
/usr/local/libexec/ccache/c++ -DKF5PrisonScanner_EXPORTS -DKF_DEPRECATED_WARNINGS_SINCE=0x060000 -DPRISONSCANNER_DEPRECATED_WARNINGS_SINCE=0x0 -DPRISONSCANNER_DISABLE_DEPRECATED_BEFORE_AND_AT=0x0 -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x050f02 -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -D_LARGEFILE64_SOURCE -I/wrkdirs/usr/ports/graphics/kf5-prison/work/.build/src/scanner -I/wrkdirs/usr/ports/graphics/kf5-prison/work/prison-5.95.0/src/scanner -I/wrkdirs/usr/ports/graphics/kf5-prison/work/.build/src/scanner/KF5PrisonScanner_autogen/include -isystem /usr/local/include/qt5 -isystem /usr/local/include/qt5/QtMultimedia -isystem /usr/local/include/qt5/QtNetwork -isystem /usr/local/include/qt5/QtCore -isystem /usr/local/lib/qt5/mkspecs/freebsd-clang -isystem /usr/local/include/qt5/QtGui -isystem /usr/local/include -O2 -pipe -march=znver1 -fstack-protector-strong -fno-strict-aliasing -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -pedantic -Wzero-as-null-pointer-constant -fdiagnostics-color=always -O2 -pipe -march=znver1 -fstack-protector-strong -fno-strict-aliasing -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=c++17 -MD -MT src/scanner/CMakeFiles/KF5PrisonScanner.dir/videoscannerworker.cpp.o -MF src/scanner/CMakeFiles/KF5PrisonScanner.dir/videoscannerworker.cpp.o.d -o src/scanner/CMakeFiles/KF5PrisonScanner.dir/videoscannerworker.cpp.o -c /wrkdirs/usr/ports/graphics/kf5-prison/work/prison-5.95.0/src/scanner/videoscannerworker.cpp
/wrkdirs/usr/ports/graphics/kf5-prison/work/prison-5.95.0/src/scanner/videoscannerworker.cpp:28:19: error: no matching constructor for initialization of 'ZXing::Result'
ZXing::Result zxRes(ZXing::DecodeStatus::FormatError);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ZXing/Result.h:30:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'ZXing::DecodeStatus' to 'const ZXing::Result' for 1st argument
class Result
^
/usr/local/include/ZXing/Result.h:30:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'ZXing::DecodeStatus' to 'ZXing::Result' for 1st argument
/usr/local/include/ZXing/Result.h:42:2: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
Result() = default;
^
/usr/local/include/ZXing/Result.h:48:2: note: candidate constructor not viable: requires 3 arguments, but 1 was provided
Result(DecoderResult&& decodeResult, Position&& position, BarcodeFormat format);
^
/usr/local/include/ZXing/Result.h:45:2: note: candidate constructor not viable: requires at least 6 arguments, but 1 was provided
Result(const std::string& text, int y, int xStart, int xStop, BarcodeFormat format, SymbologyIdentifier si, Error error = {},
^
1 error generated.
[ 74% 29/39] cd /wrkdirs/usr/ports/graphics/kf5-prison/work/.build/src/quick && /usr/local/bin/cmake -E cmake_autogen /wrkdirs/usr/ports/graphics/kf5-prison/work/.build/src/quick/CMakeFiles/prisonquickplugin_autogen.dir/AutogenInfo.json Release && /usr/local/bin/cmake -E touch /wrkdirs/usr/ports/graphics/kf5-prison/work/.build/src/quick/prisonquickplugin_autogen/timestamp && /usr/local/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /wrkdirs/usr/ports/graphics/kf5-prison/work/prison-5.95.0 /wrkdirs/usr/ports/graphics/kf5-prison/work/prison-5.95.0/src/quick /wrkdirs/usr/ports/graphics/kf5-prison/work/.build /wrkdirs/usr/ports/graphics/kf5-prison/work/.build/src/quick /wrkdirs/usr/ports/graphics/kf5-prison/work/.build/src/quick/prisonquickplugin_autogen/deps /wrkdirs/usr/ports/graphics/kf5-prison/work/.build/CMakeFiles/d/fc28f1b5670ec4c4e6b87b53628769d241170e85a083eac4edc3579f5400a9c1.d
ninja: build stopped: subcommand failed.
[1] https://github.com/nu-book/zxing-cpp/releases/tag/v1.4.0