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

Fix bluetooth agent imports and BluezQt usage #124

Closed
wants to merge 3 commits into from
Closed

Fix bluetooth agent imports and BluezQt usage #124

wants to merge 3 commits into from

Conversation

PureTryOut
Copy link
Contributor

This makes it build with Qt 5.14 and BluezQt 5.68.0 at least.

@neochapay
Copy link
Member

need to add
BuildRequires: pkgconfig(KF5BluezQt) >= 5.68.0

And it's broke all bluez4 devices like nexus5

@PureTryOut
Copy link
Contributor Author

Well I don't think this requires >= 5.68.0, but it definitely requires a higher version than whatever you had installed before. I'm not sure in which version the API changed to be honest. I'll just set it to 5.68.0 for now.

The Nexus 5 is a bad example as it runs fine on mainline (iirc just audio doesn't work), so there is no need for a libhybris port and an old kernel.

For officially SailfishOS supported devices just the Jolla 1 uses Bluez4, is that a device you still want to support? Supporting up-to-date BluezQt versions allows Glacier working on way more systems, including postmarketOS and all the devices it supports.

@PureTryOut
Copy link
Contributor Author

Actually, once CMake support is in, I can probably make it work on both Bluez 4 and Bluez 5 by adding a define. That is, if you really want to support Bluez 4. What is the last BluezQt version that supports it?

@neochapay
Copy link
Member

I think will be better make it working with old and new bluezqt like as https://github.com/nemomobile-ux/glacier-home/blob/devel/src/main.cpp#L55
And need to resolve conflicts ^_^

@PureTryOut
Copy link
Contributor Author

Yes that is what I meant. Once the CMake change is merged I'll look into it.

qmake won't be developed anymore from Qt6 and they're switching to CMake, so let's do the same.
@PureTryOut
Copy link
Contributor Author

PureTryOut commented Apr 30, 2020

Ok I just made this MR depend on #126, makes stuff easier.

This currently compiles fine with at least BluezQt 5.68.0 and Qt 5.14.2, but should also work with BluezQt 5.50.0 which @neochapay is still using.

@neochapay neochapay closed this May 27, 2020
@PureTryOut
Copy link
Contributor Author

Wait, why did you close this?

@neochapay
Copy link
Member

Devel branch is deleted and merged into master.

@PureTryOut PureTryOut deleted the fix-compilation-errors branch June 5, 2020 11:47
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.

None yet

2 participants