Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ To install the required dependencies on Ubuntu/Debian/Raspbian:

```shell
apt-get install python3-pip
apt-get install libbluetooth-dev
pip3 install pybluez
apt-get install libboost-python-dev
apt-get install libboost-thread-dev
Expand All @@ -69,10 +70,12 @@ pip3 install gattlib
If for some reason the gattlib installation fails:

```shell
apt-get install pkg-config python3-dev
pip3 download gattlib
tar xvzf ./gattlib-0.20150805.tar.gz
cd gattlib-0.20150805/
sed -ie 's/boost_python-py34/boost_python-py35/' setup.py
sed -ie 's/boost_python-py34/boost_python-py36/' setup.py # "py36" might be "py37" (for example). Check "python3 --version"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can probably be made more generic through:

version=$(python -c 'import sys; v = sys.version_info; print(f"{v.major}{v.minor}")')
sed -ie "s/boost_python-py34/boost_python-py${version}/" setup.py

However I think that boost_python3 should also work, as it's symlinked on most of the systems I've seen so far.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's all seems a bit crazy. I was that close to giving up before I came across an obscure post mentioning boost_python3.

Copy link
Contributor Author

@tony-wallace tony-wallace Feb 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can probably be made more generic ...

Makes sense- good idea. It would need to be "version=$( python3 -c ...." on my system, because "python" gets you python 2.

apt-get install libglib2.0-dev
pip3 install .
```

Expand Down