-
Notifications
You must be signed in to change notification settings - Fork 222
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
Bug Fix: Fix QRegularExpression-related compile error #2273
Bug Fix: Fix QRegularExpression-related compile error #2273
Conversation
@corrados Can you please try the code from this PR in your Raspbian environment? Thanks :) |
48bd8bf
to
8766958
Compare
I've checked for other places which use QRegularExpression and have added the include there as well. |
It's interesting, because when doing the original change to So I'm not yet convinced that this PR is necessary, and would like to reproduce and understand Volker's compilation error before deciding whether to approve it for inclusion. My suspicion is that Volker's issue has a different cause. |
I've looked some further into this. I'm pretty convinced that g++ is able to explain where it comes from, i.e. why it works most of the time despite the missing include:
As expected, the problem is reproducible with |
I have just tried a clone of current So it looks like specifying |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, this change does fix the build on my Pi with CONFIG+=headless
, so happy to approve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need all three or just the util.h one?
For fixing the compile error with Do you suggest we should drop the other changes and if so, why? I've got very little C++ experience, however, when I looked around I stumbled over best-practice guides such as the C++ style guide by Google which suggests not to rely on transitive inclusions. |
I think all three. It appears that best practice, for the way Jamulus code is structured, would be that for any |
If the regexp usage is in Is the regexp usage there and, if so, should it be there? If we're okay with that, then I'm okay with the change. (Just the PR doesn't have much context supplied.) |
Yes, it is:
Well, the functions are there, are being used and I don't see an obvious alternative, so yes, they should be there. |
8766958
to
d6f97af
Compare
b31e650 updated regexps to QRegularExpression for Qt6 compatibility, but did not include QRegularExpression.h. While this has apparently not been a problem in most environments, it breaks the build when using `CONFIG+=headless` (`CONFIG+="headless nosound"` is unaffected). This commit adds the includes. Fixes jamulussoftware#2272
d6f97af
to
ed80fc1
Compare
I've updated the commit text to reflect the final analysis (CONFIG+=headless is the problem, not Raspberry per-se). |
Short description of changes
b31e650 updated regexps to QRegularExpression for Qt6 compatibility, but did not include QRegularExpression.h.
While this has apparently not been a problem in most environments, it breaks the build when using
CONFIG+=headless
(CONFIG+="headless nosound"
is unaffected).This PR adds the includes.
Context: Fixes an issue?
Fixes #2272
Does this change need documentation? What needs to be documented and how?
No
Status of this Pull Request
Ready
What is missing until this pull request can be merged?
Reviews.
Checklist