You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build failure agaisnt Qt6: error: ‘class QEasingCurve’ has no member named ‘operator!=’ ... #1987
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));
| ^~
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.
Activity
akhuettel commentedon Feb 15, 2025
klayout-0.29.11-r1:20250215-143253.log.gz
Here's the full build log.
sci-electronics/klayout: Switch to Qt6 (does not build yet)
klayoutmatthias commentedon Feb 15, 2025
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
Fixing issue #1987 (build failure against Qt6.8)
klayoutmatthias commentedon Feb 16, 2025
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
Kazzz-S commentedon Feb 17, 2025
In my environment:
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-1987branch.Thanks to both of you for reporting and fixing the issue.
Kazzz-S
akhuettel commentedon Feb 22, 2025
I can confirm that 0.29.11 with the three patches builds and runs fine.
sci-electronics/klayout: add qt6 patches, keyword 0.29.11-r1 for ~amd…