-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qt 5.14 errors #31
Comments
To fix this you has to modify |
I'll try to fix this and make PR. |
Hey, sure, just listed it here due to a question in #20. I already added some, but will wait for your PR then not to duplicate effort. Thanks! |
@ZaWertun speaking of which, are you aware of a way to add entries depending on version? From what I see here, once we add e.g. new enum entries, older versions no longer build, erroring out with:
|
Didn't think about it. I think we need some enum mappings defined only in Qt >= 5.13 for example. |
Or maybe that check is wrong... |
I did a quick search and didn't find an example of it. It seems that if_* can only compare against strings and regexes. |
Maybe we need something like this conditions syntax in YML files for bindgen:
|
@ZaWertun Yeah that would be the ideal addition. The syntax I chose is |
Maybe just call it |
Hey how about we just rename |
Looks good. |
Initial output of trying to build for Qt 5.14:
=> Generating bindings for all platforms
(1/1) Generating linux-gnu-x86_64-qt5.14
Invalid alias name "QAbstractSpinBox::StepType" at Qt::Binding::QAbstractSpinBox::StepType
Invalid alias name "Qt::HighDpiScaleFactorRoundingPolicy" at Qt::Binding::Qt::HighDpiScaleFactorRoundingPolicy
Invalid alias name "QTextDocument::MarkdownFeatures" at Qt::Binding::QTextDocument::MarkdownFeatures
Invalid alias name "QGradient::Preset" at Qt::Binding::QGradient::Preset
Invalid alias name "QTextBlockFormat::MarkerType" at Qt::Binding::QTextBlockFormat::MarkerType
Result type QAbstractSpinBox::StepType is unreachable at Qt::Binding#stepType()
Argument 2 has unreachable type QAbstractSpinBox::StepType at Qt::Binding#setStepType(stepType)
Result type QAbstractSpinBox::StepType is unreachable at Qt::Binding#stepType()
Argument 2 has unreachable type QAbstractSpinBox::StepType at Qt::Binding#setStepType(stepType)
Argument 1 has unreachable type Qt::HighDpiScaleFactorRoundingPolicy at Qt::Binding.setHighDpiScaleFactorRoundingPolicy(policy)
Result type Qt::HighDpiScaleFactorRoundingPolicy is unreachable at Qt::Binding.highDpiScaleFactorRoundingPolicy()
Argument 2 has unreachable type QTextDocument::MarkdownFeatures at Qt::Binding#toMarkdown(features)
Argument 2 has unreachable type QTextDocument::MarkdownFeatures at Qt::Binding#toMarkdown(features)
Argument 3 has unreachable type QTextDocument::MarkdownFeatures at Qt::Binding#setMarkdown(markdown, features)
Argument 6 has unreachable type QGradient::Preset at Qt::Binding#fillRect(x, y, w, h, preset)
Argument 3 has unreachable type QGradient::Preset at Qt::Binding#fillRect(r, preset)
Argument 3 has unreachable type QGradient::Preset at Qt::Binding#fillRect(r, preset)
Argument 2 has unreachable type QTextBlockFormat::MarkerType at Qt::Binding#setMarker(marker)
Result type QTextBlockFormat::MarkerType is unreachable at Qt::Binding#marker()
Result type Binding::QAbstractSpinBox::StepType is unreachable at Qt::SpinBox#stepType()
Argument 1 has unreachable type Binding::QAbstractSpinBox::StepType at Qt::SpinBox#setStepType(stepType)
Result type Binding::QAbstractSpinBox::StepType is unreachable at Qt::DoubleSpinBox#stepType()
Argument 1 has unreachable type Binding::QAbstractSpinBox::StepType at Qt::DoubleSpinBox#setStepType(stepType)
Argument 1 has unreachable type Binding::Qt::HighDpiScaleFactorRoundingPolicy at Qt::GuiApplication.setHighDpiScaleFactorRoundingPolicy(policy)
Result type Binding::Qt::HighDpiScaleFactorRoundingPolicy is unreachable at Qt::GuiApplication.highDpiScaleFactorRoundingPolicy()
Argument 1 has unreachable type Binding::QTextDocument::MarkdownFeatures at Qt::TextEdit#toMarkdown(features)
Argument 1 has unreachable type Binding::QTextDocument::MarkdownFeatures at Qt::TextDocument#toMarkdown(features)
Argument 2 has unreachable type Binding::QTextDocument::MarkdownFeatures at Qt::TextDocument#setMarkdown(markdown, features)
Argument 5 has unreachable type Binding::QGradient::Preset at Qt::Painter#fillRect(x, y, w, h, preset)
Argument 2 has unreachable type Binding::QGradient::Preset at Qt::Painter#fillRect(r, preset)
Argument 2 has unreachable type Binding::QGradient::Preset at Qt::Painter#fillRect(r, preset)
Argument 1 has unreachable type Binding::QTextBlockFormat::MarkerType at Qt::TextBlockFormat#setMarker(marker)
Result type Binding::QTextBlockFormat::MarkerType is unreachable at Qt::TextBlockFormat#marker()
Found 33 errors. Aborting.
Failed to build linux-gnu-x86_64-qt5.14 using Qt5.14 on x86_64-unknown-linux-gnu - Abort.
The text was updated successfully, but these errors were encountered: