Skip to content

Conversation

@paulocoutinhox
Copy link
Contributor

No description provided.

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)
Copy link
Contributor

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 install

can u add this to your pr

Also question: why do you prefer to use make instead of ninja?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

Copy link
Contributor

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?

Copy link
Contributor Author

@paulocoutinhox paulocoutinhox Jul 14, 2025

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.

Copy link
Contributor

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

Copy link
Contributor Author

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.

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.

3 participants