Skip to content

build failure agaisnt Qt6: error: ‘class QEasingCurve’ has no member named ‘operator!=’ ... #1987

Closed

Description

@akhuettel

I'm trying to move our Gentoo package from Qt5 to Qt6.

  • klayout 0.29.11
  • Qt 6.8.2
  • gcc 13.3.1

The build fails in gsiDeclQEasingCurve.cc with the following error (and some more):

../../../src/gsiqt/qt6/QtCore/gsiDeclQEasingCurve.cc:162:58: error: ‘class QEasingCurve’ has no member named ‘operator!=’; did you mean ‘operator=’?
  162 |   ret.write<bool > ((bool)((QEasingCurve *)cls)->operator!= (arg1));
      |                                                          ^~

In addition to !=, also == seems to be missing.

Happy to test patches and/or build from master.

Activity

  1. akhuettel commented on Feb 15, 2025

    @akhuettel
    ContributorAuthor
  2. klayoutmatthias commented on Feb 15, 2025

    @klayoutmatthias
    Collaborator

    Looks like the Qt people have removed these operators in Qt 6.8. That's a pity, as usually their API stays backward compatible.

    The code is not written, but generated (from Qt 6.4 as of now). So there is no patch. Instead the solution will be more complex.

    As of now, I'd suggest to stay with Qt5.

    Matthias

  3. added a commit that references this issue on Feb 16, 2025
  4. klayoutmatthias commented on Feb 16, 2025

    @klayoutmatthias
    Collaborator

    I have published a PR that should fix the problem. There were a number of other places where the API has been changed for Qt 6.8.

    I tested with ArchLinux that has Qt 6.8.2.

    Matthias

  5. linked a pull request that will close this issueBugfix/issue 1987 #1988on Feb 16, 2025
  6. added this to the 0.29.12 milestone on Feb 16, 2025
  7. Kazzz-S commented on Feb 17, 2025

    @Kazzz-S
    Contributor

    In my environment:

    • OS: macOS Sonoma
    • KLayout: 0.29.11
    • Qt6: Qt 6.8.2 from Homebrew
    • Compiler: Apple clang version 15.0.0 (clang-1500.3.9.4)

    I was able to reproduce the "operator!=" named issue.
    I had overlooked this issue until today because previous binary builds with Qt 6.7.2 worked after the Qt6 upgrade.
    I also verified that the build issue was fixed in the issue-1987 branch.

    Thanks to both of you for reporting and fixing the issue.

    Kazzz-S

  8. akhuettel commented on Feb 22, 2025

    @akhuettel
    ContributorAuthor

    I can confirm that 0.29.11 with the three patches builds and runs fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions