update: find qt by qt_sdkver option#6457
Merged
waruqi merged 1 commit intoxmake-io:devfrom May 16, 2025
Merged
Conversation
Contributor
Author
|
刚刚编译失败了,我还以为还有链接问题需要修改,就把 pr 关闭了 然后我发现执行 |
The compilation failed just now, and I thought there was still a link problem that needed to be modified, so I closed pr Then I found that after executing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
前言
存在的 qmake 文件名如下
root@aosc-binlep [ bin ] # qmak qmake qmake6-qt6 qmake-qt5 qmake-qt6原有行为
通过默认的 sdkdir 直接找 qmake 文件,找到后用 qmake 来获取对应 QT 的版本
加了 qt_sdkver 是不能获取同目录路径下其他 QT 主项目的
获取的信息如下所示
修改后行为
不指定 qt_sdkver
获取 qmake 对应的版本
指定 qt_sdkver
获取 qt_sdkver 指定的主版本,这里写的 6.8.3,获取的是系统的 6.8.2
其他
如果啥都没搜到的话,(通过 qmake)优先获取 qt6 的版本,再获取 qt5 的版本,最后用默认的版本