scytheStudio / SCodes

This project is Qt & Qml wrapper for ZXing-C++ Library that is used for decoding 1D and 2D barcodes.
https://scythe-studio.com/
Apache License 2.0
107 stars 36 forks source link

Compilation fails with Qt 5.12.9 #14

Closed 1VanillaGorilla closed 8 months ago

1VanillaGorilla commented 2 years ago

There seems to be a missing compiler directive in SBarcodesFormat.h.

#ifndef SBARCODEFORMAT_H
#define SBARCODEFORMAT_H

#include <qqml.h>
#include "BarcodeFormat.h"

namespace SCodes {
    Q_NAMESPACE
    QML_ELEMENT

The directive QML_ELEMENT has been introduced in Qt 5.15. So this would not work using any version lower than that. In other files this directive has been embraced by a

#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
        QML_ELEMENT
#endif

Best regards

BartoszSkorka commented 8 months ago

I'm closing this issue as it no longer applies.