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

Can't compile libbluetooth #2

Closed
bobgates opened this issue Jul 6, 2021 · 2 comments
Closed

Can't compile libbluetooth #2

bobgates opened this issue Jul 6, 2021 · 2 comments

Comments

@bobgates
Copy link

bobgates commented Jul 6, 2021

Lots of errors like:

pub const RFCOMMGETDEVINFO: u64 = request_code_read!('R', 211, std::mem::size_of::<c_int>());
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `u32` 

when building on Raspberry Pi running:
Linux raspberrypi 5.10.17-v7+ #1421 SMP Thu May 27 13:59:01 BST 2021 armv7l GNU/Linux

Using bluez 5.50. Let me try to install 5.59.

The errors occur when trying to build libbluetooth. I guess that's why there is a an existing issue to remove the dependency?

@surban
Copy link
Collaborator

surban commented Jul 6, 2021

Looks like a 32-bit issue. I've been successfully compiling libbluetooth on RPi but on 64 bit.

For now you can disable the l2cap feature if you don't need it. But we plan to remove this dependency anyway so this will get fixed eventually.

@bobgates
Copy link
Author

bobgates commented Jul 6, 2021

Makes sense - stuff being 32 bit by default on a 32-bit OS.

Thanks for the tip, I removed l2cap and got a lot further. I then hit the issue with depending on the Nordic bluetooth numbers database. I copied those files into my tree, and it's building now.

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

No branches or pull requests

2 participants