小编lbr*_*tti的帖子

无法在 rasperry PI 上安装 gattlib:错误:在 usr/include/boost/... hpp 文件上的程序中出现杂散 '\xxx'

我阅读了有关流浪错误的所有其他问答,但找不到与我的问题类似的任何内容...

所以:我需要在 Raspberry Pi 3 Model B(在 RASPBIAN JESSIE LITE 内核 v.4.4 上运行)上为 pybluez [ https://github.com/karulis/pybluez ]添加 BLE 支持,并且在构建 gattlib 时我得到了这些错误的大量列表(这是控制台输出的扩展副本:https : //pastebin.com/KjRB5rB7 ):

/usr/include/boost/python.hpp:5:1: error: stray ‘\2’ in program
/usr/include/boost/python.hpp:5:1: error: stray ‘\264’ in program
/usr/include/boost/python.hpp:5:1: error: stray ‘\334’ in program
/usr/include/boost/python.hpp:5:1: error: stray ‘\354’ in program
/usr/include/boost/python.hpp:5:1: error: stray ‘\377’ in program
/usr/include/boost/python.hpp:5:1: error: stray ‘\3’ in program
Run Code Online (Sandbox Code Playgroud)

我知道这是字符编码的问题,但对我来说这发生在下载的代码上看起来很奇怪。

有没有办法解决这个问题并继续安装?

我通过在 OsX 10.10.5 上运行的 MacBookPro 连接到 ssh,并且 hpp 文件的字符集是 bynary。

谢谢

c++ boost bluetooth raspbian pybluez

2
推荐指数
1
解决办法
4840
查看次数

标签 统计

bluetooth ×1

boost ×1

c++ ×1

pybluez ×1

raspbian ×1