-
-
Notifications
You must be signed in to change notification settings - Fork 15
add linux ble implementation #3
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
Conversation
CMakeLists.txt
Outdated
| find_package(PkgConfig REQUIRED) | ||
| pkg_check_modules(BLUEZ REQUIRED bluez) | ||
| pkg_check_modules(DBUS REQUIRED dbus-1) | ||
| pkg_check_modules(SIGC REQUIRED sigc++-3.0) |
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.
sigc++3.0 not available on Ubuntu 22.04 LTS
Manual install:
sudo apt install build-essential meson ninja-build pkg-config
wget https://download.gnome.org/sources/libsigc++/3.6/libsigc++-3.6.0.tar.xz
tar -xf libsigc++-3.6.0.tar.xz
cd libsigc++-3.6.0
meson build
cd build
ninja
sudo ninja installcan u add this to your pr
Also question: why do you prefer to use make instead of ninja?
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.
Hi,
Im breaking my head with work manual with DBus and BlueZ, but a lot of things to care and fix.
Im trying use this library: https://github.com/weareaudiofile/bluez-dbus-cpp.
It has all abstractions and solve common problems.
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 you know how to solve this?
Kistler-Group/sdbus-cpp#503
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.
No sorry I am new to CPM.
Hey I'm looking into that lib right now, it looks old and unknown, I think it'll pay off in the long run if we study BlueZ documentation and take sdbus-c++ as a dependency instead. This is a bit a lot for me, but I'll spend some time looking into it.
is main branch working? have you tested it with two devices?
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.
I have fixed all and it is compiling and running. Instructions are updated in README. But i don't know why it is not listed and not connect on peers. Need someone with more bluetooth background to help us here. Running in my old raspberry 3 and on my notebook. The version in main is limited and don't use BLE resources, only work if you connect one with other.
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.
I haven't had a chance to look into this, I'll try to look into this tomorrow but the next 2 days are a bit busy for me, after that I should have more time to contribute
Will try to research Bluetooth daemon system call equivalent in dbus and how to interface with it
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, no problem. I convert most things to use dbus.
No description provided.