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

feat: Enable Qt6 build #1111

Merged
merged 1 commit into from
Feb 15, 2025
Merged

feat: Enable Qt6 build #1111

merged 1 commit into from
Feb 15, 2025

Conversation

re2zero
Copy link
Contributor

@re2zero re2zero commented Jan 24, 2025

Enable build with Qt6 and compat Qt5, the user can select which Qt version by configuration parameter.

Log: Enable Qt6 build.

@re2zero
Copy link
Contributor Author

re2zero commented Jan 24, 2025

适配Qt6和Qt5编译,可在编译时指定希望的版本“QT_DESIRED_VERSION”为5或6,也可指定“QT_DIR”动态识别。比如:
cmake -B build -DCMAKE_BUILD_TYPE=Debug -DQT_DIR=/usr/lib/x86_64-linux-gnu/cmake/Qt6
cmake -B build -DCMAKE_BUILD_TYPE=Debug -DQT_DESIRED_VERSION=6

# aqt install Qt
cmake -B build -DCMAKE_BUILD_TYPE=Debug -DQT_DIR=/home/zero/Qt/6.8.0/gcc_64/lib/cmake/Qt6

运行查看连接的Qt5和Qt6库:
图片

整合了qt6分支适配Qt6的修改。但是发现已知问题(Qt6分支也存在): 投屏的窗口图像没有显示出来,鼠标事件正常。
猜测是Qt6的OpenGL用法不一样。

@barry-ran
Copy link
Owner

太棒了,我会尽快review

@barry-ran
Copy link
Owner

QtScrcpyCore应该更新为这个版本

Enable build with Qt6 and compat Qt5, the user can select which Qt version by configuration parameter.

Log: Enable Qt6 build.
@barry-ran barry-ran merged commit 4617d31 into barry-ran:dev Feb 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants