Fix lrelease path and add a missing include header#219
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: hillwoodroc The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @hillwoodroc. Thanks for your PR. 😃 |
|
Hi @hillwoodroc. Thanks for your PR. I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
a94cb67 to
3cf0c58
Compare
Improve compatibility by detecting available lrelease executable dynamically instead of hardcoding the Qt6 path. The script now checks for lrelease6, /usr/lib/qt6/bin/lrelease, and /usr/lib64/qt6/bin/lrelease. If none are found, it prints an error message and exits with code 1. This allows the script to work across distributions where Qt6 may be installed in different locations. Log: Fixes potential failure in translation generation on systems without a fixed lrelease path.
This patch adds `#include <QJsonDocument>` to ensure the class is fully defined, allowing proper use of `QJsonDocument::fromJson(...)` in asrJsonParser(). This resolves a build failure with some compilers or environments where the implicit inclusion of QJsonDocument does not occur. Log: Fix build error caused by missing QJsonDocument definition: "error: variable ‘QJsonDocument doc’ has initializer but incomplete type"
3cf0c58 to
cbe7e4c
Compare
|
TAG Bot New tag: 6.5.22 |
|
TAG Bot New tag: 6.5.23 |
|
TAG Bot New tag: 6.5.24 |
|
TAG Bot New tag: 6.5.25 |
|
TAG Bot New tag: 6.5.26 |
|
TAG Bot New tag: 6.5.27 |
|
TAG Bot New tag: 6.5.28 |
|
TAG Bot New tag: 6.5.29 |
|
TAG Bot New tag: 6.5.30 |
|
TAG Bot New tag: 6.5.31 |
|
TAG Bot New tag: 6.5.32 |
|
TAG Bot New tag: 6.5.33 |
|
TAG Bot New tag: 6.5.34 |
|
TAG Bot New tag: 6.5.35 |
|
TAG Bot New tag: 6.5.36 |
|
TAG Bot New tag: 6.5.37 |
|
TAG Bot New tag: 6.5.38 |
|
TAG Bot New tag: 6.5.39 |
|
TAG Bot New tag: 6.5.40 |
|
TAG Bot New tag: 6.5.41 |
| elif [ -f "/usr/lib/qt6/bin/lrelease" ]; then | ||
| LRELEASE=/usr/lib/qt6/bin/lrelease | ||
| elif [ -f "/usr/lib64/qt6/bin/lrelease" ]; then | ||
| RELEASE=/usr/lib64/qt6/bin/lrelease |
There was a problem hiding this comment.
| RELEASE=/usr/lib64/qt6/bin/lrelease | |
| LRELEASE=/usr/lib64/qt6/bin/lrelease |
|
TAG Bot New tag: 6.5.42 |
|
TAG Bot New tag: 6.5.43 |
|
TAG Bot New tag: 6.5.44 |
|
TAG Bot New tag: 6.5.45 |
|
TAG Bot New tag: 6.5.46 |
|
TAG Bot New tag: 6.5.47 |
|
TAG Bot New tag: 6.5.48 |
|
TAG Bot New tag: 6.5.49 |
|
TAG Bot New tag: 6.5.50 |
|
TAG Bot New tag: 6.5.51 |
|
TAG Bot New tag: 6.5.53 |
|
TAG Bot New tag: 6.5.54 |
|
TAG Bot New tag: 6.5.55 |
|
TAG Bot New tag: 6.5.56 |
|
TAG Bot New tag: 6.5.57 |
No description provided.