Skip to content
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

Compiler Error C2678 when trying to build from master with Qt 6.9.0 beta 1 #22019

Open
xavier2k6 opened this issue Dec 17, 2024 · 5 comments
Open

Comments

@xavier2k6
Copy link
Member

qBittorrent & operating system versions

qBittorrent: 5.1.0 beta 1 x64
Operating system: GHA CI - Windows 2022
Qt: 6.9.0 beta 1
libtorrent-rasterbar: 2.0.11 (RC_2_0)

What is the problem?

Compiling with Qt 6.9.0 beta 1 & receiveerror c2678: binary '<<': no operator found which takes a left-hand operand of type 'qdebug' (or there is no acceptable conversion)

Steps to reproduce

Download/try to compile with Qt 6.9.0 beta 1 via GHA CI

Additional context

https://github.com/xavier2k6/qBittorrent/actions/runs/12372513949

Log(s) & preferences file(s)

logs_32161385272.zip

@xavier2k6
Copy link
Member Author

@qbittorrent/bug-handlers Just an FYI

@Chocobo1
Copy link
Member

@xavier2k6
Put this workaround to the end of src/base/tag.h and it should compile:

#include <QDebug>

inline QDebug operator<<(QDebug debug, const Tag &tag)
{
    debug << tag.toString();
    return debug;
}

However I consider that error to be a Qt bug. If it is not fixed in Qt 6.9 final release, I'll submit a PR.

@glassez
Copy link
Member

glassez commented Dec 20, 2024

However I consider that error to be a Qt bug. If it is not fixed in Qt 6.9 final release, I'll submit a PR.

Would you mind to submit bugreport to Qt?

@xavier2k6
Copy link
Member Author

workaround helped! (All pass)

https://github.com/xavier2k6/qBittorrent/actions/runs/12434636248

@Chocobo1
Copy link
Member

Would you mind to submit bugreport to Qt?

I'm not fully certain about it, it wasn't a through investigation.

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

No branches or pull requests

3 participants