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
fix build with qt6 #16
Conversation
59a05f1
to
b6e7f39
Compare
@jmlich I see a reference to the -qt5 suffix still here: https://github.com/jmlich/sensorfw/blob/master/core/loader.cpp#L58 , is that a mistake? |
Thanks for spotting of the issue and patch. I must admit that I haven't done much tests. |
Could you squash the commits into one and use commit message that matches the existing commits so something like "[sensorfw] Fix build with Qt6". Also make sure your fork has all tags from this repo so it's easier for me to test the builds without forking your branch. |
cd6ba9d
to
fc84fcc
Compare
I have also changed mkspec path same as in sailfishos/libiodata#5 |
240f158
to
94ad475
Compare
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.
See comments.
I wonder if we can't just define Qt::SkipEmptyParts
before Qt 5.14.
I came across something like this: goldendict/goldendict@c4dcd4d I'm sure there are other solutions too |
That looks like a good solution. I wonder if defining the newer
Qt::SkipEmptyParts in older Qt would work too.
|
All depends on how plain vanilla your Qt is or you used a patched version. I guess I know the answer. An additional patch wouldn't hurt in that case. [edit] |
As the split args are always the same, using internal to sensorfwd helper function comes to mind. That would leave the API level differentation a) directly observable without need to know/find/ponder about some nonstandard custom values and b) still contained in just one place. Something like ...
|
Co-authored-by: Christophe Chapuis <chris.chapuis@gmail.com>
I personally prefer using the way is it is currently in pull request |
IMO it also is just fine as it is. It makes the sw buildable with qt6 which is a clear improvement. Any further cleanup/refactoring/whatnot can be done separately by somebody else too. @Thaodan do you still have some objections? |
FWIW I'm impartial to either solution. There are pro's and cons for both to be honest. Most important is that the code works in both Qt5 and Qt6 :) |
Yes, I agree with that and changes in general look good now. Thank you @jmlich ! |
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.
Approving as well.
No issues, fine by me just no time to reply. |
No description provided.