piwheels / packages

Issue tracker for piwheels package issues
https://github.com/piwheels/packages/issues
20 stars 5 forks source link

Missing package: gattlib #10

Closed bennuttall closed 4 years ago

bennuttall commented 5 years ago

Package name: gattlib Link to PyPI page: https://pypi.org/project/gattlib Link to piwheels page: https://www.piwheels.org/project/gattlib Version: all More information:

Some reported on the forums that they're failing to install gattliib. I had a look in the database and our output log shows:

src/gattservices.cpp:6:33: fatal error: bluetooth/bluetooth.h: No such file or directory

I assume there's some package which provides bluetooth.h and installing that will allow us to build it.

Anyone know the package?

bennuttall commented 5 years ago

libbluetooth-dev and libboost-python-dev are needed but it still falls over at:

  /usr/bin/ld: cannot find -lboost_thread
  collect2: error: ld returned 1 exit status
  error: command 'arm-linux-gnueabihf-g++' failed with exit status 1
lyndametref commented 5 years ago

I am getting a bit further than you by installing libboost-thread-dev but then get blocked by

/usr/bin/ld: cannot find -lboost_python-py34

I am using python 3 not sure if it can be the source of the problem

MichaelRechenberg commented 5 years ago

You can change the version of the boost library you're using in setup.py

That's what the following Wiki entry for the bluez library does for installing gattlib (look at the sed command) https://github.com/pybluez/pybluez/wiki/Installation-on-Raspberry-Pi-3