lsongdev / lsongdev/node-bluetooth

Travis test fail becaise of missing bluetooth.h

未关闭
#27 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
C++
星标
205
派生
56
PR 合并指标
30 天内没有已合并 PR

描述

I get `

node-bluetooth@1.2.5 install /home/travis/build/frankjoke/ioBroker.radar2/node_modules/node-bluetooth
node-gyp configure build
make: Entering directory /home/travis/build/frankjoke/ioBroker.radar2/node_modules/node-bluetooth/build' CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/DeviceINQ.o ../src/linux/DeviceINQ.cc:35:37: fatal error: bluetooth/bluetooth.h: No such file or directory #include <bluetooth/bluetooth.h> ^ compilation terminated. make: *** [Release/obj.target/BluetoothSerialPort/src/linux/DeviceINQ.o] Error 1 make: Leaving directory /home/travis/build/frankjoke/ioBroker.radar2/node_modules/node-bluetooth/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2`

errors and cannot test my package on Travis (for linuix) but on Raspian and Ubuntu install works.

The error is: /src/linux/DeviceINQ.cc:35:37: fatal error: bluetooth/bluetooth.h
and I could not find it as well.

On windows tester AppVeyor the installation works and all tests passes.

The effect started when I added your package to mine. If I remove the dependency it's installing fine.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 src/linux/DeviceINQ.cc 中的 Linux 构建失败入手,检查 Travis 配置以及 node-bluetooth 相关的依赖设置。在 Travis 或等效的 Linux 环境中重现缺少 bluetooth/bluetooth.h 的错误,然后验证安装和现有测试是否像在 Ubuntu、Raspbian 和 AppVeyor 上一样通过。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp, node.js
领域
build-system, ci-cd, embedded-iot
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。